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
inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats)
@JsProperty(name = "id") public native String getId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "private FPS(){}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "public interface RTCDataChannel extends EventTarget {\n @JSBody(script = \"return RTCDataChannel.prototype\")\n static RTCDataChannel prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new RTCDataChannel()\")\n static RTCDataChannel create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n String getBinaryType();\n\n @JSProperty\n void setBinaryType(String binaryType);\n\n @JSProperty\n int getBufferedAmount();\n\n @JSProperty\n int getBufferedAmountLowThreshold();\n\n @JSProperty\n void setBufferedAmountLowThreshold(int bufferedAmountLowThreshold);\n\n @JSProperty\n @Nullable\n int getId();\n\n @JSProperty\n String getLabel();\n\n @JSProperty\n @Nullable\n double getMaxPacketLifeTime();\n\n @JSProperty\n @Nullable\n int getMaxRetransmits();\n\n @JSProperty\n boolean isNegotiated();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnbufferedamountlow();\n\n @JSProperty\n void setOnbufferedamountlow(EventListener<Event> onbufferedamountlow);\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener) {\n addEventListener(\"bufferedamountlow\", listener);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener) {\n removeEventListener(\"bufferedamountlow\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnclose();\n\n @JSProperty\n void setOnclose(EventListener<Event> onclose);\n\n default void addCloseEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener) {\n addEventListener(\"close\", listener);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener) {\n removeEventListener(\"close\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCErrorEvent> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<RTCErrorEvent> onerror);\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<MessageEvent> getOnmessage();\n\n @JSProperty\n void setOnmessage(EventListener<MessageEvent> onmessage);\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener) {\n addEventListener(\"message\", listener);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, EventListenerOptions options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener) {\n removeEventListener(\"message\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnopen();\n\n @JSProperty\n void setOnopen(EventListener<Event> onopen);\n\n default void addOpenEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener) {\n addEventListener(\"open\", listener);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener) {\n removeEventListener(\"open\", listener);\n }\n\n @JSProperty\n boolean isOrdered();\n\n @JSProperty\n RTCPriorityType getPriority();\n\n @JSProperty\n String getProtocol();\n\n @JSProperty\n RTCDataChannelState getReadyState();\n\n void close();\n\n void send(String data);\n\n void send(Blob data);\n\n void send(BufferSource data);\n\n}", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Stats getBaseStats() {\n return baseStats;\n }", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "int getHeartRate();", "@Override\n public void timePassed() {\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();", "public interface RtcListener {\n /**\n * socket连接完成\n * @param result\n */\n void onConnectSocketFinish(boolean result);\n\n /**\n * rtc状态改变\n * @param id\n * @param iceConnectionState\n */\n void onStatusChanged(String id, PeerConnection.IceConnectionState iceConnectionState);\n\n /**\n * 加载本地视频\n * @param localStream\n * @param track\n */\n void onLocalStream(MediaStream localStream, VideoTrack track);\n\n /**\n * 加载远程视频\n * @param remoteStream\n * @param endPoint\n */\n void onAddRemoteStream(MediaStream remoteStream, int endPoint);\n\n /**\n * 移除视频\n */\n void onRemoveRemoteStream();\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "public abstract void sendTraceTime(Player p);", "Object getClock();", "public abstract void statsReset();", "@Override\r\n public void timePassed() {\r\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "private static void initStatistics(Player p){\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "int getMonitors();", "int getRt();", "public abstract void broadcastTraceTime(Server s);", "float getVideoCaptureRateFactor();", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "private void resetStats() {\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Bitmap timerEvent(){\n \t\t\n \t\t//Create packet\n \t\treceive_packet = new DatagramPacket(buf, buf.length);\n \t\t\n \t\ttry{\n \t\t\t//Receive packet\n \t\t\tsocket.receive(receive_packet);\n \t\t\trtp_packet = new RtpPacket(receive_packet.getData(), receive_packet.getLength());\n \t\t\tBitmap bmp = rtp_packet.getBmp();\n \t\t\t\n \t\t\t//Commented out now that we're getting BMP in packet\n \t\t\t//Get payload\n \t\t\t/*plength = rtp_packet.getLength();\n \t\t\tif(plength>largestFrame){\n \t\t\t\tlargestFrame = plength;\n \t\t\t\tSystem.out.println(\"The Largest Frame is: \" + largestFrame);\n \t\t\t}\n \t\t\tbyte[] payload = new byte[plength];\n \t\t\tfor(int i = 0; i < plength; i++){\n \t\t\t\tpayload[i] = rtp_packet.getPayload()[i];\n \t\t\t}*/\n \t\t\t\n \t\t\tSystem.out.println(\"Got Payload!!!!!\");\n \t\t\treturn bmp;\n \t\t\t\n \t\t}\n \t\t//Sometimes the socket won't be made correctly if the user puts in an incorrect IP\n \t\tcatch(java.lang.NullPointerException en){\n \t\t\ttry{\n \t\t\t\tsocket = new DatagramSocket(25000);\n \t\t\t\tsocket.setSoTimeout(10);\n \t\t\t}catch(Exception e){\n \t\t\t\tSystem.out.println(\"Error Creating Socket Again!\");\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tcatch(java.net.SocketTimeoutException se){\n \t\t\tSystem.out.println(\"Reached end of video, teardown\");\n \t\t\treturn null;\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tSystem.out.println(\"Error with UDP, Packet Dropped\");\n \t\t\tSystem.out.println(e);\n \t\t\treturn null;\n \t\t}\n \t\t\n \t}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "public interface LiveHostEvents extends LiveEvents{\n /** Live infomation\n * @param strUrl Rtmp/Hls url\n * @param strSessionId SessionId\n */\n public void OnRtcLiveInfomation(String strUrl, String strSessionId);\n\n /** Guest want to line with you\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n * @param strBrief A brief\n */\n public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);\n\n /** Guest cancel line apply\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n */\n public void OnRtcLiveCancelLine(String strPeerId, String strUserName);\n}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "public TransmissionStats\n getSourceTransmissionStats();", "String getFPS();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getVideoDscp();", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public Object_Stats ConvertToCombatstats (Object_Stats CharStats) {\n\r\n\t\tObject_Stats Combatstats = new Object_Stats();\r\n\t\tCombatstats.SetStat ( \"AP\", (CharStats.GetStatamount ( \"AP\" ) + ( CharStats.GetStatamount ( \"Strength\" ) * 2 )));\r\n\t\t\r\n\t\t//System.out.println(\"fra char: Melee crit%\"+CharStats.GetStatamount ( \"Melee crit%\" )+\" crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" agi=\"+CharStats.GetStatamount ( \"Agility\" ));\r\n\t\tCombatstats.SetStat ( \"Melee crit%\", (CharStats.GetStatamount ( \"Melee crit%\" ) + Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) + AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )) ));\r\n\t\t//System.out.println(\"Agility total=\"+CharStats.GetStatamount ( \"Agility\" )+\" crit fra agi=\"+AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )));\r\n\t\t//System.out.println( \"Crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" crit %=\"+Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) );\r\n\t\t//System.out.println(\"Slutt-crit=\"+Combatstats.GetStatamount ( \"Melee crit%\"));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Hit%\", (CharStats.GetStatamount ( \"Hit%\" ) + Hit_RatingToChance(CharStats.GetStatamount ( \"Hit rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Expertise\", (CharStats.GetStatamount ( \"Expertise\" ) + ExpRatingToExpertise(CharStats.GetStatamount ( \"Expert. rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Dodge neglect\", (CharStats.GetStatamount ( \"Dodge neglect\" ) + ExpertiseToBonus(Combatstats.GetStatamount ( \"Expertise\" ))));\r\n\t\t//System.out.println(\"Expert. rating=\"+CharStats.GetStatamount ( \"Expert. rating\" )+\" neglect=\"+Combatstats.GetStatamount ( \"Dodge neglect\" ));\r\n\r\n\t\tCombatstats.SetStat ( \"Haste%\", (CharStats.GetStatamount ( \"Haste%\" ) + this.HasteRatingToHasteBonus ( ( int ) CharStats.GetStatamount ( \"Haste rating\" ))));\r\n\t\t//System.out.println(\"Haste rating=\"+CharStats.GetStatamount ( \"Haste rating\" )+\" haste%=\"+Combatstats.GetStatamount ( \"Haste%\" ));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Health\", (CharStats.GetStatamount ( \"Health\" ) + ( CharStats.GetStatamount ( \"Stamina\" ) * 10 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Mana\", (CharStats.GetStatamount ( \"Mana\" ) + ( CharStats.GetStatamount ( \"Intellect\" ) * 15 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Penet.%\", (CharStats.GetStatamount ( \"Penet.%\" ) + PenetrationRatingToBonus(CharStats.GetStatamount ( \"Penet. rating\" ))));\t\r\n\t\tif ( CharStats.GetStatamount ( \"Penet.%\" ) > 100.0 ) {\r\n\t\t\tCombatstats.SetStat ( \"Penet.%\", 100);\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Armor\", (CharStats.GetStatamount ( \"Armor\" ) + ( CharStats.GetStatamount ( \"Agility\" ) * 2 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn min dmg\", CharStats.GetStatamount ( \"Wpn min dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn max dmg\", CharStats.GetStatamount ( \"Wpn max dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Weapon speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"White speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tif ( Combatstats.GetStatamount ( \"Haste%\" ) != 0 ) {\r\n\t\t\tdouble BaseSpeed = CharStats.GetStatamount ( \"Weapon speed\" );\r\n\t\t\tdouble NewWhiteSpeed = WhiteSpeed ( BaseSpeed, Combatstats.GetStatamount ( \"Haste%\" ) );\r\n\t\t\tCombatstats.SetStat ( \"White speed\", NewWhiteSpeed );\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Spelldmg\", CharStats.GetStatamount ( \"Spelldmg\" ) );\r\n\t\t\r\n\t\t//intellect -> crit\r\n\t\t//spirit\r\n\t\t//armor\r\n\t\t//spell crit\r\n\t\t//mp5\r\n\r\n\t\t//System.out.println(new Date()+\" 2- \" + new Throwable().fillInStackTrace().getStackTrace()[0]+\") <- \" + new Throwable().fillInStackTrace().getStackTrace()[1]+\")\");\r\n\t\treturn Combatstats;\r\n\r\n\t}", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}", "void statsReset();", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index);", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public BaseStatistics() {\n\t\tsuper();\n\t}", "private void writeSecondLevelMonitors() {}", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public int getSessionAverageAliveTime();", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "Map<String, Object> getStats();", "int getHPPerSecond();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getVideoMulticastTtl();", "void printStats();", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}", "int getMPPerSecond();", "static void groveChannels() {\n\n\t\tswitch (myParent) {\n\t\tcase 1:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\tcase 2:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER2_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE2_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE2_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE2_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE2_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE2_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE2_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE2_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE2_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE2_YMAX;\n\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER3_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE3_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE3_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE3_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE3_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE3_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE3_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE3_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE3_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE3_YMAX;\n\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "@java.lang.Override\n public long getTurnStartMs() {\n return turnStartMs_;\n }", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }" ]
[ "0.64321405", "0.56214696", "0.56016755", "0.54971635", "0.5417617", "0.53994393", "0.5329497", "0.52396303", "0.52342355", "0.5198528", "0.5179291", "0.51764184", "0.51577324", "0.51400805", "0.5069375", "0.5061094", "0.5050393", "0.50360376", "0.5015872", "0.50146407", "0.50137305", "0.49966282", "0.49914396", "0.49890015", "0.49828687", "0.49700338", "0.4969123", "0.49654886", "0.4955303", "0.49506795", "0.49271706", "0.49144796", "0.48934564", "0.48834264", "0.48769033", "0.48766732", "0.48616615", "0.48604995", "0.48587838", "0.48556256", "0.48531082", "0.48528087", "0.4832743", "0.48274705", "0.48222843", "0.48218122", "0.48168296", "0.48144627", "0.48108712", "0.47974873", "0.47936845", "0.4781986", "0.4775292", "0.4775292", "0.4775292", "0.4773515", "0.47691298", "0.47669658", "0.47662342", "0.47661254", "0.47585517", "0.474948", "0.4745842", "0.47443047", "0.47436804", "0.47435564", "0.47407588", "0.47351372", "0.4732116", "0.47284296", "0.4725215", "0.47220403", "0.47111624", "0.47093973", "0.47084123", "0.47045788", "0.4702508", "0.46955255", "0.46895185", "0.46794978", "0.46742618", "0.4673412", "0.46671462", "0.46667656", "0.46645725", "0.46640083", "0.46607304", "0.465917", "0.46547437", "0.4654207", "0.46526533", "0.4650664", "0.4646976", "0.4644283", "0.46404466", "0.46348846", "0.46295255", "0.46292713", "0.4628905", "0.4628855", "0.46279502" ]
0.0
-1
inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats)
@JsProperty(name = "msType") public native String getMsType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "private FPS(){}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "public interface RTCDataChannel extends EventTarget {\n @JSBody(script = \"return RTCDataChannel.prototype\")\n static RTCDataChannel prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new RTCDataChannel()\")\n static RTCDataChannel create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n String getBinaryType();\n\n @JSProperty\n void setBinaryType(String binaryType);\n\n @JSProperty\n int getBufferedAmount();\n\n @JSProperty\n int getBufferedAmountLowThreshold();\n\n @JSProperty\n void setBufferedAmountLowThreshold(int bufferedAmountLowThreshold);\n\n @JSProperty\n @Nullable\n int getId();\n\n @JSProperty\n String getLabel();\n\n @JSProperty\n @Nullable\n double getMaxPacketLifeTime();\n\n @JSProperty\n @Nullable\n int getMaxRetransmits();\n\n @JSProperty\n boolean isNegotiated();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnbufferedamountlow();\n\n @JSProperty\n void setOnbufferedamountlow(EventListener<Event> onbufferedamountlow);\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener) {\n addEventListener(\"bufferedamountlow\", listener);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener) {\n removeEventListener(\"bufferedamountlow\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnclose();\n\n @JSProperty\n void setOnclose(EventListener<Event> onclose);\n\n default void addCloseEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener) {\n addEventListener(\"close\", listener);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener) {\n removeEventListener(\"close\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCErrorEvent> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<RTCErrorEvent> onerror);\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<MessageEvent> getOnmessage();\n\n @JSProperty\n void setOnmessage(EventListener<MessageEvent> onmessage);\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener) {\n addEventListener(\"message\", listener);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, EventListenerOptions options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener) {\n removeEventListener(\"message\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnopen();\n\n @JSProperty\n void setOnopen(EventListener<Event> onopen);\n\n default void addOpenEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener) {\n addEventListener(\"open\", listener);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener) {\n removeEventListener(\"open\", listener);\n }\n\n @JSProperty\n boolean isOrdered();\n\n @JSProperty\n RTCPriorityType getPriority();\n\n @JSProperty\n String getProtocol();\n\n @JSProperty\n RTCDataChannelState getReadyState();\n\n void close();\n\n void send(String data);\n\n void send(Blob data);\n\n void send(BufferSource data);\n\n}", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Stats getBaseStats() {\n return baseStats;\n }", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "int getHeartRate();", "@Override\n public void timePassed() {\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();", "public interface RtcListener {\n /**\n * socket连接完成\n * @param result\n */\n void onConnectSocketFinish(boolean result);\n\n /**\n * rtc状态改变\n * @param id\n * @param iceConnectionState\n */\n void onStatusChanged(String id, PeerConnection.IceConnectionState iceConnectionState);\n\n /**\n * 加载本地视频\n * @param localStream\n * @param track\n */\n void onLocalStream(MediaStream localStream, VideoTrack track);\n\n /**\n * 加载远程视频\n * @param remoteStream\n * @param endPoint\n */\n void onAddRemoteStream(MediaStream remoteStream, int endPoint);\n\n /**\n * 移除视频\n */\n void onRemoveRemoteStream();\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "public abstract void sendTraceTime(Player p);", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "Object getClock();", "public abstract void statsReset();", "@Override\r\n public void timePassed() {\r\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "private static void initStatistics(Player p){\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "int getMonitors();", "int getRt();", "float getVideoCaptureRateFactor();", "public abstract void broadcastTraceTime(Server s);", "private void resetStats() {\n }", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Bitmap timerEvent(){\n \t\t\n \t\t//Create packet\n \t\treceive_packet = new DatagramPacket(buf, buf.length);\n \t\t\n \t\ttry{\n \t\t\t//Receive packet\n \t\t\tsocket.receive(receive_packet);\n \t\t\trtp_packet = new RtpPacket(receive_packet.getData(), receive_packet.getLength());\n \t\t\tBitmap bmp = rtp_packet.getBmp();\n \t\t\t\n \t\t\t//Commented out now that we're getting BMP in packet\n \t\t\t//Get payload\n \t\t\t/*plength = rtp_packet.getLength();\n \t\t\tif(plength>largestFrame){\n \t\t\t\tlargestFrame = plength;\n \t\t\t\tSystem.out.println(\"The Largest Frame is: \" + largestFrame);\n \t\t\t}\n \t\t\tbyte[] payload = new byte[plength];\n \t\t\tfor(int i = 0; i < plength; i++){\n \t\t\t\tpayload[i] = rtp_packet.getPayload()[i];\n \t\t\t}*/\n \t\t\t\n \t\t\tSystem.out.println(\"Got Payload!!!!!\");\n \t\t\treturn bmp;\n \t\t\t\n \t\t}\n \t\t//Sometimes the socket won't be made correctly if the user puts in an incorrect IP\n \t\tcatch(java.lang.NullPointerException en){\n \t\t\ttry{\n \t\t\t\tsocket = new DatagramSocket(25000);\n \t\t\t\tsocket.setSoTimeout(10);\n \t\t\t}catch(Exception e){\n \t\t\t\tSystem.out.println(\"Error Creating Socket Again!\");\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tcatch(java.net.SocketTimeoutException se){\n \t\t\tSystem.out.println(\"Reached end of video, teardown\");\n \t\t\treturn null;\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tSystem.out.println(\"Error with UDP, Packet Dropped\");\n \t\t\tSystem.out.println(e);\n \t\t\treturn null;\n \t\t}\n \t\t\n \t}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "public interface LiveHostEvents extends LiveEvents{\n /** Live infomation\n * @param strUrl Rtmp/Hls url\n * @param strSessionId SessionId\n */\n public void OnRtcLiveInfomation(String strUrl, String strSessionId);\n\n /** Guest want to line with you\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n * @param strBrief A brief\n */\n public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);\n\n /** Guest cancel line apply\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n */\n public void OnRtcLiveCancelLine(String strPeerId, String strUserName);\n}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "String getFPS();", "public TransmissionStats\n getSourceTransmissionStats();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getVideoDscp();", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public Object_Stats ConvertToCombatstats (Object_Stats CharStats) {\n\r\n\t\tObject_Stats Combatstats = new Object_Stats();\r\n\t\tCombatstats.SetStat ( \"AP\", (CharStats.GetStatamount ( \"AP\" ) + ( CharStats.GetStatamount ( \"Strength\" ) * 2 )));\r\n\t\t\r\n\t\t//System.out.println(\"fra char: Melee crit%\"+CharStats.GetStatamount ( \"Melee crit%\" )+\" crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" agi=\"+CharStats.GetStatamount ( \"Agility\" ));\r\n\t\tCombatstats.SetStat ( \"Melee crit%\", (CharStats.GetStatamount ( \"Melee crit%\" ) + Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) + AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )) ));\r\n\t\t//System.out.println(\"Agility total=\"+CharStats.GetStatamount ( \"Agility\" )+\" crit fra agi=\"+AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )));\r\n\t\t//System.out.println( \"Crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" crit %=\"+Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) );\r\n\t\t//System.out.println(\"Slutt-crit=\"+Combatstats.GetStatamount ( \"Melee crit%\"));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Hit%\", (CharStats.GetStatamount ( \"Hit%\" ) + Hit_RatingToChance(CharStats.GetStatamount ( \"Hit rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Expertise\", (CharStats.GetStatamount ( \"Expertise\" ) + ExpRatingToExpertise(CharStats.GetStatamount ( \"Expert. rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Dodge neglect\", (CharStats.GetStatamount ( \"Dodge neglect\" ) + ExpertiseToBonus(Combatstats.GetStatamount ( \"Expertise\" ))));\r\n\t\t//System.out.println(\"Expert. rating=\"+CharStats.GetStatamount ( \"Expert. rating\" )+\" neglect=\"+Combatstats.GetStatamount ( \"Dodge neglect\" ));\r\n\r\n\t\tCombatstats.SetStat ( \"Haste%\", (CharStats.GetStatamount ( \"Haste%\" ) + this.HasteRatingToHasteBonus ( ( int ) CharStats.GetStatamount ( \"Haste rating\" ))));\r\n\t\t//System.out.println(\"Haste rating=\"+CharStats.GetStatamount ( \"Haste rating\" )+\" haste%=\"+Combatstats.GetStatamount ( \"Haste%\" ));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Health\", (CharStats.GetStatamount ( \"Health\" ) + ( CharStats.GetStatamount ( \"Stamina\" ) * 10 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Mana\", (CharStats.GetStatamount ( \"Mana\" ) + ( CharStats.GetStatamount ( \"Intellect\" ) * 15 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Penet.%\", (CharStats.GetStatamount ( \"Penet.%\" ) + PenetrationRatingToBonus(CharStats.GetStatamount ( \"Penet. rating\" ))));\t\r\n\t\tif ( CharStats.GetStatamount ( \"Penet.%\" ) > 100.0 ) {\r\n\t\t\tCombatstats.SetStat ( \"Penet.%\", 100);\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Armor\", (CharStats.GetStatamount ( \"Armor\" ) + ( CharStats.GetStatamount ( \"Agility\" ) * 2 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn min dmg\", CharStats.GetStatamount ( \"Wpn min dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn max dmg\", CharStats.GetStatamount ( \"Wpn max dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Weapon speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"White speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tif ( Combatstats.GetStatamount ( \"Haste%\" ) != 0 ) {\r\n\t\t\tdouble BaseSpeed = CharStats.GetStatamount ( \"Weapon speed\" );\r\n\t\t\tdouble NewWhiteSpeed = WhiteSpeed ( BaseSpeed, Combatstats.GetStatamount ( \"Haste%\" ) );\r\n\t\t\tCombatstats.SetStat ( \"White speed\", NewWhiteSpeed );\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Spelldmg\", CharStats.GetStatamount ( \"Spelldmg\" ) );\r\n\t\t\r\n\t\t//intellect -> crit\r\n\t\t//spirit\r\n\t\t//armor\r\n\t\t//spell crit\r\n\t\t//mp5\r\n\r\n\t\t//System.out.println(new Date()+\" 2- \" + new Throwable().fillInStackTrace().getStackTrace()[0]+\") <- \" + new Throwable().fillInStackTrace().getStackTrace()[1]+\")\");\r\n\t\treturn Combatstats;\r\n\r\n\t}", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}", "void statsReset();", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index);", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public BaseStatistics() {\n\t\tsuper();\n\t}", "private void writeSecondLevelMonitors() {}", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public int getSessionAverageAliveTime();", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "Map<String, Object> getStats();", "int getHPPerSecond();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getVideoMulticastTtl();", "void printStats();", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}", "static void groveChannels() {\n\n\t\tswitch (myParent) {\n\t\tcase 1:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\tcase 2:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER2_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE2_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE2_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE2_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE2_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE2_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE2_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE2_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE2_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE2_YMAX;\n\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER3_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE3_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE3_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE3_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE3_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE3_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE3_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE3_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE3_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE3_YMAX;\n\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\t}\n\t}", "int getMPPerSecond();", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "@java.lang.Override\n public long getTurnStartMs() {\n return turnStartMs_;\n }", "public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }" ]
[ "0.6431867", "0.56212586", "0.56016165", "0.54969954", "0.541677", "0.5398975", "0.53277826", "0.52387303", "0.52341783", "0.51970136", "0.51766545", "0.51753277", "0.5155944", "0.5138573", "0.50694793", "0.5059419", "0.5049914", "0.50363725", "0.5013768", "0.50131625", "0.50117946", "0.499529", "0.49911228", "0.49890137", "0.49807507", "0.49696034", "0.49678108", "0.49628094", "0.4953784", "0.49485147", "0.49253702", "0.49119347", "0.48928714", "0.4882829", "0.4876402", "0.48763072", "0.48598507", "0.48592052", "0.48562914", "0.48544115", "0.4854072", "0.48539418", "0.48309618", "0.48260564", "0.48204964", "0.48204035", "0.48151016", "0.48134556", "0.481119", "0.47966054", "0.47915217", "0.47804105", "0.47730705", "0.47730705", "0.47730705", "0.47729886", "0.47690606", "0.47652164", "0.4765075", "0.47628567", "0.47589186", "0.47478324", "0.47461873", "0.47445312", "0.474335", "0.47429383", "0.47397798", "0.47335178", "0.47300452", "0.47276524", "0.47253954", "0.4722752", "0.47089973", "0.47080517", "0.47063544", "0.47052598", "0.46993333", "0.46935436", "0.46886933", "0.4678424", "0.46730047", "0.46716183", "0.46667334", "0.46654618", "0.46648917", "0.4662229", "0.46617028", "0.46589833", "0.46555766", "0.4653439", "0.46504852", "0.46479023", "0.46450308", "0.4643502", "0.46391156", "0.46329513", "0.4629066", "0.46285436", "0.46278575", "0.46272802", "0.46267235" ]
0.0
-1
inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats)
@JsProperty(name = "timestamp") public native Number getTimestamp();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "private FPS(){}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "public interface RTCDataChannel extends EventTarget {\n @JSBody(script = \"return RTCDataChannel.prototype\")\n static RTCDataChannel prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new RTCDataChannel()\")\n static RTCDataChannel create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n String getBinaryType();\n\n @JSProperty\n void setBinaryType(String binaryType);\n\n @JSProperty\n int getBufferedAmount();\n\n @JSProperty\n int getBufferedAmountLowThreshold();\n\n @JSProperty\n void setBufferedAmountLowThreshold(int bufferedAmountLowThreshold);\n\n @JSProperty\n @Nullable\n int getId();\n\n @JSProperty\n String getLabel();\n\n @JSProperty\n @Nullable\n double getMaxPacketLifeTime();\n\n @JSProperty\n @Nullable\n int getMaxRetransmits();\n\n @JSProperty\n boolean isNegotiated();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnbufferedamountlow();\n\n @JSProperty\n void setOnbufferedamountlow(EventListener<Event> onbufferedamountlow);\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener) {\n addEventListener(\"bufferedamountlow\", listener);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener) {\n removeEventListener(\"bufferedamountlow\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnclose();\n\n @JSProperty\n void setOnclose(EventListener<Event> onclose);\n\n default void addCloseEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener) {\n addEventListener(\"close\", listener);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener) {\n removeEventListener(\"close\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCErrorEvent> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<RTCErrorEvent> onerror);\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<MessageEvent> getOnmessage();\n\n @JSProperty\n void setOnmessage(EventListener<MessageEvent> onmessage);\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener) {\n addEventListener(\"message\", listener);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, EventListenerOptions options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener) {\n removeEventListener(\"message\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnopen();\n\n @JSProperty\n void setOnopen(EventListener<Event> onopen);\n\n default void addOpenEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener) {\n addEventListener(\"open\", listener);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener) {\n removeEventListener(\"open\", listener);\n }\n\n @JSProperty\n boolean isOrdered();\n\n @JSProperty\n RTCPriorityType getPriority();\n\n @JSProperty\n String getProtocol();\n\n @JSProperty\n RTCDataChannelState getReadyState();\n\n void close();\n\n void send(String data);\n\n void send(Blob data);\n\n void send(BufferSource data);\n\n}", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Stats getBaseStats() {\n return baseStats;\n }", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "int getHeartRate();", "@Override\n public void timePassed() {\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();", "public interface RtcListener {\n /**\n * socket连接完成\n * @param result\n */\n void onConnectSocketFinish(boolean result);\n\n /**\n * rtc状态改变\n * @param id\n * @param iceConnectionState\n */\n void onStatusChanged(String id, PeerConnection.IceConnectionState iceConnectionState);\n\n /**\n * 加载本地视频\n * @param localStream\n * @param track\n */\n void onLocalStream(MediaStream localStream, VideoTrack track);\n\n /**\n * 加载远程视频\n * @param remoteStream\n * @param endPoint\n */\n void onAddRemoteStream(MediaStream remoteStream, int endPoint);\n\n /**\n * 移除视频\n */\n void onRemoveRemoteStream();\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "public abstract void sendTraceTime(Player p);", "Object getClock();", "public abstract void statsReset();", "@Override\r\n public void timePassed() {\r\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "private static void initStatistics(Player p){\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "int getMonitors();", "int getRt();", "public abstract void broadcastTraceTime(Server s);", "float getVideoCaptureRateFactor();", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "private void resetStats() {\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Bitmap timerEvent(){\n \t\t\n \t\t//Create packet\n \t\treceive_packet = new DatagramPacket(buf, buf.length);\n \t\t\n \t\ttry{\n \t\t\t//Receive packet\n \t\t\tsocket.receive(receive_packet);\n \t\t\trtp_packet = new RtpPacket(receive_packet.getData(), receive_packet.getLength());\n \t\t\tBitmap bmp = rtp_packet.getBmp();\n \t\t\t\n \t\t\t//Commented out now that we're getting BMP in packet\n \t\t\t//Get payload\n \t\t\t/*plength = rtp_packet.getLength();\n \t\t\tif(plength>largestFrame){\n \t\t\t\tlargestFrame = plength;\n \t\t\t\tSystem.out.println(\"The Largest Frame is: \" + largestFrame);\n \t\t\t}\n \t\t\tbyte[] payload = new byte[plength];\n \t\t\tfor(int i = 0; i < plength; i++){\n \t\t\t\tpayload[i] = rtp_packet.getPayload()[i];\n \t\t\t}*/\n \t\t\t\n \t\t\tSystem.out.println(\"Got Payload!!!!!\");\n \t\t\treturn bmp;\n \t\t\t\n \t\t}\n \t\t//Sometimes the socket won't be made correctly if the user puts in an incorrect IP\n \t\tcatch(java.lang.NullPointerException en){\n \t\t\ttry{\n \t\t\t\tsocket = new DatagramSocket(25000);\n \t\t\t\tsocket.setSoTimeout(10);\n \t\t\t}catch(Exception e){\n \t\t\t\tSystem.out.println(\"Error Creating Socket Again!\");\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tcatch(java.net.SocketTimeoutException se){\n \t\t\tSystem.out.println(\"Reached end of video, teardown\");\n \t\t\treturn null;\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tSystem.out.println(\"Error with UDP, Packet Dropped\");\n \t\t\tSystem.out.println(e);\n \t\t\treturn null;\n \t\t}\n \t\t\n \t}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "public interface LiveHostEvents extends LiveEvents{\n /** Live infomation\n * @param strUrl Rtmp/Hls url\n * @param strSessionId SessionId\n */\n public void OnRtcLiveInfomation(String strUrl, String strSessionId);\n\n /** Guest want to line with you\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n * @param strBrief A brief\n */\n public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);\n\n /** Guest cancel line apply\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n */\n public void OnRtcLiveCancelLine(String strPeerId, String strUserName);\n}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "public TransmissionStats\n getSourceTransmissionStats();", "String getFPS();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getVideoDscp();", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public Object_Stats ConvertToCombatstats (Object_Stats CharStats) {\n\r\n\t\tObject_Stats Combatstats = new Object_Stats();\r\n\t\tCombatstats.SetStat ( \"AP\", (CharStats.GetStatamount ( \"AP\" ) + ( CharStats.GetStatamount ( \"Strength\" ) * 2 )));\r\n\t\t\r\n\t\t//System.out.println(\"fra char: Melee crit%\"+CharStats.GetStatamount ( \"Melee crit%\" )+\" crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" agi=\"+CharStats.GetStatamount ( \"Agility\" ));\r\n\t\tCombatstats.SetStat ( \"Melee crit%\", (CharStats.GetStatamount ( \"Melee crit%\" ) + Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) + AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )) ));\r\n\t\t//System.out.println(\"Agility total=\"+CharStats.GetStatamount ( \"Agility\" )+\" crit fra agi=\"+AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )));\r\n\t\t//System.out.println( \"Crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" crit %=\"+Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) );\r\n\t\t//System.out.println(\"Slutt-crit=\"+Combatstats.GetStatamount ( \"Melee crit%\"));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Hit%\", (CharStats.GetStatamount ( \"Hit%\" ) + Hit_RatingToChance(CharStats.GetStatamount ( \"Hit rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Expertise\", (CharStats.GetStatamount ( \"Expertise\" ) + ExpRatingToExpertise(CharStats.GetStatamount ( \"Expert. rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Dodge neglect\", (CharStats.GetStatamount ( \"Dodge neglect\" ) + ExpertiseToBonus(Combatstats.GetStatamount ( \"Expertise\" ))));\r\n\t\t//System.out.println(\"Expert. rating=\"+CharStats.GetStatamount ( \"Expert. rating\" )+\" neglect=\"+Combatstats.GetStatamount ( \"Dodge neglect\" ));\r\n\r\n\t\tCombatstats.SetStat ( \"Haste%\", (CharStats.GetStatamount ( \"Haste%\" ) + this.HasteRatingToHasteBonus ( ( int ) CharStats.GetStatamount ( \"Haste rating\" ))));\r\n\t\t//System.out.println(\"Haste rating=\"+CharStats.GetStatamount ( \"Haste rating\" )+\" haste%=\"+Combatstats.GetStatamount ( \"Haste%\" ));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Health\", (CharStats.GetStatamount ( \"Health\" ) + ( CharStats.GetStatamount ( \"Stamina\" ) * 10 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Mana\", (CharStats.GetStatamount ( \"Mana\" ) + ( CharStats.GetStatamount ( \"Intellect\" ) * 15 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Penet.%\", (CharStats.GetStatamount ( \"Penet.%\" ) + PenetrationRatingToBonus(CharStats.GetStatamount ( \"Penet. rating\" ))));\t\r\n\t\tif ( CharStats.GetStatamount ( \"Penet.%\" ) > 100.0 ) {\r\n\t\t\tCombatstats.SetStat ( \"Penet.%\", 100);\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Armor\", (CharStats.GetStatamount ( \"Armor\" ) + ( CharStats.GetStatamount ( \"Agility\" ) * 2 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn min dmg\", CharStats.GetStatamount ( \"Wpn min dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn max dmg\", CharStats.GetStatamount ( \"Wpn max dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Weapon speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"White speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tif ( Combatstats.GetStatamount ( \"Haste%\" ) != 0 ) {\r\n\t\t\tdouble BaseSpeed = CharStats.GetStatamount ( \"Weapon speed\" );\r\n\t\t\tdouble NewWhiteSpeed = WhiteSpeed ( BaseSpeed, Combatstats.GetStatamount ( \"Haste%\" ) );\r\n\t\t\tCombatstats.SetStat ( \"White speed\", NewWhiteSpeed );\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Spelldmg\", CharStats.GetStatamount ( \"Spelldmg\" ) );\r\n\t\t\r\n\t\t//intellect -> crit\r\n\t\t//spirit\r\n\t\t//armor\r\n\t\t//spell crit\r\n\t\t//mp5\r\n\r\n\t\t//System.out.println(new Date()+\" 2- \" + new Throwable().fillInStackTrace().getStackTrace()[0]+\") <- \" + new Throwable().fillInStackTrace().getStackTrace()[1]+\")\");\r\n\t\treturn Combatstats;\r\n\r\n\t}", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "void statsReset();", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index);", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public BaseStatistics() {\n\t\tsuper();\n\t}", "private void writeSecondLevelMonitors() {}", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public int getSessionAverageAliveTime();", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "Map<String, Object> getStats();", "int getHPPerSecond();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getVideoMulticastTtl();", "void printStats();", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}", "int getMPPerSecond();", "static void groveChannels() {\n\n\t\tswitch (myParent) {\n\t\tcase 1:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\tcase 2:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER2_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE2_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE2_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE2_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE2_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE2_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE2_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE2_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE2_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE2_YMAX;\n\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER3_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE3_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE3_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE3_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE3_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE3_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE3_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE3_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE3_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE3_YMAX;\n\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}", "public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }", "@java.lang.Override\n public long getTurnStartMs() {\n return turnStartMs_;\n }" ]
[ "0.6432136", "0.56212527", "0.5601676", "0.5497257", "0.54163784", "0.53979784", "0.5328487", "0.5239743", "0.52342427", "0.5197983", "0.51781124", "0.5176569", "0.51568604", "0.5139286", "0.5068765", "0.50601274", "0.50497085", "0.5035447", "0.501463", "0.50131446", "0.50128156", "0.49945274", "0.49910444", "0.49883097", "0.49810478", "0.4969896", "0.49679378", "0.4964074", "0.49531898", "0.4948253", "0.4926191", "0.49137765", "0.48927018", "0.4882639", "0.4877248", "0.48751524", "0.486026", "0.48594552", "0.4857293", "0.48541272", "0.4853782", "0.48533455", "0.48311898", "0.48257977", "0.4821235", "0.48198572", "0.4815736", "0.48128295", "0.48102915", "0.47964355", "0.47921497", "0.47802156", "0.47746226", "0.47746226", "0.47746226", "0.47721216", "0.47680804", "0.4765678", "0.47652972", "0.47652966", "0.47567928", "0.4748594", "0.4745379", "0.47437662", "0.47433034", "0.47429577", "0.47396776", "0.47345614", "0.47317424", "0.47272643", "0.47263646", "0.47215715", "0.47105542", "0.47081152", "0.47069874", "0.47036543", "0.4700965", "0.46938848", "0.46891034", "0.46782315", "0.4673326", "0.4671739", "0.466572", "0.4664661", "0.46643993", "0.46622047", "0.46611002", "0.4657894", "0.46537557", "0.4653087", "0.46515396", "0.46487802", "0.46459514", "0.46435276", "0.46403348", "0.4632953", "0.46289772", "0.46278864", "0.4627796", "0.4626986", "0.4626828" ]
0.0
-1
inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats)
@JsProperty(name = "type") public native String getType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "private FPS(){}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "public interface RTCDataChannel extends EventTarget {\n @JSBody(script = \"return RTCDataChannel.prototype\")\n static RTCDataChannel prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new RTCDataChannel()\")\n static RTCDataChannel create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n String getBinaryType();\n\n @JSProperty\n void setBinaryType(String binaryType);\n\n @JSProperty\n int getBufferedAmount();\n\n @JSProperty\n int getBufferedAmountLowThreshold();\n\n @JSProperty\n void setBufferedAmountLowThreshold(int bufferedAmountLowThreshold);\n\n @JSProperty\n @Nullable\n int getId();\n\n @JSProperty\n String getLabel();\n\n @JSProperty\n @Nullable\n double getMaxPacketLifeTime();\n\n @JSProperty\n @Nullable\n int getMaxRetransmits();\n\n @JSProperty\n boolean isNegotiated();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnbufferedamountlow();\n\n @JSProperty\n void setOnbufferedamountlow(EventListener<Event> onbufferedamountlow);\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener) {\n addEventListener(\"bufferedamountlow\", listener);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener) {\n removeEventListener(\"bufferedamountlow\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnclose();\n\n @JSProperty\n void setOnclose(EventListener<Event> onclose);\n\n default void addCloseEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener) {\n addEventListener(\"close\", listener);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener) {\n removeEventListener(\"close\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCErrorEvent> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<RTCErrorEvent> onerror);\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<MessageEvent> getOnmessage();\n\n @JSProperty\n void setOnmessage(EventListener<MessageEvent> onmessage);\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener) {\n addEventListener(\"message\", listener);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, EventListenerOptions options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener) {\n removeEventListener(\"message\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnopen();\n\n @JSProperty\n void setOnopen(EventListener<Event> onopen);\n\n default void addOpenEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener) {\n addEventListener(\"open\", listener);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener) {\n removeEventListener(\"open\", listener);\n }\n\n @JSProperty\n boolean isOrdered();\n\n @JSProperty\n RTCPriorityType getPriority();\n\n @JSProperty\n String getProtocol();\n\n @JSProperty\n RTCDataChannelState getReadyState();\n\n void close();\n\n void send(String data);\n\n void send(Blob data);\n\n void send(BufferSource data);\n\n}", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Stats getBaseStats() {\n return baseStats;\n }", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "int getHeartRate();", "@Override\n public void timePassed() {\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();", "public interface RtcListener {\n /**\n * socket连接完成\n * @param result\n */\n void onConnectSocketFinish(boolean result);\n\n /**\n * rtc状态改变\n * @param id\n * @param iceConnectionState\n */\n void onStatusChanged(String id, PeerConnection.IceConnectionState iceConnectionState);\n\n /**\n * 加载本地视频\n * @param localStream\n * @param track\n */\n void onLocalStream(MediaStream localStream, VideoTrack track);\n\n /**\n * 加载远程视频\n * @param remoteStream\n * @param endPoint\n */\n void onAddRemoteStream(MediaStream remoteStream, int endPoint);\n\n /**\n * 移除视频\n */\n void onRemoveRemoteStream();\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "public abstract void sendTraceTime(Player p);", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "Object getClock();", "public abstract void statsReset();", "@Override\r\n public void timePassed() {\r\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "private static void initStatistics(Player p){\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "int getMonitors();", "int getRt();", "float getVideoCaptureRateFactor();", "public abstract void broadcastTraceTime(Server s);", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "private void resetStats() {\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Bitmap timerEvent(){\n \t\t\n \t\t//Create packet\n \t\treceive_packet = new DatagramPacket(buf, buf.length);\n \t\t\n \t\ttry{\n \t\t\t//Receive packet\n \t\t\tsocket.receive(receive_packet);\n \t\t\trtp_packet = new RtpPacket(receive_packet.getData(), receive_packet.getLength());\n \t\t\tBitmap bmp = rtp_packet.getBmp();\n \t\t\t\n \t\t\t//Commented out now that we're getting BMP in packet\n \t\t\t//Get payload\n \t\t\t/*plength = rtp_packet.getLength();\n \t\t\tif(plength>largestFrame){\n \t\t\t\tlargestFrame = plength;\n \t\t\t\tSystem.out.println(\"The Largest Frame is: \" + largestFrame);\n \t\t\t}\n \t\t\tbyte[] payload = new byte[plength];\n \t\t\tfor(int i = 0; i < plength; i++){\n \t\t\t\tpayload[i] = rtp_packet.getPayload()[i];\n \t\t\t}*/\n \t\t\t\n \t\t\tSystem.out.println(\"Got Payload!!!!!\");\n \t\t\treturn bmp;\n \t\t\t\n \t\t}\n \t\t//Sometimes the socket won't be made correctly if the user puts in an incorrect IP\n \t\tcatch(java.lang.NullPointerException en){\n \t\t\ttry{\n \t\t\t\tsocket = new DatagramSocket(25000);\n \t\t\t\tsocket.setSoTimeout(10);\n \t\t\t}catch(Exception e){\n \t\t\t\tSystem.out.println(\"Error Creating Socket Again!\");\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tcatch(java.net.SocketTimeoutException se){\n \t\t\tSystem.out.println(\"Reached end of video, teardown\");\n \t\t\treturn null;\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tSystem.out.println(\"Error with UDP, Packet Dropped\");\n \t\t\tSystem.out.println(e);\n \t\t\treturn null;\n \t\t}\n \t\t\n \t}", "public interface LiveHostEvents extends LiveEvents{\n /** Live infomation\n * @param strUrl Rtmp/Hls url\n * @param strSessionId SessionId\n */\n public void OnRtcLiveInfomation(String strUrl, String strSessionId);\n\n /** Guest want to line with you\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n * @param strBrief A brief\n */\n public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);\n\n /** Guest cancel line apply\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n */\n public void OnRtcLiveCancelLine(String strPeerId, String strUserName);\n}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "public TransmissionStats\n getSourceTransmissionStats();", "String getFPS();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getVideoDscp();", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public Object_Stats ConvertToCombatstats (Object_Stats CharStats) {\n\r\n\t\tObject_Stats Combatstats = new Object_Stats();\r\n\t\tCombatstats.SetStat ( \"AP\", (CharStats.GetStatamount ( \"AP\" ) + ( CharStats.GetStatamount ( \"Strength\" ) * 2 )));\r\n\t\t\r\n\t\t//System.out.println(\"fra char: Melee crit%\"+CharStats.GetStatamount ( \"Melee crit%\" )+\" crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" agi=\"+CharStats.GetStatamount ( \"Agility\" ));\r\n\t\tCombatstats.SetStat ( \"Melee crit%\", (CharStats.GetStatamount ( \"Melee crit%\" ) + Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) + AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )) ));\r\n\t\t//System.out.println(\"Agility total=\"+CharStats.GetStatamount ( \"Agility\" )+\" crit fra agi=\"+AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )));\r\n\t\t//System.out.println( \"Crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" crit %=\"+Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) );\r\n\t\t//System.out.println(\"Slutt-crit=\"+Combatstats.GetStatamount ( \"Melee crit%\"));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Hit%\", (CharStats.GetStatamount ( \"Hit%\" ) + Hit_RatingToChance(CharStats.GetStatamount ( \"Hit rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Expertise\", (CharStats.GetStatamount ( \"Expertise\" ) + ExpRatingToExpertise(CharStats.GetStatamount ( \"Expert. rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Dodge neglect\", (CharStats.GetStatamount ( \"Dodge neglect\" ) + ExpertiseToBonus(Combatstats.GetStatamount ( \"Expertise\" ))));\r\n\t\t//System.out.println(\"Expert. rating=\"+CharStats.GetStatamount ( \"Expert. rating\" )+\" neglect=\"+Combatstats.GetStatamount ( \"Dodge neglect\" ));\r\n\r\n\t\tCombatstats.SetStat ( \"Haste%\", (CharStats.GetStatamount ( \"Haste%\" ) + this.HasteRatingToHasteBonus ( ( int ) CharStats.GetStatamount ( \"Haste rating\" ))));\r\n\t\t//System.out.println(\"Haste rating=\"+CharStats.GetStatamount ( \"Haste rating\" )+\" haste%=\"+Combatstats.GetStatamount ( \"Haste%\" ));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Health\", (CharStats.GetStatamount ( \"Health\" ) + ( CharStats.GetStatamount ( \"Stamina\" ) * 10 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Mana\", (CharStats.GetStatamount ( \"Mana\" ) + ( CharStats.GetStatamount ( \"Intellect\" ) * 15 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Penet.%\", (CharStats.GetStatamount ( \"Penet.%\" ) + PenetrationRatingToBonus(CharStats.GetStatamount ( \"Penet. rating\" ))));\t\r\n\t\tif ( CharStats.GetStatamount ( \"Penet.%\" ) > 100.0 ) {\r\n\t\t\tCombatstats.SetStat ( \"Penet.%\", 100);\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Armor\", (CharStats.GetStatamount ( \"Armor\" ) + ( CharStats.GetStatamount ( \"Agility\" ) * 2 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn min dmg\", CharStats.GetStatamount ( \"Wpn min dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn max dmg\", CharStats.GetStatamount ( \"Wpn max dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Weapon speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"White speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tif ( Combatstats.GetStatamount ( \"Haste%\" ) != 0 ) {\r\n\t\t\tdouble BaseSpeed = CharStats.GetStatamount ( \"Weapon speed\" );\r\n\t\t\tdouble NewWhiteSpeed = WhiteSpeed ( BaseSpeed, Combatstats.GetStatamount ( \"Haste%\" ) );\r\n\t\t\tCombatstats.SetStat ( \"White speed\", NewWhiteSpeed );\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Spelldmg\", CharStats.GetStatamount ( \"Spelldmg\" ) );\r\n\t\t\r\n\t\t//intellect -> crit\r\n\t\t//spirit\r\n\t\t//armor\r\n\t\t//spell crit\r\n\t\t//mp5\r\n\r\n\t\t//System.out.println(new Date()+\" 2- \" + new Throwable().fillInStackTrace().getStackTrace()[0]+\") <- \" + new Throwable().fillInStackTrace().getStackTrace()[1]+\")\");\r\n\t\treturn Combatstats;\r\n\r\n\t}", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}", "void statsReset();", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index);", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public BaseStatistics() {\n\t\tsuper();\n\t}", "private void writeSecondLevelMonitors() {}", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public int getSessionAverageAliveTime();", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "Map<String, Object> getStats();", "int getHPPerSecond();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getVideoMulticastTtl();", "void printStats();", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}", "int getMPPerSecond();", "static void groveChannels() {\n\n\t\tswitch (myParent) {\n\t\tcase 1:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\tcase 2:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER2_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE2_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE2_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE2_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE2_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE2_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE2_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE2_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE2_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE2_YMAX;\n\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER3_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE3_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE3_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE3_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE3_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE3_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE3_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE3_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE3_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE3_YMAX;\n\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "@java.lang.Override\n public long getTurnStartMs() {\n return turnStartMs_;\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }" ]
[ "0.64314693", "0.5621094", "0.5601682", "0.5497008", "0.5416844", "0.53986883", "0.5327944", "0.5238417", "0.5234998", "0.5196042", "0.5176248", "0.5174788", "0.51559246", "0.5139028", "0.50689054", "0.5058583", "0.5049765", "0.50372386", "0.5013912", "0.50128084", "0.50120467", "0.49966848", "0.49895173", "0.4988448", "0.49801514", "0.49700975", "0.49666578", "0.4962455", "0.49546304", "0.49495247", "0.49248734", "0.49115613", "0.48931566", "0.48835328", "0.4877634", "0.48760837", "0.48590875", "0.48582768", "0.48558003", "0.48553395", "0.48539677", "0.48529506", "0.48303172", "0.48272493", "0.48209086", "0.4820722", "0.4814279", "0.48141128", "0.481126", "0.4798126", "0.47911915", "0.47800225", "0.4773346", "0.47723418", "0.47723418", "0.47723418", "0.4768564", "0.4766299", "0.47638944", "0.4762765", "0.47588736", "0.47481287", "0.4745736", "0.47444788", "0.47419095", "0.47418952", "0.47393587", "0.4733442", "0.47298774", "0.47277242", "0.47237045", "0.4722323", "0.470887", "0.4707558", "0.47065446", "0.4704878", "0.46987846", "0.4693707", "0.46870577", "0.4678675", "0.4671729", "0.46709016", "0.4667299", "0.46657598", "0.46654907", "0.46628463", "0.46617115", "0.46593797", "0.46554932", "0.46534404", "0.46508002", "0.46475622", "0.4645017", "0.4642912", "0.4638343", "0.463408", "0.46295625", "0.46278134", "0.46274522", "0.4626401", "0.46256596" ]
0.0
-1
inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats)
@JsProperty(name = "id") public native void setId(String value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "private FPS(){}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "public interface RTCDataChannel extends EventTarget {\n @JSBody(script = \"return RTCDataChannel.prototype\")\n static RTCDataChannel prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new RTCDataChannel()\")\n static RTCDataChannel create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n String getBinaryType();\n\n @JSProperty\n void setBinaryType(String binaryType);\n\n @JSProperty\n int getBufferedAmount();\n\n @JSProperty\n int getBufferedAmountLowThreshold();\n\n @JSProperty\n void setBufferedAmountLowThreshold(int bufferedAmountLowThreshold);\n\n @JSProperty\n @Nullable\n int getId();\n\n @JSProperty\n String getLabel();\n\n @JSProperty\n @Nullable\n double getMaxPacketLifeTime();\n\n @JSProperty\n @Nullable\n int getMaxRetransmits();\n\n @JSProperty\n boolean isNegotiated();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnbufferedamountlow();\n\n @JSProperty\n void setOnbufferedamountlow(EventListener<Event> onbufferedamountlow);\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener) {\n addEventListener(\"bufferedamountlow\", listener);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener) {\n removeEventListener(\"bufferedamountlow\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnclose();\n\n @JSProperty\n void setOnclose(EventListener<Event> onclose);\n\n default void addCloseEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener) {\n addEventListener(\"close\", listener);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener) {\n removeEventListener(\"close\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCErrorEvent> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<RTCErrorEvent> onerror);\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<MessageEvent> getOnmessage();\n\n @JSProperty\n void setOnmessage(EventListener<MessageEvent> onmessage);\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener) {\n addEventListener(\"message\", listener);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, EventListenerOptions options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener) {\n removeEventListener(\"message\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnopen();\n\n @JSProperty\n void setOnopen(EventListener<Event> onopen);\n\n default void addOpenEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener) {\n addEventListener(\"open\", listener);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener) {\n removeEventListener(\"open\", listener);\n }\n\n @JSProperty\n boolean isOrdered();\n\n @JSProperty\n RTCPriorityType getPriority();\n\n @JSProperty\n String getProtocol();\n\n @JSProperty\n RTCDataChannelState getReadyState();\n\n void close();\n\n void send(String data);\n\n void send(Blob data);\n\n void send(BufferSource data);\n\n}", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Stats getBaseStats() {\n return baseStats;\n }", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "int getHeartRate();", "@Override\n public void timePassed() {\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();", "public interface RtcListener {\n /**\n * socket连接完成\n * @param result\n */\n void onConnectSocketFinish(boolean result);\n\n /**\n * rtc状态改变\n * @param id\n * @param iceConnectionState\n */\n void onStatusChanged(String id, PeerConnection.IceConnectionState iceConnectionState);\n\n /**\n * 加载本地视频\n * @param localStream\n * @param track\n */\n void onLocalStream(MediaStream localStream, VideoTrack track);\n\n /**\n * 加载远程视频\n * @param remoteStream\n * @param endPoint\n */\n void onAddRemoteStream(MediaStream remoteStream, int endPoint);\n\n /**\n * 移除视频\n */\n void onRemoveRemoteStream();\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "public abstract void sendTraceTime(Player p);", "Object getClock();", "public abstract void statsReset();", "@Override\r\n public void timePassed() {\r\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "private static void initStatistics(Player p){\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "int getMonitors();", "int getRt();", "public abstract void broadcastTraceTime(Server s);", "float getVideoCaptureRateFactor();", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "private void resetStats() {\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Bitmap timerEvent(){\n \t\t\n \t\t//Create packet\n \t\treceive_packet = new DatagramPacket(buf, buf.length);\n \t\t\n \t\ttry{\n \t\t\t//Receive packet\n \t\t\tsocket.receive(receive_packet);\n \t\t\trtp_packet = new RtpPacket(receive_packet.getData(), receive_packet.getLength());\n \t\t\tBitmap bmp = rtp_packet.getBmp();\n \t\t\t\n \t\t\t//Commented out now that we're getting BMP in packet\n \t\t\t//Get payload\n \t\t\t/*plength = rtp_packet.getLength();\n \t\t\tif(plength>largestFrame){\n \t\t\t\tlargestFrame = plength;\n \t\t\t\tSystem.out.println(\"The Largest Frame is: \" + largestFrame);\n \t\t\t}\n \t\t\tbyte[] payload = new byte[plength];\n \t\t\tfor(int i = 0; i < plength; i++){\n \t\t\t\tpayload[i] = rtp_packet.getPayload()[i];\n \t\t\t}*/\n \t\t\t\n \t\t\tSystem.out.println(\"Got Payload!!!!!\");\n \t\t\treturn bmp;\n \t\t\t\n \t\t}\n \t\t//Sometimes the socket won't be made correctly if the user puts in an incorrect IP\n \t\tcatch(java.lang.NullPointerException en){\n \t\t\ttry{\n \t\t\t\tsocket = new DatagramSocket(25000);\n \t\t\t\tsocket.setSoTimeout(10);\n \t\t\t}catch(Exception e){\n \t\t\t\tSystem.out.println(\"Error Creating Socket Again!\");\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tcatch(java.net.SocketTimeoutException se){\n \t\t\tSystem.out.println(\"Reached end of video, teardown\");\n \t\t\treturn null;\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tSystem.out.println(\"Error with UDP, Packet Dropped\");\n \t\t\tSystem.out.println(e);\n \t\t\treturn null;\n \t\t}\n \t\t\n \t}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "public interface LiveHostEvents extends LiveEvents{\n /** Live infomation\n * @param strUrl Rtmp/Hls url\n * @param strSessionId SessionId\n */\n public void OnRtcLiveInfomation(String strUrl, String strSessionId);\n\n /** Guest want to line with you\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n * @param strBrief A brief\n */\n public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);\n\n /** Guest cancel line apply\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n */\n public void OnRtcLiveCancelLine(String strPeerId, String strUserName);\n}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "public TransmissionStats\n getSourceTransmissionStats();", "String getFPS();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getVideoDscp();", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public Object_Stats ConvertToCombatstats (Object_Stats CharStats) {\n\r\n\t\tObject_Stats Combatstats = new Object_Stats();\r\n\t\tCombatstats.SetStat ( \"AP\", (CharStats.GetStatamount ( \"AP\" ) + ( CharStats.GetStatamount ( \"Strength\" ) * 2 )));\r\n\t\t\r\n\t\t//System.out.println(\"fra char: Melee crit%\"+CharStats.GetStatamount ( \"Melee crit%\" )+\" crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" agi=\"+CharStats.GetStatamount ( \"Agility\" ));\r\n\t\tCombatstats.SetStat ( \"Melee crit%\", (CharStats.GetStatamount ( \"Melee crit%\" ) + Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) + AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )) ));\r\n\t\t//System.out.println(\"Agility total=\"+CharStats.GetStatamount ( \"Agility\" )+\" crit fra agi=\"+AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )));\r\n\t\t//System.out.println( \"Crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" crit %=\"+Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) );\r\n\t\t//System.out.println(\"Slutt-crit=\"+Combatstats.GetStatamount ( \"Melee crit%\"));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Hit%\", (CharStats.GetStatamount ( \"Hit%\" ) + Hit_RatingToChance(CharStats.GetStatamount ( \"Hit rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Expertise\", (CharStats.GetStatamount ( \"Expertise\" ) + ExpRatingToExpertise(CharStats.GetStatamount ( \"Expert. rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Dodge neglect\", (CharStats.GetStatamount ( \"Dodge neglect\" ) + ExpertiseToBonus(Combatstats.GetStatamount ( \"Expertise\" ))));\r\n\t\t//System.out.println(\"Expert. rating=\"+CharStats.GetStatamount ( \"Expert. rating\" )+\" neglect=\"+Combatstats.GetStatamount ( \"Dodge neglect\" ));\r\n\r\n\t\tCombatstats.SetStat ( \"Haste%\", (CharStats.GetStatamount ( \"Haste%\" ) + this.HasteRatingToHasteBonus ( ( int ) CharStats.GetStatamount ( \"Haste rating\" ))));\r\n\t\t//System.out.println(\"Haste rating=\"+CharStats.GetStatamount ( \"Haste rating\" )+\" haste%=\"+Combatstats.GetStatamount ( \"Haste%\" ));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Health\", (CharStats.GetStatamount ( \"Health\" ) + ( CharStats.GetStatamount ( \"Stamina\" ) * 10 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Mana\", (CharStats.GetStatamount ( \"Mana\" ) + ( CharStats.GetStatamount ( \"Intellect\" ) * 15 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Penet.%\", (CharStats.GetStatamount ( \"Penet.%\" ) + PenetrationRatingToBonus(CharStats.GetStatamount ( \"Penet. rating\" ))));\t\r\n\t\tif ( CharStats.GetStatamount ( \"Penet.%\" ) > 100.0 ) {\r\n\t\t\tCombatstats.SetStat ( \"Penet.%\", 100);\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Armor\", (CharStats.GetStatamount ( \"Armor\" ) + ( CharStats.GetStatamount ( \"Agility\" ) * 2 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn min dmg\", CharStats.GetStatamount ( \"Wpn min dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn max dmg\", CharStats.GetStatamount ( \"Wpn max dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Weapon speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"White speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tif ( Combatstats.GetStatamount ( \"Haste%\" ) != 0 ) {\r\n\t\t\tdouble BaseSpeed = CharStats.GetStatamount ( \"Weapon speed\" );\r\n\t\t\tdouble NewWhiteSpeed = WhiteSpeed ( BaseSpeed, Combatstats.GetStatamount ( \"Haste%\" ) );\r\n\t\t\tCombatstats.SetStat ( \"White speed\", NewWhiteSpeed );\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Spelldmg\", CharStats.GetStatamount ( \"Spelldmg\" ) );\r\n\t\t\r\n\t\t//intellect -> crit\r\n\t\t//spirit\r\n\t\t//armor\r\n\t\t//spell crit\r\n\t\t//mp5\r\n\r\n\t\t//System.out.println(new Date()+\" 2- \" + new Throwable().fillInStackTrace().getStackTrace()[0]+\") <- \" + new Throwable().fillInStackTrace().getStackTrace()[1]+\")\");\r\n\t\treturn Combatstats;\r\n\r\n\t}", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}", "void statsReset();", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index);", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public BaseStatistics() {\n\t\tsuper();\n\t}", "private void writeSecondLevelMonitors() {}", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public int getSessionAverageAliveTime();", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "Map<String, Object> getStats();", "int getHPPerSecond();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getVideoMulticastTtl();", "void printStats();", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}", "int getMPPerSecond();", "static void groveChannels() {\n\n\t\tswitch (myParent) {\n\t\tcase 1:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\tcase 2:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER2_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE2_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE2_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE2_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE2_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE2_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE2_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE2_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE2_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE2_YMAX;\n\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER3_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE3_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE3_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE3_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE3_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE3_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE3_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE3_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE3_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE3_YMAX;\n\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "@java.lang.Override\n public long getTurnStartMs() {\n return turnStartMs_;\n }", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }" ]
[ "0.64321405", "0.56214696", "0.56016755", "0.54971635", "0.5417617", "0.53994393", "0.5329497", "0.52396303", "0.52342355", "0.5198528", "0.5179291", "0.51764184", "0.51577324", "0.51400805", "0.5069375", "0.5061094", "0.5050393", "0.50360376", "0.5015872", "0.50146407", "0.50137305", "0.49966282", "0.49914396", "0.49890015", "0.49828687", "0.49700338", "0.4969123", "0.49654886", "0.4955303", "0.49506795", "0.49271706", "0.49144796", "0.48934564", "0.48834264", "0.48769033", "0.48766732", "0.48616615", "0.48604995", "0.48587838", "0.48556256", "0.48531082", "0.48528087", "0.4832743", "0.48274705", "0.48222843", "0.48218122", "0.48168296", "0.48144627", "0.48108712", "0.47974873", "0.47936845", "0.4781986", "0.4775292", "0.4775292", "0.4775292", "0.4773515", "0.47691298", "0.47669658", "0.47662342", "0.47661254", "0.47585517", "0.474948", "0.4745842", "0.47443047", "0.47436804", "0.47435564", "0.47407588", "0.47351372", "0.4732116", "0.47284296", "0.4725215", "0.47220403", "0.47111624", "0.47093973", "0.47084123", "0.47045788", "0.4702508", "0.46955255", "0.46895185", "0.46794978", "0.46742618", "0.4673412", "0.46671462", "0.46667656", "0.46645725", "0.46640083", "0.46607304", "0.465917", "0.46547437", "0.4654207", "0.46526533", "0.4650664", "0.4646976", "0.4644283", "0.46404466", "0.46348846", "0.46295255", "0.46292713", "0.4628905", "0.4628855", "0.46279502" ]
0.0
-1
inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats)
@JsProperty(name = "msType") public native void setMsType(String value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "private FPS(){}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "public interface RTCDataChannel extends EventTarget {\n @JSBody(script = \"return RTCDataChannel.prototype\")\n static RTCDataChannel prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new RTCDataChannel()\")\n static RTCDataChannel create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n String getBinaryType();\n\n @JSProperty\n void setBinaryType(String binaryType);\n\n @JSProperty\n int getBufferedAmount();\n\n @JSProperty\n int getBufferedAmountLowThreshold();\n\n @JSProperty\n void setBufferedAmountLowThreshold(int bufferedAmountLowThreshold);\n\n @JSProperty\n @Nullable\n int getId();\n\n @JSProperty\n String getLabel();\n\n @JSProperty\n @Nullable\n double getMaxPacketLifeTime();\n\n @JSProperty\n @Nullable\n int getMaxRetransmits();\n\n @JSProperty\n boolean isNegotiated();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnbufferedamountlow();\n\n @JSProperty\n void setOnbufferedamountlow(EventListener<Event> onbufferedamountlow);\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener) {\n addEventListener(\"bufferedamountlow\", listener);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener) {\n removeEventListener(\"bufferedamountlow\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnclose();\n\n @JSProperty\n void setOnclose(EventListener<Event> onclose);\n\n default void addCloseEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener) {\n addEventListener(\"close\", listener);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener) {\n removeEventListener(\"close\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCErrorEvent> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<RTCErrorEvent> onerror);\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<MessageEvent> getOnmessage();\n\n @JSProperty\n void setOnmessage(EventListener<MessageEvent> onmessage);\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener) {\n addEventListener(\"message\", listener);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, EventListenerOptions options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener) {\n removeEventListener(\"message\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnopen();\n\n @JSProperty\n void setOnopen(EventListener<Event> onopen);\n\n default void addOpenEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener) {\n addEventListener(\"open\", listener);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener) {\n removeEventListener(\"open\", listener);\n }\n\n @JSProperty\n boolean isOrdered();\n\n @JSProperty\n RTCPriorityType getPriority();\n\n @JSProperty\n String getProtocol();\n\n @JSProperty\n RTCDataChannelState getReadyState();\n\n void close();\n\n void send(String data);\n\n void send(Blob data);\n\n void send(BufferSource data);\n\n}", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Stats getBaseStats() {\n return baseStats;\n }", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "int getHeartRate();", "@Override\n public void timePassed() {\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();", "public interface RtcListener {\n /**\n * socket连接完成\n * @param result\n */\n void onConnectSocketFinish(boolean result);\n\n /**\n * rtc状态改变\n * @param id\n * @param iceConnectionState\n */\n void onStatusChanged(String id, PeerConnection.IceConnectionState iceConnectionState);\n\n /**\n * 加载本地视频\n * @param localStream\n * @param track\n */\n void onLocalStream(MediaStream localStream, VideoTrack track);\n\n /**\n * 加载远程视频\n * @param remoteStream\n * @param endPoint\n */\n void onAddRemoteStream(MediaStream remoteStream, int endPoint);\n\n /**\n * 移除视频\n */\n void onRemoveRemoteStream();\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "public abstract void sendTraceTime(Player p);", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "Object getClock();", "public abstract void statsReset();", "@Override\r\n public void timePassed() {\r\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "private static void initStatistics(Player p){\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "int getMonitors();", "int getRt();", "float getVideoCaptureRateFactor();", "public abstract void broadcastTraceTime(Server s);", "private void resetStats() {\n }", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Bitmap timerEvent(){\n \t\t\n \t\t//Create packet\n \t\treceive_packet = new DatagramPacket(buf, buf.length);\n \t\t\n \t\ttry{\n \t\t\t//Receive packet\n \t\t\tsocket.receive(receive_packet);\n \t\t\trtp_packet = new RtpPacket(receive_packet.getData(), receive_packet.getLength());\n \t\t\tBitmap bmp = rtp_packet.getBmp();\n \t\t\t\n \t\t\t//Commented out now that we're getting BMP in packet\n \t\t\t//Get payload\n \t\t\t/*plength = rtp_packet.getLength();\n \t\t\tif(plength>largestFrame){\n \t\t\t\tlargestFrame = plength;\n \t\t\t\tSystem.out.println(\"The Largest Frame is: \" + largestFrame);\n \t\t\t}\n \t\t\tbyte[] payload = new byte[plength];\n \t\t\tfor(int i = 0; i < plength; i++){\n \t\t\t\tpayload[i] = rtp_packet.getPayload()[i];\n \t\t\t}*/\n \t\t\t\n \t\t\tSystem.out.println(\"Got Payload!!!!!\");\n \t\t\treturn bmp;\n \t\t\t\n \t\t}\n \t\t//Sometimes the socket won't be made correctly if the user puts in an incorrect IP\n \t\tcatch(java.lang.NullPointerException en){\n \t\t\ttry{\n \t\t\t\tsocket = new DatagramSocket(25000);\n \t\t\t\tsocket.setSoTimeout(10);\n \t\t\t}catch(Exception e){\n \t\t\t\tSystem.out.println(\"Error Creating Socket Again!\");\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tcatch(java.net.SocketTimeoutException se){\n \t\t\tSystem.out.println(\"Reached end of video, teardown\");\n \t\t\treturn null;\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tSystem.out.println(\"Error with UDP, Packet Dropped\");\n \t\t\tSystem.out.println(e);\n \t\t\treturn null;\n \t\t}\n \t\t\n \t}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "public interface LiveHostEvents extends LiveEvents{\n /** Live infomation\n * @param strUrl Rtmp/Hls url\n * @param strSessionId SessionId\n */\n public void OnRtcLiveInfomation(String strUrl, String strSessionId);\n\n /** Guest want to line with you\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n * @param strBrief A brief\n */\n public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);\n\n /** Guest cancel line apply\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n */\n public void OnRtcLiveCancelLine(String strPeerId, String strUserName);\n}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "String getFPS();", "public TransmissionStats\n getSourceTransmissionStats();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getVideoDscp();", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public Object_Stats ConvertToCombatstats (Object_Stats CharStats) {\n\r\n\t\tObject_Stats Combatstats = new Object_Stats();\r\n\t\tCombatstats.SetStat ( \"AP\", (CharStats.GetStatamount ( \"AP\" ) + ( CharStats.GetStatamount ( \"Strength\" ) * 2 )));\r\n\t\t\r\n\t\t//System.out.println(\"fra char: Melee crit%\"+CharStats.GetStatamount ( \"Melee crit%\" )+\" crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" agi=\"+CharStats.GetStatamount ( \"Agility\" ));\r\n\t\tCombatstats.SetStat ( \"Melee crit%\", (CharStats.GetStatamount ( \"Melee crit%\" ) + Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) + AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )) ));\r\n\t\t//System.out.println(\"Agility total=\"+CharStats.GetStatamount ( \"Agility\" )+\" crit fra agi=\"+AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )));\r\n\t\t//System.out.println( \"Crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" crit %=\"+Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) );\r\n\t\t//System.out.println(\"Slutt-crit=\"+Combatstats.GetStatamount ( \"Melee crit%\"));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Hit%\", (CharStats.GetStatamount ( \"Hit%\" ) + Hit_RatingToChance(CharStats.GetStatamount ( \"Hit rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Expertise\", (CharStats.GetStatamount ( \"Expertise\" ) + ExpRatingToExpertise(CharStats.GetStatamount ( \"Expert. rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Dodge neglect\", (CharStats.GetStatamount ( \"Dodge neglect\" ) + ExpertiseToBonus(Combatstats.GetStatamount ( \"Expertise\" ))));\r\n\t\t//System.out.println(\"Expert. rating=\"+CharStats.GetStatamount ( \"Expert. rating\" )+\" neglect=\"+Combatstats.GetStatamount ( \"Dodge neglect\" ));\r\n\r\n\t\tCombatstats.SetStat ( \"Haste%\", (CharStats.GetStatamount ( \"Haste%\" ) + this.HasteRatingToHasteBonus ( ( int ) CharStats.GetStatamount ( \"Haste rating\" ))));\r\n\t\t//System.out.println(\"Haste rating=\"+CharStats.GetStatamount ( \"Haste rating\" )+\" haste%=\"+Combatstats.GetStatamount ( \"Haste%\" ));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Health\", (CharStats.GetStatamount ( \"Health\" ) + ( CharStats.GetStatamount ( \"Stamina\" ) * 10 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Mana\", (CharStats.GetStatamount ( \"Mana\" ) + ( CharStats.GetStatamount ( \"Intellect\" ) * 15 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Penet.%\", (CharStats.GetStatamount ( \"Penet.%\" ) + PenetrationRatingToBonus(CharStats.GetStatamount ( \"Penet. rating\" ))));\t\r\n\t\tif ( CharStats.GetStatamount ( \"Penet.%\" ) > 100.0 ) {\r\n\t\t\tCombatstats.SetStat ( \"Penet.%\", 100);\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Armor\", (CharStats.GetStatamount ( \"Armor\" ) + ( CharStats.GetStatamount ( \"Agility\" ) * 2 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn min dmg\", CharStats.GetStatamount ( \"Wpn min dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn max dmg\", CharStats.GetStatamount ( \"Wpn max dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Weapon speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"White speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tif ( Combatstats.GetStatamount ( \"Haste%\" ) != 0 ) {\r\n\t\t\tdouble BaseSpeed = CharStats.GetStatamount ( \"Weapon speed\" );\r\n\t\t\tdouble NewWhiteSpeed = WhiteSpeed ( BaseSpeed, Combatstats.GetStatamount ( \"Haste%\" ) );\r\n\t\t\tCombatstats.SetStat ( \"White speed\", NewWhiteSpeed );\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Spelldmg\", CharStats.GetStatamount ( \"Spelldmg\" ) );\r\n\t\t\r\n\t\t//intellect -> crit\r\n\t\t//spirit\r\n\t\t//armor\r\n\t\t//spell crit\r\n\t\t//mp5\r\n\r\n\t\t//System.out.println(new Date()+\" 2- \" + new Throwable().fillInStackTrace().getStackTrace()[0]+\") <- \" + new Throwable().fillInStackTrace().getStackTrace()[1]+\")\");\r\n\t\treturn Combatstats;\r\n\r\n\t}", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}", "void statsReset();", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index);", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public BaseStatistics() {\n\t\tsuper();\n\t}", "private void writeSecondLevelMonitors() {}", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public int getSessionAverageAliveTime();", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "Map<String, Object> getStats();", "int getHPPerSecond();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getVideoMulticastTtl();", "void printStats();", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}", "static void groveChannels() {\n\n\t\tswitch (myParent) {\n\t\tcase 1:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\tcase 2:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER2_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE2_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE2_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE2_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE2_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE2_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE2_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE2_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE2_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE2_YMAX;\n\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER3_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE3_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE3_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE3_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE3_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE3_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE3_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE3_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE3_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE3_YMAX;\n\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\t}\n\t}", "int getMPPerSecond();", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "@java.lang.Override\n public long getTurnStartMs() {\n return turnStartMs_;\n }", "public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }" ]
[ "0.6431867", "0.56212586", "0.56016165", "0.54969954", "0.541677", "0.5398975", "0.53277826", "0.52387303", "0.52341783", "0.51970136", "0.51766545", "0.51753277", "0.5155944", "0.5138573", "0.50694793", "0.5059419", "0.5049914", "0.50363725", "0.5013768", "0.50131625", "0.50117946", "0.499529", "0.49911228", "0.49890137", "0.49807507", "0.49696034", "0.49678108", "0.49628094", "0.4953784", "0.49485147", "0.49253702", "0.49119347", "0.48928714", "0.4882829", "0.4876402", "0.48763072", "0.48598507", "0.48592052", "0.48562914", "0.48544115", "0.4854072", "0.48539418", "0.48309618", "0.48260564", "0.48204964", "0.48204035", "0.48151016", "0.48134556", "0.481119", "0.47966054", "0.47915217", "0.47804105", "0.47730705", "0.47730705", "0.47730705", "0.47729886", "0.47690606", "0.47652164", "0.4765075", "0.47628567", "0.47589186", "0.47478324", "0.47461873", "0.47445312", "0.474335", "0.47429383", "0.47397798", "0.47335178", "0.47300452", "0.47276524", "0.47253954", "0.4722752", "0.47089973", "0.47080517", "0.47063544", "0.47052598", "0.46993333", "0.46935436", "0.46886933", "0.4678424", "0.46730047", "0.46716183", "0.46667334", "0.46654618", "0.46648917", "0.4662229", "0.46617028", "0.46589833", "0.46555766", "0.4653439", "0.46504852", "0.46479023", "0.46450308", "0.4643502", "0.46391156", "0.46329513", "0.4629066", "0.46285436", "0.46278575", "0.46272802", "0.46267235" ]
0.0
-1
inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats)
@JsProperty(name = "timestamp") public native void setTimestamp(@DoNotAutobox Number value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "private FPS(){}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "public interface RTCDataChannel extends EventTarget {\n @JSBody(script = \"return RTCDataChannel.prototype\")\n static RTCDataChannel prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new RTCDataChannel()\")\n static RTCDataChannel create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n String getBinaryType();\n\n @JSProperty\n void setBinaryType(String binaryType);\n\n @JSProperty\n int getBufferedAmount();\n\n @JSProperty\n int getBufferedAmountLowThreshold();\n\n @JSProperty\n void setBufferedAmountLowThreshold(int bufferedAmountLowThreshold);\n\n @JSProperty\n @Nullable\n int getId();\n\n @JSProperty\n String getLabel();\n\n @JSProperty\n @Nullable\n double getMaxPacketLifeTime();\n\n @JSProperty\n @Nullable\n int getMaxRetransmits();\n\n @JSProperty\n boolean isNegotiated();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnbufferedamountlow();\n\n @JSProperty\n void setOnbufferedamountlow(EventListener<Event> onbufferedamountlow);\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener) {\n addEventListener(\"bufferedamountlow\", listener);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener) {\n removeEventListener(\"bufferedamountlow\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnclose();\n\n @JSProperty\n void setOnclose(EventListener<Event> onclose);\n\n default void addCloseEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener) {\n addEventListener(\"close\", listener);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener) {\n removeEventListener(\"close\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCErrorEvent> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<RTCErrorEvent> onerror);\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<MessageEvent> getOnmessage();\n\n @JSProperty\n void setOnmessage(EventListener<MessageEvent> onmessage);\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener) {\n addEventListener(\"message\", listener);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, EventListenerOptions options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener) {\n removeEventListener(\"message\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnopen();\n\n @JSProperty\n void setOnopen(EventListener<Event> onopen);\n\n default void addOpenEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener) {\n addEventListener(\"open\", listener);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener) {\n removeEventListener(\"open\", listener);\n }\n\n @JSProperty\n boolean isOrdered();\n\n @JSProperty\n RTCPriorityType getPriority();\n\n @JSProperty\n String getProtocol();\n\n @JSProperty\n RTCDataChannelState getReadyState();\n\n void close();\n\n void send(String data);\n\n void send(Blob data);\n\n void send(BufferSource data);\n\n}", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Stats getBaseStats() {\n return baseStats;\n }", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "int getHeartRate();", "@Override\n public void timePassed() {\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();", "public interface RtcListener {\n /**\n * socket连接完成\n * @param result\n */\n void onConnectSocketFinish(boolean result);\n\n /**\n * rtc状态改变\n * @param id\n * @param iceConnectionState\n */\n void onStatusChanged(String id, PeerConnection.IceConnectionState iceConnectionState);\n\n /**\n * 加载本地视频\n * @param localStream\n * @param track\n */\n void onLocalStream(MediaStream localStream, VideoTrack track);\n\n /**\n * 加载远程视频\n * @param remoteStream\n * @param endPoint\n */\n void onAddRemoteStream(MediaStream remoteStream, int endPoint);\n\n /**\n * 移除视频\n */\n void onRemoveRemoteStream();\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "public abstract void sendTraceTime(Player p);", "Object getClock();", "public abstract void statsReset();", "@Override\r\n public void timePassed() {\r\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "private static void initStatistics(Player p){\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "int getMonitors();", "int getRt();", "public abstract void broadcastTraceTime(Server s);", "float getVideoCaptureRateFactor();", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "private void resetStats() {\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Bitmap timerEvent(){\n \t\t\n \t\t//Create packet\n \t\treceive_packet = new DatagramPacket(buf, buf.length);\n \t\t\n \t\ttry{\n \t\t\t//Receive packet\n \t\t\tsocket.receive(receive_packet);\n \t\t\trtp_packet = new RtpPacket(receive_packet.getData(), receive_packet.getLength());\n \t\t\tBitmap bmp = rtp_packet.getBmp();\n \t\t\t\n \t\t\t//Commented out now that we're getting BMP in packet\n \t\t\t//Get payload\n \t\t\t/*plength = rtp_packet.getLength();\n \t\t\tif(plength>largestFrame){\n \t\t\t\tlargestFrame = plength;\n \t\t\t\tSystem.out.println(\"The Largest Frame is: \" + largestFrame);\n \t\t\t}\n \t\t\tbyte[] payload = new byte[plength];\n \t\t\tfor(int i = 0; i < plength; i++){\n \t\t\t\tpayload[i] = rtp_packet.getPayload()[i];\n \t\t\t}*/\n \t\t\t\n \t\t\tSystem.out.println(\"Got Payload!!!!!\");\n \t\t\treturn bmp;\n \t\t\t\n \t\t}\n \t\t//Sometimes the socket won't be made correctly if the user puts in an incorrect IP\n \t\tcatch(java.lang.NullPointerException en){\n \t\t\ttry{\n \t\t\t\tsocket = new DatagramSocket(25000);\n \t\t\t\tsocket.setSoTimeout(10);\n \t\t\t}catch(Exception e){\n \t\t\t\tSystem.out.println(\"Error Creating Socket Again!\");\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tcatch(java.net.SocketTimeoutException se){\n \t\t\tSystem.out.println(\"Reached end of video, teardown\");\n \t\t\treturn null;\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tSystem.out.println(\"Error with UDP, Packet Dropped\");\n \t\t\tSystem.out.println(e);\n \t\t\treturn null;\n \t\t}\n \t\t\n \t}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "public interface LiveHostEvents extends LiveEvents{\n /** Live infomation\n * @param strUrl Rtmp/Hls url\n * @param strSessionId SessionId\n */\n public void OnRtcLiveInfomation(String strUrl, String strSessionId);\n\n /** Guest want to line with you\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n * @param strBrief A brief\n */\n public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);\n\n /** Guest cancel line apply\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n */\n public void OnRtcLiveCancelLine(String strPeerId, String strUserName);\n}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "public TransmissionStats\n getSourceTransmissionStats();", "String getFPS();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getVideoDscp();", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public Object_Stats ConvertToCombatstats (Object_Stats CharStats) {\n\r\n\t\tObject_Stats Combatstats = new Object_Stats();\r\n\t\tCombatstats.SetStat ( \"AP\", (CharStats.GetStatamount ( \"AP\" ) + ( CharStats.GetStatamount ( \"Strength\" ) * 2 )));\r\n\t\t\r\n\t\t//System.out.println(\"fra char: Melee crit%\"+CharStats.GetStatamount ( \"Melee crit%\" )+\" crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" agi=\"+CharStats.GetStatamount ( \"Agility\" ));\r\n\t\tCombatstats.SetStat ( \"Melee crit%\", (CharStats.GetStatamount ( \"Melee crit%\" ) + Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) + AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )) ));\r\n\t\t//System.out.println(\"Agility total=\"+CharStats.GetStatamount ( \"Agility\" )+\" crit fra agi=\"+AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )));\r\n\t\t//System.out.println( \"Crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" crit %=\"+Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) );\r\n\t\t//System.out.println(\"Slutt-crit=\"+Combatstats.GetStatamount ( \"Melee crit%\"));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Hit%\", (CharStats.GetStatamount ( \"Hit%\" ) + Hit_RatingToChance(CharStats.GetStatamount ( \"Hit rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Expertise\", (CharStats.GetStatamount ( \"Expertise\" ) + ExpRatingToExpertise(CharStats.GetStatamount ( \"Expert. rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Dodge neglect\", (CharStats.GetStatamount ( \"Dodge neglect\" ) + ExpertiseToBonus(Combatstats.GetStatamount ( \"Expertise\" ))));\r\n\t\t//System.out.println(\"Expert. rating=\"+CharStats.GetStatamount ( \"Expert. rating\" )+\" neglect=\"+Combatstats.GetStatamount ( \"Dodge neglect\" ));\r\n\r\n\t\tCombatstats.SetStat ( \"Haste%\", (CharStats.GetStatamount ( \"Haste%\" ) + this.HasteRatingToHasteBonus ( ( int ) CharStats.GetStatamount ( \"Haste rating\" ))));\r\n\t\t//System.out.println(\"Haste rating=\"+CharStats.GetStatamount ( \"Haste rating\" )+\" haste%=\"+Combatstats.GetStatamount ( \"Haste%\" ));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Health\", (CharStats.GetStatamount ( \"Health\" ) + ( CharStats.GetStatamount ( \"Stamina\" ) * 10 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Mana\", (CharStats.GetStatamount ( \"Mana\" ) + ( CharStats.GetStatamount ( \"Intellect\" ) * 15 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Penet.%\", (CharStats.GetStatamount ( \"Penet.%\" ) + PenetrationRatingToBonus(CharStats.GetStatamount ( \"Penet. rating\" ))));\t\r\n\t\tif ( CharStats.GetStatamount ( \"Penet.%\" ) > 100.0 ) {\r\n\t\t\tCombatstats.SetStat ( \"Penet.%\", 100);\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Armor\", (CharStats.GetStatamount ( \"Armor\" ) + ( CharStats.GetStatamount ( \"Agility\" ) * 2 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn min dmg\", CharStats.GetStatamount ( \"Wpn min dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn max dmg\", CharStats.GetStatamount ( \"Wpn max dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Weapon speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"White speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tif ( Combatstats.GetStatamount ( \"Haste%\" ) != 0 ) {\r\n\t\t\tdouble BaseSpeed = CharStats.GetStatamount ( \"Weapon speed\" );\r\n\t\t\tdouble NewWhiteSpeed = WhiteSpeed ( BaseSpeed, Combatstats.GetStatamount ( \"Haste%\" ) );\r\n\t\t\tCombatstats.SetStat ( \"White speed\", NewWhiteSpeed );\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Spelldmg\", CharStats.GetStatamount ( \"Spelldmg\" ) );\r\n\t\t\r\n\t\t//intellect -> crit\r\n\t\t//spirit\r\n\t\t//armor\r\n\t\t//spell crit\r\n\t\t//mp5\r\n\r\n\t\t//System.out.println(new Date()+\" 2- \" + new Throwable().fillInStackTrace().getStackTrace()[0]+\") <- \" + new Throwable().fillInStackTrace().getStackTrace()[1]+\")\");\r\n\t\treturn Combatstats;\r\n\r\n\t}", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "void statsReset();", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index);", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public BaseStatistics() {\n\t\tsuper();\n\t}", "private void writeSecondLevelMonitors() {}", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public int getSessionAverageAliveTime();", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "Map<String, Object> getStats();", "int getHPPerSecond();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getVideoMulticastTtl();", "void printStats();", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}", "int getMPPerSecond();", "static void groveChannels() {\n\n\t\tswitch (myParent) {\n\t\tcase 1:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\tcase 2:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER2_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE2_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE2_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE2_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE2_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE2_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE2_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE2_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE2_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE2_YMAX;\n\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER3_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE3_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE3_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE3_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE3_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE3_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE3_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE3_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE3_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE3_YMAX;\n\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}", "public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }", "@java.lang.Override\n public long getTurnStartMs() {\n return turnStartMs_;\n }" ]
[ "0.6432136", "0.56212527", "0.5601676", "0.5497257", "0.54163784", "0.53979784", "0.5328487", "0.5239743", "0.52342427", "0.5197983", "0.51781124", "0.5176569", "0.51568604", "0.5139286", "0.5068765", "0.50601274", "0.50497085", "0.5035447", "0.501463", "0.50131446", "0.50128156", "0.49945274", "0.49910444", "0.49883097", "0.49810478", "0.4969896", "0.49679378", "0.4964074", "0.49531898", "0.4948253", "0.4926191", "0.49137765", "0.48927018", "0.4882639", "0.4877248", "0.48751524", "0.486026", "0.48594552", "0.4857293", "0.48541272", "0.4853782", "0.48533455", "0.48311898", "0.48257977", "0.4821235", "0.48198572", "0.4815736", "0.48128295", "0.48102915", "0.47964355", "0.47921497", "0.47802156", "0.47746226", "0.47746226", "0.47746226", "0.47721216", "0.47680804", "0.4765678", "0.47652972", "0.47652966", "0.47567928", "0.4748594", "0.4745379", "0.47437662", "0.47433034", "0.47429577", "0.47396776", "0.47345614", "0.47317424", "0.47272643", "0.47263646", "0.47215715", "0.47105542", "0.47081152", "0.47069874", "0.47036543", "0.4700965", "0.46938848", "0.46891034", "0.46782315", "0.4673326", "0.4671739", "0.466572", "0.4664661", "0.46643993", "0.46622047", "0.46611002", "0.4657894", "0.46537557", "0.4653087", "0.46515396", "0.46487802", "0.46459514", "0.46435276", "0.46403348", "0.4632953", "0.46289772", "0.46278864", "0.4627796", "0.4626986", "0.4626828" ]
0.0
-1
inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats) inherited from (js.browser.RTCStats)
@JsProperty(name = "type") public native void setType(String value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface RTCIceGatherer extends RTCStatsProvider {\n @JSBody(script = \"return RTCIceGatherer.prototype\")\n static RTCIceGatherer prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(params = \"options\", script = \"return new RTCIceGatherer(options)\")\n static RTCIceGatherer create(RTCIceGatherOptions options) {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n RTCIceComponent getComponent();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<Event> onerror);\n\n default void addErrorEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<Event> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<Event> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCIceGathererEvent> getOnlocalcandidate();\n\n @JSProperty\n void setOnlocalcandidate(EventListener<RTCIceGathererEvent> onlocalcandidate);\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n addEventListener(\"localcandidate\", listener, options);\n }\n\n default void addLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n addEventListener(\"localcandidate\", listener);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, EventListenerOptions options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener, boolean options) {\n removeEventListener(\"localcandidate\", listener, options);\n }\n\n default void removeLocalCandidateEventListener(EventListener<RTCIceGathererEvent> listener) {\n removeEventListener(\"localcandidate\", listener);\n }\n\n RTCIceGatherer createAssociatedGatherer();\n\n Array<RTCIceCandidateDictionary> getLocalCandidates();\n\n RTCIceParameters getLocalParameters();\n\n}", "@Override\n public void onTrafficStatusUpdate() {\n\n }", "@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}", "@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}", "public void sendRTCPPacket() {\r\n int rc = receiveStreams.size();\r\n if (rc > MAX_RC_COUNT) {\r\n rc = MAX_RC_COUNT;\r\n }\r\n long delay = calculateRTCPDelay();\r\n long now = System.currentTimeMillis();\r\n \r\n // If now is too early to send a packet, wait until later\r\n if (now < (lastRTCPSendTime + delay)) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), \r\n (lastRTCPSendTime + delay) - now);\r\n } else {\r\n \r\n // Reset the stats\r\n lastRTCPSendTime = System.currentTimeMillis();\r\n globalReceptionStats.resetBytesRecd();\r\n \r\n // Get the packet details\r\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\r\n DataOutputStream output = new DataOutputStream(bytes);\r\n\r\n try {\r\n \r\n // Determine the packet type\r\n int packetType = RTCPPacket.PT_RR;\r\n int packetSize = (rc * RTCPFeedback.SIZE) + BITS_PER_BYTE;\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n packetSize += RTCPSenderInfo.SIZE;\r\n }\r\n \r\n // Add a RTCP header\r\n output.writeByte(RTCP_HEADER_BYTE | (rc & SOURCE_COUNT_MASK));\r\n output.writeByte(packetType & INT_TO_BYTE_MASK);\r\n output.writeShort(((packetSize) / BYTES_PER_WORD) - 1);\r\n output.writeInt((int) (ssrc & LONG_TO_INT_MASK));\r\n\r\n // If we are a sender, add sender stats\r\n if (localParticipant.getStreams().size() > 0) {\r\n packetType = RTCPPacket.PT_SR;\r\n int senderIndex = (int) (Math.random()\r\n * localParticipant.getStreams().size());\r\n RTPSendStream sendStream = \r\n (RTPSendStream) localParticipant.getStreams().get(\r\n senderIndex);\r\n TransmissionStats stats = \r\n sendStream.getSourceTransmissionStats();\r\n long sendtime = sendStream.getLastSendTime();\r\n sendtime += UNIX_TO_NTP_CONVERTER;\r\n long sendTimeSeconds = sendtime / SECS_TO_MS;\r\n long sendTimeFractions = \r\n ((sendtime - (sendTimeSeconds * SECS_TO_MS))\r\n / SECS_TO_MS) * (Integer.MAX_VALUE\r\n * UNSIGNED_MAX_INT_MULTIPLIER);\r\n long timestamp = sendStream.getLastTimestamp();\r\n output.writeInt((int) (sendTimeSeconds & LONG_TO_INT_MASK));\r\n output.writeInt((int) (sendTimeFractions\r\n & LONG_TO_INT_MASK));\r\n output.writeInt((int) (timestamp & LONG_TO_INT_MASK));\r\n output.writeInt(stats.getPDUTransmitted());\r\n output.writeInt(stats.getBytesTransmitted());\r\n }\r\n \r\n // Add the receiver reports\r\n Vector<RTPReceiveStream> streams = new Vector<RTPReceiveStream>(receiveStreams.values());\r\n now = System.currentTimeMillis();\r\n for (int i = 0; i < rc; i++) {\r\n int pos = (int) (Math.random() * streams.size());\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) streams.get(pos);\r\n RTPReceptionStats stats = \r\n (RTPReceptionStats) stream.getSourceReceptionStats();\r\n RTPDataSource dataSource = \r\n (RTPDataSource) stream.getDataSource();\r\n RTPDataStream dataStream = \r\n (RTPDataStream) dataSource.getStreams()[0];\r\n long streamSSRC = stream.getSSRC();\r\n int lossFraction = 0;\r\n if (stats.getPDUProcessed() > 0) {\r\n lossFraction = (LOSS_FRACTION_MULTIPLIER\r\n * stats.getPDUlost())\r\n / stats.getPDUProcessed();\r\n }\r\n long lastESequence = \r\n (stats.getSequenceWrap() * RTPHeader.MAX_SEQUENCE)\r\n + dataStream.getLastSequence();\r\n long packetsExpected = \r\n lastESequence - dataStream.getFirstSequence(); \r\n int cumulativePacketLoss = (int) (packetsExpected\r\n - (stats.getPDUProcessed() + stats.getPDUDuplicate()));\r\n long jitter = \r\n ((RTPDataSource) stream.getDataSource()).getJitter();\r\n long lsrMSW = stream.getLastSRReportTimestampMSW();\r\n long lsrLSW = stream.getLastSRReportTimestampLSW();\r\n long dSLR = ((now - stream.getLastSRReportTime())\r\n * SECS_TO_MS) / DELAY_RESOLUTION;\r\n if (stream.getLastSRReportTime() == 0) {\r\n dSLR = 0;\r\n }\r\n output.writeInt((int) (streamSSRC & LONG_TO_INT_MASK));\r\n output.writeByte(lossFraction & INT_TO_BYTE_MASK);\r\n output.writeByte((cumulativePacketLoss\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_BYTE_MASK);\r\n output.writeShort((cumulativePacketLoss\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (lastESequence & LONG_TO_INT_MASK));\r\n output.writeInt((int) (jitter & LONG_TO_INT_MASK));\r\n output.writeShort((int) (lsrMSW & INT_TO_SHORT_MASK));\r\n output.writeShort((int) ((lsrLSW\r\n >> PACKET_LOSS_SHORT_1_SHIFT)\r\n & INT_TO_SHORT_MASK));\r\n output.writeInt((int) (dSLR & LONG_TO_INT_MASK));\r\n streams.remove(pos);\r\n }\r\n \r\n // Add the SDES items\r\n if (localParticipant.getStreams().size() == 0) {\r\n Vector<SourceDescription> sdesItems = \r\n localParticipant.getSourceDescription();\r\n if (sdesItems.size() > 0) {\r\n int padding = writeSDESHeader(output, 1,\r\n localParticipant.getSdesSize());\r\n writeSDES(output, sdesItems, ssrc);\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n } else {\r\n Vector<RTPStream> sendStreams = localParticipant.getStreams();\r\n int totalSDES = 0;\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n totalSDES += \r\n ((RTPSendStream) \r\n sendStreams.get(i)).getSdesSize();\r\n }\r\n int padding = writeSDESHeader(output, sendStreams.size(),\r\n totalSDES);\r\n for (int i = 0; i < sendStreams.size(); i++) {\r\n RTPSendStream sendStream = \r\n (RTPSendStream) sendStreams.get(i);\r\n writeSDES(output, sendStream.getSourceDescription(),\r\n sendStream.getSSRC());\r\n }\r\n \r\n // Add the sdes padding\r\n for (int i = 0; i < padding; i++) {\r\n output.writeByte(padding);\r\n }\r\n }\r\n \r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n Iterator<RTPConnector> iterator = targets.values().iterator();\r\n while (iterator.hasNext()) {\r\n RTPConnector connector = (RTPConnector) iterator.next();\r\n try {\r\n OutputDataStream outputStream = \r\n connector.getControlOutputStream();\r\n output.close();\r\n bytes.close();\r\n byte[] data = bytes.toByteArray();\r\n outputStream.write(data, 0, data.length);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n \r\n // Prepare to send the next packet\r\n if (!done) {\r\n rtcpTimer.schedule(new RTCPTimerTask(this), delay);\r\n }\r\n }\r\n }", "private FPS(){}", "private double getSystemCallStatistics()\n {\n return(-1);\n }", "@Override\n\tpublic void callStatsUpdated(LinphoneCore lc, LinphoneCall call,\n\t\t\tLinphoneCallStats stats) {\n\t\t\n\t}", "public interface RTCDataChannel extends EventTarget {\n @JSBody(script = \"return RTCDataChannel.prototype\")\n static RTCDataChannel prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new RTCDataChannel()\")\n static RTCDataChannel create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSProperty\n String getBinaryType();\n\n @JSProperty\n void setBinaryType(String binaryType);\n\n @JSProperty\n int getBufferedAmount();\n\n @JSProperty\n int getBufferedAmountLowThreshold();\n\n @JSProperty\n void setBufferedAmountLowThreshold(int bufferedAmountLowThreshold);\n\n @JSProperty\n @Nullable\n int getId();\n\n @JSProperty\n String getLabel();\n\n @JSProperty\n @Nullable\n double getMaxPacketLifeTime();\n\n @JSProperty\n @Nullable\n int getMaxRetransmits();\n\n @JSProperty\n boolean isNegotiated();\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnbufferedamountlow();\n\n @JSProperty\n void setOnbufferedamountlow(EventListener<Event> onbufferedamountlow);\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void addBufferedAmountLowEventListener(EventListener<Event> listener) {\n addEventListener(\"bufferedamountlow\", listener);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"bufferedamountlow\", listener, options);\n }\n\n default void removeBufferedAmountLowEventListener(EventListener<Event> listener) {\n removeEventListener(\"bufferedamountlow\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnclose();\n\n @JSProperty\n void setOnclose(EventListener<Event> onclose);\n\n default void addCloseEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"close\", listener, options);\n }\n\n default void addCloseEventListener(EventListener<Event> listener) {\n addEventListener(\"close\", listener);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"close\", listener, options);\n }\n\n default void removeCloseEventListener(EventListener<Event> listener) {\n removeEventListener(\"close\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<RTCErrorEvent> getOnerror();\n\n @JSProperty\n void setOnerror(EventListener<RTCErrorEvent> onerror);\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n addEventListener(\"error\", listener, options);\n }\n\n default void addErrorEventListener(EventListener<RTCErrorEvent> listener) {\n addEventListener(\"error\", listener);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, EventListenerOptions options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener, boolean options) {\n removeEventListener(\"error\", listener, options);\n }\n\n default void removeErrorEventListener(EventListener<RTCErrorEvent> listener) {\n removeEventListener(\"error\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<MessageEvent> getOnmessage();\n\n @JSProperty\n void setOnmessage(EventListener<MessageEvent> onmessage);\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, AddEventListenerOptions options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n addEventListener(\"message\", listener, options);\n }\n\n default void addMessageEventListener(EventListener<MessageEvent> listener) {\n addEventListener(\"message\", listener);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, EventListenerOptions options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener, boolean options) {\n removeEventListener(\"message\", listener, options);\n }\n\n default void removeMessageEventListener(EventListener<MessageEvent> listener) {\n removeEventListener(\"message\", listener);\n }\n\n @JSProperty\n @Nullable\n EventListener<Event> getOnopen();\n\n @JSProperty\n void setOnopen(EventListener<Event> onopen);\n\n default void addOpenEventListener(EventListener<Event> listener, AddEventListenerOptions options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener, boolean options) {\n addEventListener(\"open\", listener, options);\n }\n\n default void addOpenEventListener(EventListener<Event> listener) {\n addEventListener(\"open\", listener);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, EventListenerOptions options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener, boolean options) {\n removeEventListener(\"open\", listener, options);\n }\n\n default void removeOpenEventListener(EventListener<Event> listener) {\n removeEventListener(\"open\", listener);\n }\n\n @JSProperty\n boolean isOrdered();\n\n @JSProperty\n RTCPriorityType getPriority();\n\n @JSProperty\n String getProtocol();\n\n @JSProperty\n RTCDataChannelState getReadyState();\n\n void close();\n\n void send(String data);\n\n void send(Blob data);\n\n void send(BufferSource data);\n\n}", "@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}", "public Stats() {\n numIn = 0;\n numOut = 0;\n totTimeWait = 0;\n totTime = 0;\n }", "public Stats getBaseStats() {\n return baseStats;\n }", "java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> \n getStatsList();", "int getHeartRate();", "@Override\n public void timePassed() {\n }", "public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}", "java.util.List<com.google.speech.logs.MicrophoneChannelStatistics> \n getChannelStatisticsList();", "public interface RtcListener {\n /**\n * socket连接完成\n * @param result\n */\n void onConnectSocketFinish(boolean result);\n\n /**\n * rtc状态改变\n * @param id\n * @param iceConnectionState\n */\n void onStatusChanged(String id, PeerConnection.IceConnectionState iceConnectionState);\n\n /**\n * 加载本地视频\n * @param localStream\n * @param track\n */\n void onLocalStream(MediaStream localStream, VideoTrack track);\n\n /**\n * 加载远程视频\n * @param remoteStream\n * @param endPoint\n */\n void onAddRemoteStream(MediaStream remoteStream, int endPoint);\n\n /**\n * 移除视频\n */\n void onRemoveRemoteStream();\n }", "private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }", "public abstract void sendTraceTime(Player p);", "public String stats() { \r\n String stats; \r\n stats = getWins() + \" wins, \" + getLosses() + \" losses, \" \r\n + getSaves() + \" saves, \" + getEra() + \" ERA\"; \r\n return stats;\r\n }", "Object getClock();", "public abstract void statsReset();", "@Override\r\n public void timePassed() {\r\n }", "public void checkStats() {\n try {\n if (this.screenId != null && this.screenModel != null) {\n AnalyticsUtil.sendStats(this, this.screenModel, this.screenType);\n }\n } catch (Exception e) {\n Crashlytics.logException(e);\n }\n }", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "private static void initStatistics(Player p){\n }", "public Statistics() {\r\n\t\tcurrentGameTime = 0;\r\n\t\ttotalTime = 0;\r\n\t\tminTime = Integer.MAX_VALUE;\r\n\t\tmaxTime = 0;\r\n\t\tscores = new int[2];\r\n\t\twinnerId = 0;\r\n\t\tvictories = new int[2];\r\n\t\tgameCount = 0;\r\n\t}", "private static double getWinRate() {\n\t\treturn winRate ;\n\t}", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public interface StatisticsMonitor {\n\n /**\n * The default statistics interval which is 5 seconds.\n */\n static final long DEFAULT_MONITOR_INTERVAL = 5000;\n\n /**\n * The default history size stored in statistics.\n */\n static final int DEFAULT_HISTORY_SIZE = 12 * 10;\n\n /**\n * Sets the statistics interval, automatically updating the monitoring scheduled tasks if\n * monitoring is enabled.\n * @since 8.0 Restarts monitoring, with new interval, if no other party is already monitoring for statistics.\n */\n void setStatisticsInterval(long interval, TimeUnit timeUnit);\n\n /**\n * Sets the history size of number of statistics stored.\n */\n void setStatisticsHistorySize(int historySize);\n\n /**\n * Starts the statistics monitor, starting a scheduled monitor that polls for statistics. Monitoring\n * is required only when wanting to receive statistics change events.\n * @since 8.0 Restarts monitoring if no other party is already monitoring for statistics. \n */\n void startStatisticsMonitor();\n\n /**\n * Stops the statistics monitor.\n * @since 8.0 Stops monitoring if no other party is monitoring for statistics. \n */\n void stopStatisticsMonitor();\n\n /**\n * Returns <code>true</code> if statistics are now being monitored.\n */\n boolean isMonitoring();\n}", "public Statistics() {\n\t\ttotalTicks = idleTicks = systemTicks = userTicks = 0;\n\t\tnumDiskReads = numDiskWrites = 0;\n\t\tnumConsoleCharsRead = numConsoleCharsWritten = 0;\n\t\tnumPageFaults = numPacketsSent = numPacketsRecvd = 0;\n\t}", "int getMonitors();", "int getRt();", "float getVideoCaptureRateFactor();", "public abstract void broadcastTraceTime(Server s);", "java.util.List<org.tensorflow.proto.profiler.XStat> \n getStatsList();", "private void resetStats() {\n }", "@Override\n\tpublic Map<InetSocketAddress, Map<String, String>> getStats()\n\t\t\tthrows MemcachedException, InterruptedException, TimeoutException {\n\t\treturn null;\n\t}", "public Bitmap timerEvent(){\n \t\t\n \t\t//Create packet\n \t\treceive_packet = new DatagramPacket(buf, buf.length);\n \t\t\n \t\ttry{\n \t\t\t//Receive packet\n \t\t\tsocket.receive(receive_packet);\n \t\t\trtp_packet = new RtpPacket(receive_packet.getData(), receive_packet.getLength());\n \t\t\tBitmap bmp = rtp_packet.getBmp();\n \t\t\t\n \t\t\t//Commented out now that we're getting BMP in packet\n \t\t\t//Get payload\n \t\t\t/*plength = rtp_packet.getLength();\n \t\t\tif(plength>largestFrame){\n \t\t\t\tlargestFrame = plength;\n \t\t\t\tSystem.out.println(\"The Largest Frame is: \" + largestFrame);\n \t\t\t}\n \t\t\tbyte[] payload = new byte[plength];\n \t\t\tfor(int i = 0; i < plength; i++){\n \t\t\t\tpayload[i] = rtp_packet.getPayload()[i];\n \t\t\t}*/\n \t\t\t\n \t\t\tSystem.out.println(\"Got Payload!!!!!\");\n \t\t\treturn bmp;\n \t\t\t\n \t\t}\n \t\t//Sometimes the socket won't be made correctly if the user puts in an incorrect IP\n \t\tcatch(java.lang.NullPointerException en){\n \t\t\ttry{\n \t\t\t\tsocket = new DatagramSocket(25000);\n \t\t\t\tsocket.setSoTimeout(10);\n \t\t\t}catch(Exception e){\n \t\t\t\tSystem.out.println(\"Error Creating Socket Again!\");\n \t\t\t}\n \t\t\treturn null;\n \t\t}\n \t\tcatch(java.net.SocketTimeoutException se){\n \t\t\tSystem.out.println(\"Reached end of video, teardown\");\n \t\t\treturn null;\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tSystem.out.println(\"Error with UDP, Packet Dropped\");\n \t\t\tSystem.out.println(e);\n \t\t\treturn null;\n \t\t}\n \t\t\n \t}", "public interface LiveHostEvents extends LiveEvents{\n /** Live infomation\n * @param strUrl Rtmp/Hls url\n * @param strSessionId SessionId\n */\n public void OnRtcLiveInfomation(String strUrl, String strSessionId);\n\n /** Guest want to line with you\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n * @param strBrief A brief\n */\n public void OnRtcLiveApplyLine(String strPeerId, String strUserName, String strBrief);\n\n /** Guest cancel line apply\n * @param strPeerId Peer's ID\n * @param strUserName Peer's user name\n */\n public void OnRtcLiveCancelLine(String strPeerId, String strUserName);\n}", "public void startMeasuring() {\n\tsuper.startMeasuring();\n}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "long getCurrentClockNs() {\n return System.nanoTime();\n }", "public TransmissionStats\n getSourceTransmissionStats();", "String getFPS();", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "Integer getFrameRate() {\n return frameRate;\n }", "protected void handleRTCPPacket(byte[] data, int offset, int length) {\r\n try {\r\n int avgeRTCPSize = \r\n averageRTCPSize * globalReceptionStats.getRTCPRecd();\r\n globalReceptionStats.addRTCPRecd();\r\n globalReceptionStats.addBytesRecd(length);\r\n averageRTCPSize = \r\n (avgeRTCPSize + length + IP_UDP_HEADER_SIZE)\r\n / globalReceptionStats.getRTCPRecd();\r\n RTCPHeader header = new RTCPHeader(data, offset, length);\r\n \r\n // Get the stream of the participant, if available\r\n long ssrc = header.getSsrc();\r\n RTPReceiveStream stream = \r\n (RTPReceiveStream) receiveStreams.get(new Long(ssrc));\r\n \r\n RTCPReport report = null;\r\n RemoteEvent remoteEvent = null;\r\n \r\n // If the packet is SR, read the sender info\r\n if (header.getPacketType() == RTCPPacket.PT_SR) {\r\n report = new RTCPSenderReport(data, offset, length);\r\n ((RTCPSenderReport) report).setStream(stream);\r\n remoteEvent = new SenderReportEvent(this, \r\n (RTCPSenderReport) report);\r\n globalReceptionStats.addSRRecd();\r\n }\r\n \r\n // If the packet is RR, read the receiver info\r\n if (header.getPacketType() == RTCPPacket.PT_RR) {\r\n report = new RTCPReceiverReport(data, offset, length);\r\n remoteEvent = new ReceiverReportEvent(this, \r\n (RTCPReceiverReport) report);\r\n }\r\n \r\n // If the report is not null\r\n if (report != null) {\r\n String cname = report.getCName();\r\n if (cname == null) {\r\n cname = (String) senders.get(new Long(ssrc));\r\n }\r\n \r\n if (stream != null) {\r\n stream.setReport(report);\r\n }\r\n \r\n // If the cname is in the report\r\n if (cname != null) {\r\n \r\n // Store the cname for later\r\n senders.put(new Long(ssrc), cname);\r\n \r\n // Get the participant\r\n RTPRemoteParticipant participant = \r\n (RTPRemoteParticipant) activeParticipants.get(cname);\r\n if (participant == null) {\r\n participant = (RTPRemoteParticipant) \r\n inactiveParticipants.get(cname);\r\n }\r\n \r\n // If there is no participant, create one\r\n if (participant == null) {\r\n participant = new RTPRemoteParticipant(cname);\r\n getEventLock();\r\n SessionEvent event = \r\n new NewParticipantEvent(this, participant);\r\n new SessionNotifier(sessionListeners, event);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n \r\n // Set the participant of the report\r\n report.setParticipant(participant);\r\n participant.addReport(report);\r\n \r\n // If this is a bye packet, remove the stream\r\n if (report.isByePacket()) {\r\n participant.removeStream(stream);\r\n getEventLock();\r\n new ReceiveStreamNotifier(receiveStreamListeners,\r\n new ByeEvent(this, participant, stream, \r\n report.getByeReason(), \r\n participant.getStreams().size() == 0));\r\n if (participant.getStreams().size() == 0) {\r\n activeParticipants.remove(cname);\r\n inactiveParticipants.put(cname, participant);\r\n }\r\n } else {\r\n \r\n // If the stream is not null, map the stream\r\n if (stream != null) {\r\n if (!activeParticipants.containsKey(cname)) {\r\n inactiveParticipants.remove(cname);\r\n activeParticipants.put(cname, participant);\r\n }\r\n \r\n if (stream.getParticipant() == null) {\r\n participant.addStream(stream);\r\n stream.setParticipant(participant);\r\n getEventLock();\r\n ReceiveStreamEvent event = \r\n new StreamMappedEvent(this, stream, \r\n participant);\r\n new ReceiveStreamNotifier(\r\n receiveStreamListeners, event);\r\n }\r\n }\r\n }\r\n }\r\n \r\n // Notify listeners of this packet\r\n getEventLock();\r\n new RemoteNotifier(remoteListeners, remoteEvent);\r\n } else {\r\n throw new IOException(\"Unknown report type: \"\r\n + header.getPacketType());\r\n }\r\n \r\n } catch (IOException e) {\r\n globalReceptionStats.addBadRTCPPkt();\r\n }\r\n }", "public int getVideoDscp();", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public Object_Stats ConvertToCombatstats (Object_Stats CharStats) {\n\r\n\t\tObject_Stats Combatstats = new Object_Stats();\r\n\t\tCombatstats.SetStat ( \"AP\", (CharStats.GetStatamount ( \"AP\" ) + ( CharStats.GetStatamount ( \"Strength\" ) * 2 )));\r\n\t\t\r\n\t\t//System.out.println(\"fra char: Melee crit%\"+CharStats.GetStatamount ( \"Melee crit%\" )+\" crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" agi=\"+CharStats.GetStatamount ( \"Agility\" ));\r\n\t\tCombatstats.SetStat ( \"Melee crit%\", (CharStats.GetStatamount ( \"Melee crit%\" ) + Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) + AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )) ));\r\n\t\t//System.out.println(\"Agility total=\"+CharStats.GetStatamount ( \"Agility\" )+\" crit fra agi=\"+AgiToCritChance(CharStats.GetStatamount ( \"Agility\" )));\r\n\t\t//System.out.println( \"Crit rating=\"+CharStats.GetStatamount ( \"Crit rating\" )+\" crit %=\"+Crit_RatingToChance(CharStats.GetStatamount ( \"Crit rating\" )) );\r\n\t\t//System.out.println(\"Slutt-crit=\"+Combatstats.GetStatamount ( \"Melee crit%\"));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Hit%\", (CharStats.GetStatamount ( \"Hit%\" ) + Hit_RatingToChance(CharStats.GetStatamount ( \"Hit rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Expertise\", (CharStats.GetStatamount ( \"Expertise\" ) + ExpRatingToExpertise(CharStats.GetStatamount ( \"Expert. rating\" ))));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Dodge neglect\", (CharStats.GetStatamount ( \"Dodge neglect\" ) + ExpertiseToBonus(Combatstats.GetStatamount ( \"Expertise\" ))));\r\n\t\t//System.out.println(\"Expert. rating=\"+CharStats.GetStatamount ( \"Expert. rating\" )+\" neglect=\"+Combatstats.GetStatamount ( \"Dodge neglect\" ));\r\n\r\n\t\tCombatstats.SetStat ( \"Haste%\", (CharStats.GetStatamount ( \"Haste%\" ) + this.HasteRatingToHasteBonus ( ( int ) CharStats.GetStatamount ( \"Haste rating\" ))));\r\n\t\t//System.out.println(\"Haste rating=\"+CharStats.GetStatamount ( \"Haste rating\" )+\" haste%=\"+Combatstats.GetStatamount ( \"Haste%\" ));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Health\", (CharStats.GetStatamount ( \"Health\" ) + ( CharStats.GetStatamount ( \"Stamina\" ) * 10 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Mana\", (CharStats.GetStatamount ( \"Mana\" ) + ( CharStats.GetStatamount ( \"Intellect\" ) * 15 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Penet.%\", (CharStats.GetStatamount ( \"Penet.%\" ) + PenetrationRatingToBonus(CharStats.GetStatamount ( \"Penet. rating\" ))));\t\r\n\t\tif ( CharStats.GetStatamount ( \"Penet.%\" ) > 100.0 ) {\r\n\t\t\tCombatstats.SetStat ( \"Penet.%\", 100);\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Armor\", (CharStats.GetStatamount ( \"Armor\" ) + ( CharStats.GetStatamount ( \"Agility\" ) * 2 )));\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn min dmg\", CharStats.GetStatamount ( \"Wpn min dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Wpn max dmg\", CharStats.GetStatamount ( \"Wpn max dmg\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Weapon speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"White speed\", CharStats.GetStatamount ( \"Weapon speed\" ) );\r\n\t\t\r\n\t\tif ( Combatstats.GetStatamount ( \"Haste%\" ) != 0 ) {\r\n\t\t\tdouble BaseSpeed = CharStats.GetStatamount ( \"Weapon speed\" );\r\n\t\t\tdouble NewWhiteSpeed = WhiteSpeed ( BaseSpeed, Combatstats.GetStatamount ( \"Haste%\" ) );\r\n\t\t\tCombatstats.SetStat ( \"White speed\", NewWhiteSpeed );\r\n\t\t}\r\n\t\t\r\n\t\tCombatstats.SetStat ( \"Spelldmg\", CharStats.GetStatamount ( \"Spelldmg\" ) );\r\n\t\t\r\n\t\t//intellect -> crit\r\n\t\t//spirit\r\n\t\t//armor\r\n\t\t//spell crit\r\n\t\t//mp5\r\n\r\n\t\t//System.out.println(new Date()+\" 2- \" + new Throwable().fillInStackTrace().getStackTrace()[0]+\") <- \" + new Throwable().fillInStackTrace().getStackTrace()[1]+\")\");\r\n\t\treturn Combatstats;\r\n\r\n\t}", "@Override\n\tpublic float getFrameRate() {\n\t\treturn fps;\n\t}", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public RTPSessionMgr() {\r\n String user = System.getProperty(USERNAME_PROPERTY);\r\n String host = \"localhost\";\r\n try {\r\n host = InetAddress.getLocalHost().getHostName();\r\n } catch (UnknownHostException e) {\r\n // Do Nothing\r\n }\r\n this.localParticipant = new RTPLocalParticipant(user\r\n + USER_HOST_SEPARATOR + host);\r\n addFormat(PCMU_8K_MONO, PCMU_8K_MONO_RTP);\r\n addFormat(GSM_8K_MONO, GSM_8K_MONO_RTP);\r\n addFormat(G723_8K_MONO, G723_8K_MONO_RTP);\r\n addFormat(DVI_8K_MONO, DVI_8K_MONO_RTP);\r\n addFormat(MPA, MPA_RTP);\r\n addFormat(DVI_11K_MONO, DVI_11K_MONO_RTP);\r\n addFormat(DVI_22K_MONO, DVI_22K_MONO_RTP);\r\n addFormat(new VideoFormat(VideoFormat.JPEG_RTP), JPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H261_RTP), H261_RTP);\r\n addFormat(new VideoFormat(VideoFormat.MPEG_RTP), MPEG_RTP);\r\n addFormat(new VideoFormat(VideoFormat.H263_RTP), H263_RTP);\r\n }", "protected double NetworkServiceTime()\r\n\t{\r\n\t\treturn 25.0;\r\n\t}", "void statsReset();", "public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setVideoFrameRate((-590));\n int int0 = homeEnvironment0.getVideoFrameRate();\n assertEquals((-590), int0);\n }", "private WifiBatteryStats getStats() {\n return mBatteryStats.getWifiBatteryStats();\n }", "public interface SendStream \nextends RTPStream \n{\n /**\n * Changes the source description (SDES) reports being sent in RTCP\n * packets for this sending stream. </P>\n *\n * @param sourceDesc The new source description data. <P>\n */\n public void \n setSourceDescription( SourceDescription[] sourceDesc);\n /**\n * Removes the stream from the session. When this method is called\n * the RTPSM deallocates all resources associated with this stream\n * and releases references to this object as well as the Player\n * which had been providing the send stream. <P>\n */\n public void\n close();\n /**\n * Will temporarily stop the RTPSendStream i.e. the local\n * participant will stop sending out data on the network at this time.\n * @exception IOException Thrown if there was any IO problems when\n * stopping the RTPSendStream. A stop to the sendstream will also\n * cause a stop() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n stop() throws IOException;\n /**\n * Will resume data transmission over the network on this\n RTPSendStream.\n * @exception IOException Thrown if there was any IO problems when\n * starting the RTPSendStream. A start to the sendstream will also\n * cause a start() to be called on the stream's datasource. This\n * could also throw an IOException, consistent with datasources in\n * JMF. \n */\n public void\n start() throws IOException;\n \n /*\n * Set the bit rate of the outgoing network data for this\n * sendstream. The send stream will send data out at the rate it is\n * received from the datasource of this stream as a default\n * value. This rate can be changed by setting the bit rate on the\n * sendstream in which case the SessionManager will perform some\n * amount of buffering to maintain the desired outgoing bitrate\n * @param the bit rate at which data should be sent over the\n network\n * @returns the actual bit rate set.\n */\n public int\n setBitRate(int bitRate);\n\n /**\n * Retrieve statistics on data and control packets transmitted on\n * this RTPSendStream. All the transmission statistics pertain to\n * this particular RTPSendStream only. Global statistics on all data\n * sent out from this participant (host) can be retrieved using\n * getGlobalTransmission() method from the SessionManager.\n */\n public TransmissionStats\n getSourceTransmissionStats();\n}", "public TxRealtimeClock(Platform platform) {\r\n super(platform);\r\n }", "@Override\n public long getTotalHarvestingTime()\n {\n return 0;\n }", "private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }", "protected int[] getNewStats(){\n if (owner instanceof Hero){\n Hero h = (Hero) owner;\n int att = levelStat(h.getLevel(),h,h.getLvl1Att(),h.getLvl1HP());\n int hp = levelStat(h.getLevel(),h,h.getLvl1HP(),h.getLvl1Att());\n \n if (h.getPromoteLevel() >= 1){\n hp += h.getPromote1HP();\n }\n if (h.getPromoteLevel() >= 2){\n att += h.getPromote2Att();\n }\n if (h.getPromoteLevel() >= 4){\n hp += h.getPromote4Stats();\n att += h.getPromote4Stats();\n }\n \n \n return new int[]{att,hp};\n }\n else{\n return new int[]{owner.getLvl1Att(),owner.getLvl1HP()};\n }\n }", "net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats getStats(int index);", "private NodeList getStats() {\n\t\treturn mDom.getElementsByTagName(\"stats\");\n\t}", "@Override\r\n\tpublic void update( ReceiverSource r ) {\n\t\tSystem.out.println( \"I am number \" + num + \"! It is \" + ((GameTimer) r).getSeconds() + \"!\" );\r\n\t}", "public BaseStatistics() {\n\t\tsuper();\n\t}", "private void writeSecondLevelMonitors() {}", "public void addStats(Stats that) {\n totalRequests += that.totalRequests;\n remoteRequests += that.remoteRequests;\n totalCancels += that.totalCancels;\n totalFails += that.totalFails;\n remoteData += that.remoteData;\n localData += that.localData;\n totalLatency += that.totalLatency;\n }", "public static void getCpuUsage(){\r\n CPUmeasurement currentCpuUsage = new CPUmeasurement();\r\n cpuUsageList.add(currentCpuUsage);\r\n //CPUmeasurement.printCpuUsage(currentCpuUsage);\r\n }", "public int getSessionAverageAliveTime();", "@Override\n\tpublic void receiveSessionInfo(Camera camera, int resultCode) {\n\t\t\n\t}", "Map<String, Object> getStats();", "int getHPPerSecond();", "public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}", "public int getVideoMulticastTtl();", "void printStats();", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "@Override\r\n\tpublic float getChannelTime() {\n\t\treturn 4;\r\n\t}", "int getMPPerSecond();", "static void groveChannels() {\n\n\t\tswitch (myParent) {\n\t\tcase 1:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\tcase 2:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER2_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE2_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE2_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE2_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE2_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE2_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE2_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE2_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE2_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE2_YMAX;\n\n\t\t\tbreak;\n\t\tcase 3:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER3_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE3_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE3_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE3_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE3_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE3_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE3_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE3_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE3_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE3_YMAX;\n\n\t\t\tbreak;\n\t\tdefault:\n\n\t\t\tCHANNEL_GARDENER_COUNT = Channels.GARDENER1_COUNT;\n\t\t\tCHANNEL_GROVE_COUNT = Channels.GROVE1_COUNT;\n\n\t\t\tCHANNEL_GROVE_LOCATIONS = Channels.GROVE1_LOCATIONS;\n\t\t\tCHANNEL_GROVE_ASSIGNED = Channels.GROVE1_ASSIGNED;\n\t\t\tCHANNEL_GROVE_X = Channels.GROVE1_X;\n\t\t\tCHANNEL_GROVE_Y = Channels.GROVE1_Y;\n\n\t\t\tCHANNEL_GROVE_XMIN = Channels.GROVE1_XMIN;\n\t\t\tCHANNEL_GROVE_XMAX = Channels.GROVE1_XMAX;\n\t\t\tCHANNEL_GROVE_YMIN = Channels.GROVE1_YMIN;\n\t\t\tCHANNEL_GROVE_YMAX = Channels.GROVE1_YMAX;\n\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatLUC();\n\t\t\t}\n\t\t}", "public interface PeerInfoService extends PeerInfoCallback {\r\n}", "public long getCurrentPlayTime() {\n/* 284 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public final void zza(com.google.android.gms.internal.cast.zzcn r9) {\n /*\n r8 = this;\n com.google.android.gms.cast.RemoteMediaPlayer r9 = r8.zzfd\n java.lang.Object r9 = \n // error: 0x0002: INVOKE (r9 I:java.lang.Object) = (r9 I:com.google.android.gms.cast.RemoteMediaPlayer) com.google.android.gms.cast.RemoteMediaPlayer.zze(com.google.android.gms.cast.RemoteMediaPlayer):java.lang.Object type: STATIC\n monitor-enter(r9)\n com.google.android.gms.cast.RemoteMediaPlayer r0 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r0 = r0.zzey // Catch:{ all -> 0x0055 }\n com.google.android.gms.common.api.GoogleApiClient r1 = r8.zzfe // Catch:{ all -> 0x0055 }\n r0.zza(r1) // Catch:{ all -> 0x0055 }\n r0 = 0\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdh r2 = r1.zzex // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.internal.cast.zzdm r3 = r8.zzgd // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n long r4 = r8.val$position // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n int r6 = r8.zzfw // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n org.json.JSONObject r7 = r8.zzfk // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n r2.zza(r3, r4, r6, r7) // Catch:{ zzdk | IllegalStateException -> 0x0030 }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n goto L_0x0049\n L_0x002e:\n r1 = move-exception\n goto L_0x004b\n L_0x0030:\n com.google.android.gms.common.api.Status r1 = new com.google.android.gms.common.api.Status // Catch:{ all -> 0x002e }\n r2 = 2100(0x834, float:2.943E-42)\n r1.<init>(r2) // Catch:{ all -> 0x002e }\n com.google.android.gms.common.api.Result r1 = r8.createFailedResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer$MediaChannelResult r1 = (com.google.android.gms.cast.RemoteMediaPlayer.MediaChannelResult) r1 // Catch:{ all -> 0x002e }\n r8.setResult(r1) // Catch:{ all -> 0x002e }\n com.google.android.gms.cast.RemoteMediaPlayer r1 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r1 = r1.zzey // Catch:{ all -> 0x0055 }\n r1.zza(r0) // Catch:{ all -> 0x0055 }\n L_0x0049:\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n return\n L_0x004b:\n com.google.android.gms.cast.RemoteMediaPlayer r2 = r8.zzfd // Catch:{ all -> 0x0055 }\n com.google.android.gms.cast.RemoteMediaPlayer$zza r2 = r2.zzey // Catch:{ all -> 0x0055 }\n r2.zza(r0) // Catch:{ all -> 0x0055 }\n throw r1 // Catch:{ all -> 0x0055 }\n L_0x0055:\n r0 = move-exception\n monitor-exit(r9) // Catch:{ all -> 0x0055 }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.cast.zzbj.zza(com.google.android.gms.internal.cast.zzcn):void\");\n }", "public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return stats_;\n }", "public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }", "public java.util.List<net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> getStatsList() {\n return java.util.Collections.unmodifiableList(\n instance.getStatsList());\n }", "public interface TimeTracker {\n\n /**\n * Tell tracker to start timer\n */\n void startTracking();\n\n /**\n * Get time elapsed since tracker was started (#startTracking)\n * @return elapsed time\n */\n long getElapsedTime();\n\n /**\n * Get type\n * @return tracker type\n */\n Type type();\n\n\n /**\n * Type of time trackers available\n */\n public enum Type {\n /**\n * Millisecond time tracking (System.currentTimeMillis)\n */\n MILLIS (\"ms\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.currentTimeMillis();\n }\n @Override\n public long getElapsedTime() {\n return System.currentTimeMillis() - start;\n }\n @Override\n public Type type() {\n return MILLIS;\n }\n };\n }\n },\n /**\n * Nanosecond time tracking (System.nanoTime)\n */\n NANOS (\"ns\") {\n @Override\n TimeTracker get() {\n return new TimeTracker() {\n private long start;\n @Override\n public void startTracking() {\n start = System.nanoTime();\n }\n @Override\n public long getElapsedTime() {\n return System.nanoTime() - start;\n }\n @Override\n public Type type() {\n return NANOS;\n }\n };\n }\n };\n\n private String units;\n Type(String units) {\n this.units = units;\n }\n\n /**\n * Provide time units based on tracker ('ms', 'ns')\n * @return time units string\n */\n public String getUnits() {\n return units;\n }\n\n abstract TimeTracker get();\n }\n}", "@Override\n public void visitStats(CharacterStats stats) {\n Element statElm = doc.createElement(\"Stats\");\n\n Attr agilityStats = doc.createAttribute(\"agility\");\n agilityStats.setValue(Integer.toString(stats.getAgility()));\n statElm.setAttributeNode(agilityStats);\n\n Attr experience = doc.createAttribute(\"experience\");\n experience.setValue(Integer.toString(stats.getExperience()));\n statElm.setAttributeNode(experience);\n\n Attr hardiness = doc.createAttribute(\"hardiness\");\n hardiness.setValue(Integer.toString(stats.getHardiness()));\n statElm.setAttributeNode(hardiness);\n\n Attr intellect = doc.createAttribute(\"intellect\");\n intellect.setValue(Integer.toString(stats.getIntellect()));\n statElm.setAttributeNode(intellect);\n\n Attr lives = doc.createAttribute(\"lives\");\n lives.setValue(Integer.toString(stats.getLives()));\n statElm.setAttributeNode(lives);\n\n Attr strength = doc.createAttribute(\"strength\");\n strength.setValue(Integer.toString(stats.getStrength()));\n statElm.setAttributeNode(strength);\n\n Attr health = doc.createAttribute(\"health\");\n health.setValue(Integer.toString(stats.getHealth()));\n statElm.setAttributeNode(health);\n\n Attr mana = doc.createAttribute(\"mana\");\n mana.setValue(Integer.toString(stats.getMana()));\n statElm.setAttributeNode(mana);\n\n //Base stuff\n Attr baseAgilityStats = doc.createAttribute(\"base-agility\");\n baseAgilityStats.setValue(Integer.toString(stats.getBaseAgility()));\n statElm.setAttributeNode(baseAgilityStats);\n\n Attr baseHardiness = doc.createAttribute(\"base-hardiness\");\n baseHardiness.setValue(Integer.toString(stats.getBaseHardiness()));\n statElm.setAttributeNode(baseHardiness);\n\n Attr baseIntellect = doc.createAttribute(\"base-intellect\");\n baseIntellect.setValue(Integer.toString(stats.getBaseIntellect()));\n statElm.setAttributeNode(baseIntellect);\n\n Attr baseLive = doc.createAttribute(\"base-lives\");\n baseLive.setValue(Integer.toString(stats.getBaseLives()));\n statElm.setAttributeNode(baseLive);\n\n Attr baseStrength = doc.createAttribute(\"base-strength\");\n baseStrength.setValue(Integer.toString(stats.getBaseStrength()));\n statElm.setAttributeNode(baseStrength);\n\n Attr baseHealth = doc.createAttribute(\"base-health\");\n baseHealth.setValue(Integer.toString(stats.getBaseHealth()));\n statElm.setAttributeNode(baseHealth);\n\n Attr baseMana = doc.createAttribute(\"base-mana\");\n baseMana.setValue(Integer.toString(stats.getBaseMana()));\n statElm.setAttributeNode(baseMana);\n\n characterList.add(statElm);\n\n\n }", "@Override\n\t\tpublic void calc(Env env)\n\t\t{\n\t\t\tL2PcInstance pc = (L2PcInstance) env.player;\n\t\t\tif (pc != null)\n\t\t\t{\n\t\t\t\tenv.value += pc.getHennaStatCON();\n\t\t\t}\n\t\t}", "private int getFramePerSecond(Rectangle rect){\n final long recordTime=1000;\n int countFrame=0;\n try {\n Robot bot=new Robot();\n final long startTime=System.currentTimeMillis();\n while((System.currentTimeMillis()-startTime)<=recordTime){\n bot.createScreenCapture(rect);\n countFrame++;\n }\n System.out.println(\"FramePerSecond is : \"+countFrame);\n return countFrame;\n } catch (AWTException e) {\n e.printStackTrace();\n }\n return 0;\n }", "@java.lang.Override\n public long getTurnStartMs() {\n return turnStartMs_;\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "public TomcatWebConnectorStatsImpl() {\n requestTime = new TimeStatisticImpl(\"Request Time\", StatisticImpl.UNIT_TIME_MILLISECOND,\n \"The time to process all requests\");\n activeRequestCount = new CountStatisticImpl(\"Active Request Count\", StatisticImpl.UNIT_COUNT,\n \"currently active requests \", 0);\n errorCount = new CountStatisticImpl(\"Error Count\", StatisticImpl.UNIT_COUNT,\n \"The numbet of Errors during the observed period\", 0);\n bytesSentCount = new CountStatisticImpl(\"Bytes Sent\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes sent during the observerd period\", 0);\n bytesReceivedCount = new CountStatisticImpl(\"Bytes Received\", StatisticImpl.UNIT_COUNT,\n \"The number of bytes received during the observerd period\", 0);\n openConnectionCount = new RangeStatisticImpl(\"\" + \"Open Connections\", StatisticImpl.UNIT_COUNT,\n \"Range for connections opened during the observed period\", 0); // all 0's\n busyThreads = new BoundedRangeStatisticImpl(\"Busy Threads\", StatisticImpl.UNIT_COUNT,\n \"BoundedRange for Threads currently busy serving requests\", 0, 0, 0);\n addStat(\"RequestTime\", requestTime); // better name\n addStat(\"activeRequestCount\", activeRequestCount);\n addStat(\"errorCount\", errorCount);\n addStat(\"bytesSent\", bytesSentCount);\n addStat(\"bytesReceived\", bytesReceivedCount);\n addStat(\"openConnectionCount\", openConnectionCount);\n addStat(\"busyThreads\", busyThreads);\n }", "void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }" ]
[ "0.64314693", "0.5621094", "0.5601682", "0.5497008", "0.5416844", "0.53986883", "0.5327944", "0.5238417", "0.5234998", "0.5196042", "0.5176248", "0.5174788", "0.51559246", "0.5139028", "0.50689054", "0.5058583", "0.5049765", "0.50372386", "0.5013912", "0.50128084", "0.50120467", "0.49966848", "0.49895173", "0.4988448", "0.49801514", "0.49700975", "0.49666578", "0.4962455", "0.49546304", "0.49495247", "0.49248734", "0.49115613", "0.48931566", "0.48835328", "0.4877634", "0.48760837", "0.48590875", "0.48582768", "0.48558003", "0.48553395", "0.48539677", "0.48529506", "0.48303172", "0.48272493", "0.48209086", "0.4820722", "0.4814279", "0.48141128", "0.481126", "0.4798126", "0.47911915", "0.47800225", "0.4773346", "0.47723418", "0.47723418", "0.47723418", "0.4768564", "0.4766299", "0.47638944", "0.4762765", "0.47588736", "0.47481287", "0.4745736", "0.47444788", "0.47419095", "0.47418952", "0.47393587", "0.4733442", "0.47298774", "0.47277242", "0.47237045", "0.4722323", "0.470887", "0.4707558", "0.47065446", "0.4704878", "0.46987846", "0.4693707", "0.46870577", "0.4678675", "0.4671729", "0.46709016", "0.4667299", "0.46657598", "0.46654907", "0.46628463", "0.46617115", "0.46593797", "0.46554932", "0.46534404", "0.46508002", "0.46475622", "0.4645017", "0.4642912", "0.4638343", "0.463408", "0.46295625", "0.46278134", "0.46274522", "0.4626401", "0.46256596" ]
0.0
-1
Constructor for DatabaseRepository. Temporary.
private DatabaseRepository() { try { // connect to database DB_URL = "jdbc:sqlite:" + this.getClass().getProtectionDomain() .getCodeSource() .getLocation() .toURI() .getPath().replaceAll("[/\\\\]\\w*\\.jar", "/") + "lib/GM-SIS.db"; connection = DriverManager.getConnection(DB_URL); mapper = ObjectRelationalMapper.getInstance(); mapper.initialize(this); } catch (SQLException | URISyntaxException e) { System.out.println(e.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "private Db() {\n super(Ke.getDatabase(), null);\n }", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "public ProduktRepositoryImpl() {\n this.conn = DatabaseConnectionManager.getDatabaseConnection();\n }", "public DB() {\r\n\t\r\n\t}", "public sqlDatabase() {\n }", "private DatabaseOperations() {\n }", "public DbUtil() {}", "public DatabaseOperations(){\n\n }", "public DatabaseTable() { }", "private DbConnection() {\n }", "private DatabaseManager() {\n // Default constructor\n }", "public Repository() {\n\n }", "protected abstract ODatabaseInternal<?> newDatabase();", "private DatabaseManager() {}", "public Database() {\n size = 0;\n tables = new HashMap();\n p = new Parse(this);\n }", "public Database(Context context) { \n\t\tsuper( context, database_MEF, null, 2); \n\t}", "public Database() {\n\t\tconn = null;\n\t}", "public DBConnection()\n {\n\n }", "public DatabaseParameter() {\n super(\"database\", \"Database\");\n }", "private DbQuery() {}", "public Database(Context context) {\n super(context, DB_NAME, null, DB_VER);\n }", "private DatabaseManager() {\r\n }", "private DatabaseContract() {}", "public ProductoRepository() {}", "public DBManager() {\n\t\t\n\t}", "public DBConnection() {\n this(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST, DB_PORT);\n }", "private DBConnection() \n {\n initConnection();\n }", "public HawtDBAggregationRepository() {\n }", "public Database() {\n if (init) {\n\n //creating Transaction data\n Transaction transactionOne\n = new Transaction(1, \"Debit\", \"Spar Grocery\", 54.68,1);\n\n transactionDB.add(transactionOne);\n\n // Creating an Account data\n Account accountOne = new Account(1, 445, 111111111, \"Savings\",\n 1250.24, transactionDB);\n\n accountDB.add(accountOne);\n\n //creating withdrawal data\n Withdrawal withdrawalOne = new Withdrawal(1, 64422545, 600.89);\n withdrawalDB.add(withdrawalOne);\n\n //creating transfer data\n Transfer transferOne = new Transfer(1, 25252525, 521.23);\n transferDB.add(transferOne);\n\n //creating lodgement data\n Lodgement lodgementOne = new Lodgement(1, 67766666, 521.23);\n lodgementDB.add(lodgementOne);\n\n //add Customer data \n Customer customerOne\n = new Customer(1, \"Darth Vader\", \"[email protected]\",\n \"Level 5, Suit Dark\", \"darkSideIsGoodStuff\",\n accountDB, withdrawalDB, transferDB, lodgementDB);\n\n customerDB.add(customerOne);\n\n init = false;\n }\n }", "public Database(Context context) {\n super(context, nome_db, null, versao_db);\n }", "public DBPoolImpl()\n {\n }", "public Database (String pw) {\n password = pw;\n dbConnection = null;\n if (DBExists()) dbConnect(true); else dbCreate();\n }", "public DbUtils() {\r\n // do nothing\r\n }", "private DBParameter() {\n }", "public DAO(String dbType){\n this.dbType = dbType;\n if(this.dbType.equals(\"MySQL\")){\n initialPool();\n\n // for q5 mysql use\n if(wholeUserIds == null){\n wholeUserIds = new TreeSet<Long>();\n }\n }\n else if(this.dbType.equals(\"Memory\")){\n // for q5 memory use\n if(wholeCountData == null){\n wholeCountData = new TreeMap<String, Integer>();\n }\n }\n\n }", "public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }", "public DataRepository() throws IOException {\n\t\tthis.init();\n\t}", "public DaoConnection() {\n\t\t\n\t}", "public StateDAOImpl() {\n super();\n }", "public DatabaseBackend(Context context) {\n super(context, Db_name, null, Db_version);\n }", "protected DBMaintainer() {\n }", "public Database() {\n //Assign instance variables.\n this.movies = new ArrayList<>();\n this.users = new ArrayList<>();\n }", "public ZyCorporationDAOImpl() {\r\n super();\r\n }", "public Database(String dbName) {\n this.dbName = dbName;\n }", "public OnibusDAO() {}", "protected DaoRWImpl() {\r\n super();\r\n }", "public ValuesDAO(Database db) \n\t{\n\t\tthis.db = db;\n\t}", "public JRepositoryDao() {\n super(JRepository.REPOSITORY, JRepositoryPojo.class);\n }", "public Database() {\r\n\t\ttry {\t\r\n\t\t\tSystem.out.println(\"Database: Connected\");\r\n\t\t\tconn = DriverManager.getConnection(DB_URL,USER,PASS);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Unable to connect to database\");\r\n\t\t}\r\n\t}", "public Database() throws SQLException {\n conn = DriverManager.getConnection(dbURL, username, password);\n }", "private Database() throws SQLException, ClassNotFoundException {\r\n Class.forName(\"org.postgresql.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/postgres\", \"postgres\", \"kuka\");\r\n }", "private DatabaseContract()\n {\n }", "public Persistence() {\n\t\tconn = dbConnection();\n\t}", "public ResourceDAOImpl(Connection managedConnection) {\n super(managedConnection);\n }", "public SRWDatabasePool() {\n }", "public RepositoryImpl(ConnectionSource connectionSource, Class<T> dataClass) throws SQLException {\n\n try {\n\n // Create table from the T class\n TableUtils.createTableIfNotExists(connectionSource,dataClass);\n this.dao = DaoManager.createDao(connectionSource,dataClass);\n\n\n } catch (SQLException e){\n throw new RuntimeException(e);\n }\n\n }", "OQLQueryImpl(final Database database) {\r\n _database = database;\r\n }", "public DBCreator(DBConnection connection) {\n this.dbConnection = connection;\n }", "public ArtistDb(Connection connection) {\r\n super(connection);\r\n }", "public SetupDatabase() {\n }", "private DBContract() {}", "private DBContract() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public SourceDataFileJpa() {\n // n/a\n }", "public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }", "private TexeraDb() {\n super(\"texera_db\", null);\n }", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "public Driver() throws SQLException {\n // Required for Class.forName().newInstance()\n }", "public ServiceCacheDB()\n\t{\n\t\tthis(0);\n\t}", "private ObjectRepository() {\n\t}", "@SuppressWarnings(\"LawOfDemeter\")\n public AccessoryBO() throws PersistenceException {\n this.dao = DAOFactory.getDAOFactory().getAccessoryDAO();\n }", "private ReportRepository() {\n ConnectionBD BD = ConnectionBD.GetInstance();\n this.con = BD.GetConnection();\n this.itemInfoFactory = ItemInfoFactory.GetInstance();\n }", "public RadixObjectDb() {\r\n super('r', TextUtils.EMPTY_STRING);\r\n }", "public CiviliteDao() {\r\n\t\tsuper();\r\n\t}", "public ReleaseplanDAOImpl() {\r\n\t\tsuper();\r\n\t}", "public ProjectFilesDAOImpl() {\r\n super();\r\n }", "public DbUser() {\r\n\t}", "public AfleveringRepository(SqlConnection sqlConnection) {\n this.sqlConnection = sqlConnection;\n }", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "@Override\n public Database getInitialized() {\n return Databases.createPostgresDatabaseWithRetry(\n username,\n password,\n connectionString,\n isDatabaseReady);\n }", "public ProductDbRepository(String dbUrl, String userName, String password) {\n\t\tthis.dbUrl = dbUrl;\n\t\tthis.userName = userName;\n\t\tthis.password = password;\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public static DatabaseConnection create(String... args) {\n\t\treturn new DatabaseConnection(args);\n\t}", "public SQLDataBase(Context context){ // is this supposed to be public?\n super(context, DATABASE_NAME, null, 1);\n }", "public VRpHrStpDAOImpl() {\r\n super();\r\n }", "public TransactionLogDAOImpl() {\n\t\tsuper();\n\t}", "public FakeDatabase() {\n\t\t\n\t\t// Add initial data\n\t\t\n//\t\tSystem.out.println(authorList.size() + \" authors\");\n//\t\tSystem.out.println(bookList.size() + \" books\");\n\t}", "private AttendantDatabase() {}", "public UserDAO(Connection connection) {\n super(connection);\n }", "private Database() throws SQLException {\n con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:MusicAlbums\", \"c##dba\", \"sql\");\n }", "public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public Database(final Database toCopy) {\n this.source = toCopy.source;\n this.catalog = toCopy.catalog;\n this.schema = toCopy.schema;\n this.timezone = toCopy.timezone;\n this.hints = toCopy.hints;\n this.properties = toCopy.properties;\n }", "public RuleSystemDBImpl(IDatabase database) {\n\t\t\tthis.database = database;\n\t\t}", "public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public CreditChainDao() {\n super(CreditChain.CREDIT_CHAIN, com.generator.tables.pojos.CreditChain.class);\n }", "protected XMLRepositoryImpl() {\n }", "public DatabaseController()\n\t{\n\t\tconnectionString = \"jdbc:mysql://localhost/?user=root\";\n\t\tcheckDriver();\n\t\tsetupConnection();\n\t}", "public KVDatabase() {\n //private constructor to prevent instantiation.\n }" ]
[ "0.7703887", "0.7384754", "0.727068", "0.711624", "0.7094757", "0.698386", "0.6973863", "0.69644946", "0.6899998", "0.68840027", "0.68362284", "0.67909616", "0.6770551", "0.67701435", "0.6744652", "0.67221844", "0.6699313", "0.66752154", "0.6671929", "0.66529715", "0.66344833", "0.6630718", "0.6595039", "0.65532863", "0.65113574", "0.6496558", "0.6475958", "0.6471018", "0.64608324", "0.6460355", "0.6438688", "0.642726", "0.64068866", "0.6395758", "0.6386655", "0.6367545", "0.6361559", "0.6360905", "0.6354342", "0.63530225", "0.63450503", "0.63440573", "0.63439375", "0.63433355", "0.6333442", "0.63257766", "0.6325441", "0.62812597", "0.62810445", "0.6278079", "0.6275419", "0.6273399", "0.62716913", "0.62676173", "0.62660307", "0.6249863", "0.6243105", "0.6234432", "0.6231977", "0.6211664", "0.62073195", "0.62039125", "0.62039125", "0.6198068", "0.61965746", "0.61919963", "0.6189614", "0.61842424", "0.6182564", "0.61645114", "0.6138454", "0.6130671", "0.61259073", "0.6111371", "0.610457", "0.61038655", "0.60954756", "0.608997", "0.6074217", "0.607387", "0.6054846", "0.60501057", "0.6049077", "0.6048519", "0.6047421", "0.6044436", "0.6039433", "0.6039165", "0.6037619", "0.6033904", "0.6026665", "0.60255426", "0.60219544", "0.60192937", "0.6004026", "0.59936446", "0.59858584", "0.59827447", "0.59797895", "0.5967792" ]
0.7316046
2
Gets singleton instance of DatabaseRepository.
public static DatabaseRepository getInstance() { if (instance == null) instance = new DatabaseRepository(); return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized Database get() {\n return instance;\n }", "public static Database getInstance() {\n if (database == null) database = new Database();\n return database;\n }", "protected static Database getInstance() {\n if (instance == null) {\n instance = new Database();\n }\n return instance;\n }", "public static RepositoryService getInstance() {\n return instance;\n }", "static Repo getInstance() {\n return RepoSingelton.getRepo(); //todo: refactor\n }", "public static RecordingRepository getInstance() {\r\n if (_instance == null) {\r\n _instance = new RecordingRepository();\r\n }\r\n return _instance;\r\n }", "public static APIRepository getRepositoryInstance() {\n if (mApiRepository == null) {\n mApiRepository = new APIRepository();\n }\n if (mApiInterface == null) {\n mApiInterface = RetrofitClientInstance.getRetrofitInstance(AppRoot.getInstance()).create(APIInterface.class);\n }\n return mApiRepository;\n }", "public static Database getInstance() {\r\n\t\t\r\n\t\tif(database_instance == null) {\r\n\t\t\tdatabase_instance = new Database();\t\t\t\r\n\t\t}\r\n\t\treturn database_instance;\t\t\r\n\t}", "public static DbConnection getInstance() {\n if (!DbConnectionHolder.INSTANCE.isInitialized.get()) {\n synchronized (lock) {\n DbConnectionHolder.INSTANCE.initialize();\n }\n }\n return DbConnectionHolder.INSTANCE;\n }", "public static QuestionRepository getInstance() {\n if (sCrimeRepository == null)\n sCrimeRepository = new QuestionRepository();\n\n return sCrimeRepository;\n }", "public static DbManager getInstance() {\n \t\treturn INSTANCE;\n \t}", "public static DBManager getInstance() {\n DBManager current = db;\n // fast check to see if already created\n if (current == null) {\n // sync so not more then one creates it\n synchronized (DBManager.class) {\n current = db;\n // check if between first check and sync if someone has created it\n if (current == null) {\n //create it\n db = current = new DBManager();\n }\n }\n }\n return current;\n }", "public static Database getInstance() {\n\t\treturn OfflineDatabase.getInstance();\n\t}", "public static synchronized DatabaseManager getInstance() {\n\n if (instance == null) {\n System.err.println(\"DatabaseManager is not initialized. \" +\n \"Call DatabaseManager.initializeInstance(...) first.\");\n }\n\n return instance;\n }", "public GraphDatabaseService GetDatabaseInstance() {\r\n\t\treturn _db;\r\n\t}", "public static DBManager getInstance() {\n if (instance == null) {\n try {\n instance = new DBManager();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n return instance;\n }", "public static synchronized DatabaseService getInstance() {\n\t\tif (service == null) {\n\t\t\tservice = new DatabaseService();\n\t\t}\n\t\treturn service;\n\t}", "public static MyDatabase getDatabase() {\n if (instance == null) {\n synchronized (MyDatabase.class) {\n if (instance == null) {\n instance = Room.databaseBuilder(Constants.context.getApplicationContext(),\n MyDatabase.class, Constants.DATABASE_NAME)\n .build();\n }\n }\n }\n return instance;\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "public static Database getInstance() throws SQLException, ClassNotFoundException {\r\n if (Database.instance == null) {\r\n instance = new Database();\r\n }\r\n return instance;\r\n }", "public static AbstractDatabaseController getInstance(){\r\n\t\treturn AbstractDatabaseController.instance;\r\n\t}", "public static ThreadSafeLazyDBConnection getInstance() {\n\t\tif (instance == null) {\n\t\t\tsynchronized (ThreadSafeLazyDBConnection.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new ThreadSafeLazyDBConnection();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public static GameVariableRepository getInstance() {\r\n\t\treturn instance;\r\n\t}", "public static synchronized DatabaseContext getInstance() {\r\n if (instance == null) {\r\n instance = new DatabaseContext();\r\n }\r\n return instance;\r\n }", "public static LevelDBAuthenticationManager getDB() {\n if (singletonDB == null) {\n synchronized (LevelDBAuthenticationManager.class) {\n if (singletonDB == null) {\n singletonDB = new LevelDBAuthenticationManager();\n }\n }\n }\n return singletonDB;\n }", "public static ObjectRepository getRepository() {\n\t\tif (_instance == null) {\n\t\t\tsynchronized (ObjectRepository.class) {\n\t\t\t\tif (_instance == null) {\n\t\t\t\t\t_instance = new ObjectRepository();\n\t\t\t\t\tif (config == null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconfig = new PropertiesConfiguration(\n\t\t\t\t\t\t\t\t\t\"object.properties\");\n\t\t\t\t\t\t} catch (final ConfigurationException e) {\n\t\t\t\t\t\t\tSystem.err\n\t\t\t\t\t\t\t\t\t.println(\"Configuration Exception - Not able to locate object.properties\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn _instance;\n\t}", "public static DataBaseCreator getInstance() {\r\n if (instance == null) {\r\n synchronized (lock) {\r\n if (instance == null) {\r\n instance = new DataBaseCreator();\r\n }\r\n }\r\n }\r\n\r\n return instance;\r\n }", "@Override\n public CheckDBDAO getInitDBDAO() {\n if (instanceCheckDBDAO == null) {\n return new MySQLCheckDBDAO(connection);\n } else {\n return instanceCheckDBDAO;\n }\n }", "public static DatabaseConnection getDb() {\n return db;\n }", "public ODatabaseInternal<?> db() {\n return ODatabaseRecordThreadLocal.INSTANCE.get().getDatabaseOwner();\n }", "public static DataStore getInstance() {\n if (ourInstance == null) {\n ourInstance = new DataStore();\n }\n return ourInstance;\n }", "Repository getRepository();", "public static DbController getInstance() {\n if (dbController == null) {\n dbController = new DbController();\n }\n return dbController;\n }", "public DatabaseManager getDatabase() {\n\t\treturn (db);\n\t}", "public static DBUtil getInstance() {\n\t\tif (instance == null) {\n//\t\t\tlogger.log(Level.INFO, \"creating instance\");\n\t\t\tinstance = new DBUtil();\n\t\t}\n\t\treturn instance;\n\t}", "public static DAOFactory getInstance() {\r\n return instance;\r\n }", "public Dao getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static DataStore getInstance() {\n if (instance == null) {\n synchronized (mutex) {\n if (instance == null)\n instance = new DataStore();\n }\n }\n return instance;\n }", "public static DBManager getInstance() {\n return DB_MANAGER;\n }", "public static DBController getInstance() {\n if (instance.getConnector() == null) {\n throw new NullPointerException(\"DB Connector hadn't been set.\");\n } else if (instance.getHandler() == null) {\n throw new NullPointerException(\"DB Handler hadn't been set.\");\n } else {\n return instance;\n }\n }", "public static synchronized DBPresenter getInstance() {\r\n if (instance == null || !instance.getDbPath().equals(PropertiesLoader.getInstance().getDbLocation())\r\n || !instance.getDbHost().equals(PropertiesLoader.getInstance().getDbHost())\r\n || !instance.getDbPort().equals(PropertiesLoader.getInstance().getDbPort())) {\r\n instance = new DBPresenter(PropertiesLoader.getInstance().getDbLocation(), PropertiesLoader.getInstance()\r\n .getDbHost(),\r\n PropertiesLoader.getInstance().getDbPort());\r\n DBReaderWriter.createDatabasePresenter();\r\n }\r\n return instance;\r\n }", "public static DBUtils getINSTANCE() {\n return INSTANCE;\n }", "public static DatabaseConnection getInstance() throws SQLException {\n if (instance == null) {//if we didn't create it earlier\n instance = new DatabaseConnection();//we create new one\n }\n return instance;//otherwise it returns old one\n }", "public static DBMaster GetAnInstanceOfDBMaster() {\n\t\tif (singletonDBMaster == null) {\r\n\t\t\tsingletonDBMaster = new DBMaster();\r\n\t\t}\r\n\t\t\r\n\t\treturn singletonDBMaster;\r\n\t}", "public synchronized static DatabaseStorage query(Context context)\n {\n if (instance == null)\n {\n instance = new DatabaseStorage(context);\n }\n\n return instance;\n }", "public static DataConnection getInstance() {\n if (INSTANCE == null) createInstance();\n return INSTANCE;\n }", "public SQLiteDatabase getDatabaseInstance() {\n return db;\n }", "public ProduktRepositoryImpl() {\n this.conn = DatabaseConnectionManager.getDatabaseConnection();\n }", "public static synchronized DataBaseManager getInstance() {\n if (mInstance == null) {\n throw new IllegalStateException(DataBaseManager.class.getSimpleName() +\n \" is not initialized, call initializeInstance(..) method first.\");\n }\n\n return mInstance;\n }", "Database getDataBase() {\n return database;\n }", "public static DataManager getInstance() {\n return instance == null ? (instance = new DataManager()) : instance;\n }", "@Override\n public BrandsDAO getBrandsDAO() {\n\n if (instanceBrandsDAO == null) {\n return new MySQLBrandsDAO(connection);\n } else {\n return instanceBrandsDAO;\n }\n }", "public static synchronized DAO getInstance(){\n\t if (instance == null)\n\t instance = new DAOImpl();\n\t return instance; \n\t }", "public static Connection getInstance() {\n return LazyHolder.INSTANCE;\n }", "public static FindAllDocumentDAO getInstance(){\n\t\tif(instance_ == null){\n\t\t\tinstance_ = new FindAllDocumentDAO();\n\t\t}\n\t\treturn instance_;\n\t}", "public static DbHandler getInstance()\n\t{\n\t\treturn instance;\n\t}", "public static UserAccountDAO getInstance(){\n if (instance == null){\n instance = new UserAccountDAO();\n }\n return instance;\n }", "public static synchronized PurchaseDB getInstance() {\n\t\tif (m_instance == null) {\n\t\t\tm_instance = new PurchaseDB();\n\t\t}\n\t\t\n\t\treturn m_instance;\n\t}", "public static Database getInstance(Context ctx) {\n if (mInstance == null) {\n mInstance = new Database(ctx.getApplicationContext());\n }\n return mInstance;\n }", "public static HibernateToListDAO getInstance()\r\n\t{\r\n\t\tif(_instanceDAO == null) {\r\n\t\t\t_instanceDAO = new HibernateToListDAO();\r\n\t }\r\n\t\treturn _instanceDAO;\r\n\t}", "public static DBCatalog getInstance(){\n return instance;\n }", "public static DatabaseManager getInstance(Context context) {\n if (databaseManager == null) {\n databaseManager = new DatabaseManager(context);\n }\n\n return databaseManager;\n }", "public Database<T> getDatabase();", "public static DatabaseHandler getInstance(){\n if(handler == null){\n handler = new DatabaseHandler();\n }\n return handler;\n }", "public Database getDatabase() {\n\t\tDatabase database = null;\n\t\t//TODO fail when more than one provider was found?\n\t\ttry {\n\t\t\tIterator<Database> databaseProviders = loader.iterator();\n\t\t\twhile (database == null && databaseProviders.hasNext()) {\n\t\t\t\tdatabase = databaseProviders.next();\n\t\t\t\tlog.debug(\"Found database service provider {\" + database.getClass() + \"}\");\n\t\t\t}\n\t\t} catch (ServiceConfigurationError serviceError) {\n\t\t\tserviceError.printStackTrace();\n\t\t}\n\t\tif (database == null) {\n\t\t\tthrow new RuntimeException(\"Could not find database provider.\");\n\t\t}\n\t\treturn database;\n\t}", "public DB getDB() {\n return database;\n }", "public static DbConnector getInstancia() {\r\n\t\tif (instancia == null) {\r\n\t\t\tinstancia = new DbConnector();\r\n\t\t}\r\n\t\treturn instancia;\r\n\t}", "public static Connection getInstance() {\n\n if (instance == null) {\n instance = new Connection();\n }\n return instance;\n }", "public static Connection getConnection() {\n return singleInstance.createConnection();\n }", "@Override\r\n\tpublic RemoteDomainRepository getDatabaseRepository (UserDatabase userDatabase) {\n\t\t\r\n\t\treturn null;\r\n\t}", "public static UtilityDatabaseController getInstance() \n {\n if(instance == null) {\n instance = new UtilityDatabaseController();\n }\n \n return instance;\n }", "public static synchronized Datastore getDataStore() {\n\n if (datastore == null) {\n synchronized (ConnectionHelper.class) {\n \t/*\n \t * Check again to guarantee an unique datastore instance is created, if any thread was preempted.\n \t */\n if (datastore == null) {\n \tdatastore = getMorphia().createDatastore(new MongoClient(), database);\n }\n }\n }\n\n return datastore;\n }", "public static Connection getDBInstance() {\r\n\t\tif (db == null)\r\n\t\t\ttry {\r\n\t\t\t\tloadDBDriver();\r\n\t\t\t\tdb = DriverManager.getConnection(url, user, password);\r\n\t\t\t} catch (SQLException 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\treturn db;\r\n\t}", "public abstract RepoDao getRepoDao();", "public static DatabaseManager getDatabaseManager() {\r\n return dbManager;\r\n }", "public Database getDatabase() {\n return dbHandle;\n }", "@Override\n\tpublic GenericRepository<Consulta, Long> getRepository() {\n\t\treturn this.consultaRepository;\n\t}", "public static DataManager getInstance()\n\t{\n\t\tDataManager pManager = null;\n\t\tObject pObject = UiStorage.getEntity(DataManager.class);\n\t\tif ( null == pObject )\n\t\t{\n\t\t\tpManager = new DataManager();\n\t\t\tUiStorage.setEntity(pManager);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpManager = (DataManager)pObject;\n\t\t}\n\t\t\n\t\treturn pManager;\n\t}", "public static AppDatabase getInstance(final Context context) {\n if (sInstance == null) {\n synchronized (AppDatabase.class) {\n if (sInstance == null) {\n sInstance = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, DATABASE_NAME).build();\n }\n }\n }\n return sInstance;\n }", "synchronized public static RecipeRepo getInstance(Context applicationContext){\n if(sInstance == null){\n sInstance = new RecipeRepo(applicationContext.getApplicationContext());\n }\n return sInstance;\n }", "public static AppRepo getInstance(Context context) {\n if (repoInstance == null) {\n repoInstance = new AppRepo(context);\n }\n return repoInstance;\n }", "public static CppTestRuleSetDAOImpl getInstance()\r\n {\r\n return instance;\r\n }", "public static MapSummonerCommentsRepository getInstance() {\n\n\t\tif (instance == null) {\n\t\t\tinstance = new MapSummonerCommentsRepository();\n\t\t\t// instance.init();\n\t\t}\n\n\t\treturn instance;\n\t}", "public static DbHelper getInstance(){\n\t\treturn _DbHelperHold.INSTANCE;\n\t}", "public static synchronized EquipmentInformationDao getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new EquipmentInformationDao();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context){\n if(instance == null){\n instance=new DatabaseAccess(context);\n }\n return instance;\n }", "public DatabaseClient getDb() {\n return db;\n }", "public Repository getRepository() {\n return mRepository;\n }", "static AppDatabase getDatabase(final Context context) {\n if (INSTANCE == null) { //only a single thread can run this block at once\n //we only want this because we don't want to run too many databases\n synchronized (AppDatabase.class) {\n if(INSTANCE == null) {\n INSTANCE = Room.databaseBuilder(context.getApplicationContext(), AppDatabase.class, \"saved_locations_db\").build(); //build a database object\n }\n\n }\n }\n return INSTANCE;\n }", "public static Area28Database getDatabase(final Context context) {\n if (INSTANCE == null) {\n synchronized (Area28Database.class) {\n if (INSTANCE == null) {\n INSTANCE = Room.databaseBuilder(context.getApplicationContext(),\n Area28Database.class, database_name)\n .build();\n\n // Copy pre-created database to application runtime memory space\n try {\n copyDatabase(context, database_name);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n return INSTANCE;\n }", "protected MongoDatabase getDB() {\n return mongoClient.getDatabase(\"comp391_yourusername\");\n }", "public DatabaseConnection getDatabaseConnection() {\n return query.getDatabaseConnection();\n }", "public static DataModule getInstance() {\n return Holder.INSTANCE;\n }", "public static BookingDatabase getDbInstance(final Context context) {\n // If a database instance hasn't been created already\n if (dbInstance == null) {\n synchronized (BookingDatabase.class) {\n if (dbInstance == null) {\n dbInstance = Room.databaseBuilder(context.getApplicationContext(),\n BookingDatabase.class, \"booking_db\")\n .fallbackToDestructiveMigration()\n .addCallback(insertCallback)\n .build();\n }\n }\n }\n return dbInstance;\n }", "@Override\n public CarsDAO getCarsDAO() {\n if (instanceCarsDAO == null) {\n return new MySQLCarsDAO(connection);\n } else {\n return instanceCarsDAO;\n }\n }", "public synchronized static Connection getInstance()\n\t{\n\t\tif(connect == null)\n\t\t{\n\t\t\tnew DAOconnexion();\n\t\t}\n\t\treturn connect;\n\t}" ]
[ "0.7405425", "0.7361183", "0.7306157", "0.7280587", "0.71099377", "0.70810544", "0.7064157", "0.703783", "0.7019127", "0.6965398", "0.6960058", "0.6891871", "0.68488944", "0.6761936", "0.6732742", "0.67279667", "0.67246974", "0.67090744", "0.67079", "0.6654709", "0.6638557", "0.6633178", "0.6631964", "0.6589444", "0.6586664", "0.65754646", "0.65714073", "0.6570243", "0.656436", "0.65617526", "0.6531155", "0.6527796", "0.6508673", "0.64962333", "0.6481717", "0.64791054", "0.6455229", "0.6436688", "0.6433994", "0.6397047", "0.63953817", "0.6395278", "0.63638145", "0.6348808", "0.63484454", "0.6347679", "0.63416666", "0.63386554", "0.63342315", "0.63321894", "0.6321215", "0.6319431", "0.63077587", "0.6307191", "0.6302631", "0.6302563", "0.6287706", "0.62653583", "0.6233442", "0.62297106", "0.6224833", "0.622216", "0.621139", "0.61984473", "0.6171237", "0.6169351", "0.6167003", "0.61656886", "0.61652714", "0.6163893", "0.6159392", "0.6156158", "0.6116714", "0.61161476", "0.6113713", "0.60944545", "0.6077092", "0.6068007", "0.6065363", "0.60588384", "0.6044862", "0.60394055", "0.60349816", "0.60342914", "0.60326344", "0.6031417", "0.6031417", "0.6031417", "0.6031417", "0.60302955", "0.602854", "0.6026741", "0.60126305", "0.6011216", "0.6002787", "0.59953517", "0.59897536", "0.598758", "0.59833103", "0.59730744" ]
0.90007144
0
Gets the next ID that will be used for a row in the table specified as the argument.
int getNextID(String table, String primaryKey) { try { ResultSet result = connection .prepareStatement("SELECT MAX(" + primaryKey + ") FROM " + table + ";") .executeQuery(); return result.getInt(1) + 1; } catch (SQLException e) { System.err.println(e.getMessage() + "\nFailed to get MAX(" + primaryKey + ") from " + table + "."); return -1; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getNextId(String tableName, String idColumn)\n throws SQLException {\n int nextId = 0;\n \n try {\n nextId = com.stratelia.webactiv.util.DBUtil\n .getNextId(tableName, idColumn);\n } catch (Exception e) {\n throw new SQLException(e.toString());\n }\n \n if (nextId == 0) {\n return 1;\n } else {\n return nextId;\n }\n }", "public long getNextID() throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\t\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\tstmt = conn.prepareStatement(\"SELECT Auto_increment FROM information_schema.tables WHERE table_schema = DATABASE()\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\trs.next();\n\t\t\tlong id = rs.getLong(1);\n\t\t\treturn id;\n\t\t}catch (SQLException e) {\n\t\t\tSystem.out.println(e);\n\t\t\treturn 0;\n\t\t}finally {\n\t\t\tif(conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif(stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t}", "protected abstract long getNextID(long ID);", "public int getNextId(Connection conn, String sequenceName) throws DbException;", "int nextId();", "public abstract ID nextId();", "private String generatePrimaryKey(Connection conn, String tableName) {\n String returnValue = null;\n String existingPkValue = null;\n String nextPkValue = null;\n\n try {\n existingPkValue = sql.selectKeyValueFromLastUsedKey(conn, tableName);\n\n if (existingPkValue == null) {\n System.out.println(\"Last used key value is NULL\");\n return null;\n }\n // remove first 1 alphabetic characters from this\n String prefix = existingPkValue.substring(0, 1);\n String existingPkValueWithPrefixStripped = existingPkValue.substring(1);\n\n // get number of characters in lastUsedId\n int completeLength = existingPkValueWithPrefixStripped.length();\n\n // convert lastUsedId into number\n int existingIdNum = 0;\n existingIdNum = Integer.parseInt(existingPkValueWithPrefixStripped.trim());\n\n // add 1 to this number\n int nextIdNum = existingIdNum + 1;\n\n // convert this number back to String\n String nextId = String.valueOf(nextIdNum);\n int newLength = nextId.length();\n // depending on the number of characters calculated initially,\n int zeroes = completeLength - newLength;\n // prefix Zeros accordingly to this String\n for (int i = 1; i <= zeroes; i++) {\n nextId = \"0\" + nextId;\n }\n\n // add the 4 character alphabetic prefix to this string\n nextPkValue = prefix + nextId;\n\n // update the system_last_used_id table\n sql.updateLastUsedPrimaryKeyValue(conn, tableName, nextPkValue);\n returnValue = nextPkValue;\n } catch (NumberFormatException ex) {\n System.out.println(\"generatePrimaryKey: \" + ex.getMessage());\n }\n return returnValue;\n\n }", "public String getNextID() {\n String id = \"am\" + Integer.toString(nextID);\n nextID++;\n return id;\n }", "private static int getNextID() {\n return persons.get(persons.size() - 1).getId() + 1;\n }", "private static int nextID() {\r\n\t\treturn ID++;\r\n\t}", "private synchronized long nextId() {\n\t\treturn ++curID;\n\t}", "public synchronized long getNextTransactionID(){\n\t\treturn this.id++;\n\t}", "private int nextValidID() {\n return nextId++;\n }", "private long getNextCityId() {\n\t\tSqlRowSet nextIdResult = jdbcTemplate.queryForRowSet(\"SELECT nextval('seq_city_id')\");\n\n\t\t// Remember, we only get a single row back, so we just need to check if we got a\n\t\t// row.\n\t\tif (nextIdResult.next()) {\n\t\t\t// While we usually get the columns by name explicitly (see the mapCityToRow\n\t\t\t// method), we can also get a column at a specific index. Keep in mind the index\n\t\t\t// starts at one (1), unlike arrays that start at an index of zero (0).\n\t\t\treturn nextIdResult.getLong(1);\n\t\t} else {\n\t\t\t// in this case, if we weren't able to get a single row back, we need to throw\n\t\t\t// an unchecked RuntimeException.\n\t\t\tthrow new RuntimeException(\"Something went wrong while getting an id for the new city\");\n\t\t}\n\t}", "public long getNextID() throws IDGenerationException;", "public int assignNextUniqueId(String tableName, String dataFieldName) {\n\t\treturn iDFactory.getNextId(tableName, dataFieldName);\n\t}", "private int getEmployeeId() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tint employeeId1 = 0;\r\n\t\tString sql = \"SELECT Patient_Id_Sequence.NEXTVAL FROM DUAL\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pstmt = con.prepareStatement(sql);\r\n\t\t\tResultSet res = pstmt.executeQuery();\r\n\t\t\tif (res.next()) {\r\n\t\t\t\temployeeId1 = res.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"error while fetching data from database\");\r\n\t\t}\r\n\t\treturn employeeId1;\r\n\r\n\t}", "public String getIdForRow(int row);", "public static int getIdentifier(){\n\t\tif(index > ids.size() - 1){\n\t\t\tindex = 0;\n\t\t}\n\t\t// Post increment is used here, returns index then increments index\n\t\treturn ids.get(index++);\n\t}", "private int newPrimaryKey( )\n {\n int nKey;\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK );\n\n daoUtil.executeQuery( );\n\n if ( daoUtil.next( ) )\n {\n nKey = daoUtil.getInt( 1 ) + 1;\n }\n else\n {\n // If the table is empty\n nKey = 1;\n }\n\n daoUtil.free( );\n\n return nKey;\n }", "public String getNextId() {\n while (!this.isIdFree(this.nextId)) {\n this.nextId += 1;\n }\n return Integer.toString(this.nextId);\n }", "public String getNextId() {\n while (!isIdFree(this.nextId)) {\n this.nextId += 1;\n }\n return Integer.toString(this.nextId);\n }", "private static synchronized String getNextID() {\r\n\t\tlastID = lastID.add(BigInteger.valueOf(1));\r\n\t\t\r\n\t\treturn lastID.toString();\r\n\t}", "private String nextID(String id) throws ConstraintViolationException {\r\n\t if (id == null) { // generate a new id\r\n\t if (idCounter == 0) {\r\n\t idCounter = Calendar.getInstance().get(Calendar.YEAR);\r\n\t } else {\r\n\t idCounter++;\r\n\t }\r\n\t return \"S\" + idCounter;\r\n\t } else {\r\n\t // update id\r\n\t int num;\r\n\t try {\r\n\t num = Integer.parseInt(id.substring(1));\r\n\t } catch (RuntimeException e) {\r\n\t throw new ConstraintViolationException(\r\n\t ConstraintViolationException.Code.INVALID_VALUE, e, new Object[] { id });\r\n\t }\r\n\t \r\n\t if (num > idCounter) {\r\n\t idCounter = num;\r\n\t }\r\n\t \r\n\t return id;\r\n\t }\r\n\t \r\n\t \r\n\t \r\n\t \r\n\t \r\n}", "private long fetchTableId(String tableName) throws SQLException {\n long tableId = 0;\n PreparedStatement fetchTableMetadataStatement = null;\n\n try {\n fetchTableMetadataStatement =\n masterNodeConnection.prepareStatement(MASTER_FETCH_TABLE_METADATA);\n fetchTableMetadataStatement.setString(1, tableName);\n\n ResultSet tableMetadataResultSet = fetchTableMetadataStatement.executeQuery();\n\n tableMetadataResultSet.next();\n tableId = tableMetadataResultSet.getLong(LOGICAL_RELID_FIELD);\n\n } finally {\n releaseResources(fetchTableMetadataStatement);\n }\n\n return tableId;\n }", "public interface IdGenerator \n{\n /**\n * Get the next identifier\n * @param conn The connection to use then getting the id\n * @param sequenceName The sequence name for the table. This is a name that identifies the\n * table.\n * @throws org.tgdb.exceptions.DbException if something goes wrong\n * @return an integer value.. This is not complete..\n */\n public int getNextId(Connection conn, String sequenceName) throws DbException;\n}", "public Integer nextPk() throws ApplicationException {\n\t\t//\tlog.debug(\"Faculty Model nextPK method Started\");\n\t\t\tConnection conn = null;\n\t\t\tint pk = 0;\n\t\t\ttry {\n\t\t\t\tconn = JDBCDataSource.getConnection();\n\t\t\t\tPreparedStatement pstmt = conn.prepareStatement(\"SELECT MAX(id) FROM ST_FACULTY\");\n\t\t\t\tResultSet rs = pstmt.executeQuery();\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tpk = rs.getInt(1);\n\t\t\t\t}\n\t\t\t\trs.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//log.error(\"DataBase Exception ..\", e);\n\t\t\t\tthrow new ApplicationException(\"Exception in Getting the PK\");\n\t\t\t} finally {\n\t\t\t\tJDBCDataSource.closeConnection(conn);\n\t\t\t}\n\t\t\t//log.debug(\"Faculty Model nextPK method End\");\n\t\t\treturn pk + 1;\n\t\t}", "public Integer nextPK() throws DatabaseException {\n log.debug(\"Model nextPK Started\");\n Connection conn = null;\n int pk = 0;\n try {\n conn = JDBCDataSource.getConnection();\n PreparedStatement pstmt = conn\n .prepareStatement(\"SELECT MAX(ID) FROM ST_COURSE\");\n ResultSet rs = pstmt.executeQuery();\n while (rs.next()) {\n pk = rs.getInt(1);\n }\n rs.close();\n\n } catch (Exception e) {\n log.error(\"Database Exception..\", e);\n throw new DatabaseException(\"Exception : Exception in getting PK\");\n } finally {\n JDBCDataSource.closeConnection(conn);\n }\n log.debug(\"Model nextPK End\");\n return pk + 1;\n }", "static synchronized int nextID() {\n\t\treturn g_nID++;\n\t}", "private int getNextUnique() {\r\n\t\ttry {\r\n\t\t\tint nextUnique = 0;\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tResultSet rs = statement.executeQuery(\"SELECT MAX(userID) userID FROM users\");\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tnextUnique = rs.getInt(\"userID\") + 1;\r\n\t\t\t}\r\n\t\t\treturn nextUnique;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "private static Integer getSeq()throws SQLException{\r\n String selectSql = \"SELECT max(idArt) from Artigo\";\r\n Statement statement = dbConnection.createStatement();\r\n ResultSet rs = statement.executeQuery(selectSql);\r\n int seqIdPe = -1;\r\n if(rs.next()){\r\n seqIdPe = rs.getInt(1);\r\n }\r\n return seqIdPe + 1; \r\n }", "@Override\n public Long nextSequenceValue() {\n return (Long)getHibernateTemplate().execute(\n new HibernateCallback() {\n @Override\n public Object doInHibernate(Session session) throws HibernateException {\n //return (Long) session.createSQLQuery(\"select SGSWEB.SEQ_CUESTIONARIO.NEXTVAL as id from dual\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n return (Long) session.createSQLQuery(\"SELECT NEXTVAL('SGSWEB.SEQ_CUESTIONARIO') as id\").addScalar(\"id\", LongType.INSTANCE).uniqueResult();\n }\n });\n }", "public Integer getNextId(){\n\t\tInteger id = 0;\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(userFile));\n\t\t\tString l;\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\twhile (( l = br.readLine()) != null){\n\t\t\t\tString[] line = l.split(\",\");\n\t\t\t\ttry {\n\t\t\t\t\tlist.add(new Integer(line[0]));\t\t\t\t\t\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tSystem.out.println(\"DATA ERROR: id field is not an integer\" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\t// sort the first field\n\t\t\tCollections.sort(list);\n\t\t\t// get the last (highest value) object\n\t\t\tid = list.get(list.size()-1);\n\t\t\t// increment so next id is guaranteed to be highest integer\n\t\t\tid = id.intValue() + 1;\n\t\t} catch (Exception e){\n\t\t\tSystem.err.println(\"Caught Exception: \" + e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "protected long nextId() throws IdGenerationException {\r\n long nextId;\r\n\r\n try {\r\n nextId = idGenerator.getNextID();\r\n } catch (com.topcoder.util.idgenerator.IDGenerationException e) {\r\n throw new IdGenerationException(\"fail to retrieve id\", e);\r\n }\r\n\r\n if (nextId < 0) {\r\n throw new IdGenerationException(\"invalid id:\" + nextId);\r\n }\r\n\r\n return nextId;\r\n }", "public long nextUniqueID() {\n final Lock lock = sequenceBlocks.getLock(type);\n lock.lock();\n try {\n Data data = sequenceBlocks.get(type);\n if (data == null || !(data.getCurrentID() < data.getMaxID())) {\n data = getNextBlock();\n }\n\n final long id = data.getCurrentID();\n data.setCurrentID(id + 1);\n sequenceBlocks.put(type, data);\n return id;\n } finally {\n lock.unlock();\n }\n }", "public String getUniqueId(int row);", "private int getLatestID(String table, String column) {\n String query = \"SELECT \" + column + \" FROM \" + table + \" ORDER BY \" + column + \" DESC LIMIT 1\";\n sendQuery(query);\n Number result = 0;\n try {\n if(resultSet.next()){\n result = ((Number) resultSet.getObject(1)).intValue();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return result.intValue() + 1;\n }", "public Integer generateID(){\n String sqlSelect = \"SELECT max(id) from friends\";\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n int maxId=0;\n try {\n connection = new DBConnection().connect();\n statement = connection.createStatement();\n resultSet = statement.executeQuery(sqlSelect);\n while (resultSet.next())\n maxId = resultSet.getInt(1);\n \n } catch (SQLException e) {\n System.err.print(\"err in select \" + e);\n } finally {\n try {\n if (resultSet != null) {\n resultSet.close();\n }\n if (statement != null) {\n statement.close();\n }\n if (connection != null) {\n connection.close();\n }\n } catch (SQLException e) {\n System.err.print(\"err in close select \" + e);\n }\n }\n\n return ++maxId;\n }", "Object getNextRuntimeId() throws PersistenceException;", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "int getRowId();", "private long maxIdFromTable(String ename) {\n\t\tEOEntity entity = EOModelGroup.defaultGroup().entityNamed(ename);\n\t\tif (entity == null) throw new NullPointerException(\"could not find an entity named \" + ename);\n\t\tString tableName = entity.externalName();\n\t\tString colName = entity.primaryKeyAttributes().lastObject().columnName();\n\t\tString sql = \"select max(\" + colName + \") from \" + tableName;\n\n\t\tERXJDBCConnectionBroker broker = ERXJDBCConnectionBroker.connectionBrokerForEntityNamed(ename);\n\t\tConnection con = broker.getConnection();\n\t\tResultSet resultSet;\n\t\ttry {\n\t\t\tresultSet = con.createStatement().executeQuery(sql);\n\t\t\tcon.commit();\n\n\t\t\tboolean hasNext = resultSet.next();\n\t\t\tlong v = 1l;\n\t\t\tif (hasNext) {\n\t\t\t\tv = resultSet.getLong(1);\n\t\t\t\tlog.debug(\"received max id from table {}, setting value in PK_TABLE to {}\", tableName, v);\n\t\t\t\tif(encodeEntityInPkValue()) {\n\t\t\t\t\tv = v >> CODE_LENGTH;\n\t\t\t\t}\n\t\t\t\tif(encodeHostInPkValue()) {\n\t\t\t\t\tv = v >> HOST_CODE_LENGTH;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn v + 1;\n\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"could not call database with sql {}\", sql, e);\n\t\t\tthrow new IllegalStateException(\"could not get value from \" + sql);\n\t\t} finally {\n\t\t\tbroker.freeConnection(con);\n\t\t}\n\t}", "@Override\n public Object nextId(Transaction t) {\n lock.lock();\n try {\n int size = idList.size();\n if (size > 0) {\n maybeLoadMoreInBackground(size);\n } else {\n loadMore(allocationSize);\n }\n return idList.pollFirst();\n } finally {\n lock.unlock();\n }\n }", "public static int askTableID() {\n\t\tSystem.out.println(\"Please enter the table ID:\");\n\t\tint tableID = ExceptionHandler.scanIntRange(1, TOTALTABLES);\n\t\treturn (tableID);\n\t}", "private String nextTableCode(EntityDetails entityDetails)\r\n\t{\r\n\t\tint nextId = nextTableId.getAndIncrement();\r\n\t\tString name = \"T_\" + entityDetails.getShortName();\r\n\t\t\r\n\t\tif(!codeToTable.containsKey(name))\r\n\t\t{\r\n\t\t\treturn name;\r\n\t\t}\r\n\t\t\r\n\t\treturn name + nextId;\r\n\t}", "public int nextId() throws IllegalIdRequestException {\r\n\t\tif (currentId < players.size()) {\r\n\t\t\treturn currentId++;\r\n\t\t} else {\r\n\t\t\tthrow new IllegalIdRequestException(\"all available IDs have been assigned to players.\");\r\n\t\t}\r\n\t}", "public int getMaxId() {\n int count = driver.findElements(By.xpath(xpathTableRows)).size();\n int maxID = -1;\n if (count > 0) {\n maxID = Integer.parseInt(assertAndGetText(xpathTableRows + \"[\" + count + \"]//td[1]\"));\n }\n return maxID;\n }", "public String getNextBookId(){ \n return \"book-\" + dbmanager.getNextId(); \n }", "private long generateID() {\n\t\treturn ++lastID;\n\t}", "private String getRowIdName(String tableName) {\n String rowId = \"\";\n switch(tableName) {\n case SchemaConstants.MEETINGS_TABLE:\n rowId = SchemaConstants.MEETING_ROWID;\n break;\n case SchemaConstants.RACES_TABLE:\n rowId = SchemaConstants.RACE_ROWID;\n break;\n case SchemaConstants.RUNNERS_TABLE:\n rowId = SchemaConstants.RUNNER_ROWID;\n break;\n }\n return rowId;\n }", "public static long nextIdAlergia() {\r\n long ret = 0;\r\n for (int i = 0; i < Utilidades.ALERGIAS.length; i++) {\r\n if (Utilidades.ALERGIAS[i].id > ret);\r\n ret = Utilidades.ALERGIAS[i].id;\r\n }\r\n return ret + 1;\r\n }", "private int getNextPlayer() {\n int nextPlayerID = ((currentTurn + turnOrder) % numPlayers);\n nextPlayerID = (((nextPlayerID + numPlayers) % numPlayers)); // handles negative numbers\n return nextPlayerID;\n }", "public static Long getNextAvailableId(Context iContext) throws MapperException\n {\n try\n {\n Long id = MedicalHistoryTDG.getNextAvailableId(iContext);\n return id;\n } \n catch (PersistenceException e)\n {\n throw new MapperException(\n \"The mapper failed to complete an operation because the persistence layer returned the following error: \"\n + e.getMessage());\n } \n catch (Exception e)\n {\n throw new MapperException(\n \"The mapper failed to complete an operation for the following unforeseen reason: \"\n + e.getMessage());\n }\n }", "public BigInteger getNextBigID() {\n return new BigInteger(Long.toString(++id));\n }", "Long getNextSequence(String seqName);", "long getNextSequenceNumber();", "public TableGenRow nextRow() {\n try {\n if(DBMacros.next(rs)) {\n return this;\n }\n } catch (Exception t) {\n dbg.ERROR(\"nextRow() Exception skipping to the next record!\");\n dbg.Caught(t);\n }\n return null;\n }", "private Integer newPrimaryKey( )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK );\n daoUtil.executeQuery( );\n Integer nKey = null;\n\n if ( daoUtil.next( ) )\n {\n nKey = daoUtil.getInt( 1 );\n }\n else\n {\n nKey = 1;\n }\n daoUtil.close( );\n\n return nKey.intValue( );\n }", "public String getNextStrainID(Db db)\n\t\t{\n\t\t String prefix = getStrainPrefix(db);\n\t\t int prefixLength = prefix.length();\n\t\t int idLength = prefix.length() + \"NNNN\".length();\n\t\n\t\t \tString sql = \"exec spMet_GetLastStrainID '\" + this.getTaskName() + \"'\";\n\t\t\tString lastId = db.getHelper().getDbValue(sql, db);\n\t\t\t// expecting 'AA-NNNN'; all errors are handled by catch below\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// extract 'NNNN' from 'AA-NNNN'\n\t\t\t\t// to get something like '0014'\n\t\t\t\t// convert to 14 and increment to 15 \n\t\t\t\tint ilastId = Integer.parseInt(lastId.substring(lastId.lastIndexOf('-') + 1));\n\t\t\t\tint nextId = ilastId + 1;\n\t\t\t\t\n\t\t\t\t// pad to create '0015' \n\t\t\t\tString paddedId = String.valueOf(nextId);\n\t\t\t\twhile(paddedId.length() < (idLength - prefixLength))\n\t\t\t\t{\n\t\t\t\t\tpaddedId = \"0\" + paddedId;\n\t\t\t\t}\t\t\n\t\t\t\t// add prefix back to '0015' to make 'AA-0015'\n\t\t\t\tString newId = prefix + paddedId;\n\t\t\t\treturn newId;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tthrow new LinxUserException(\"Last Strain ID was not numeric and cannot be incremented.\"\n\t\t\t\t\t\t+ \" Please download the list of strains to determine next Strain ID.\");\n\t\t\t}\n\t\t}", "private String nextID(String id) throws ConstraintViolationException {\n\t\tif (id == null) { // generate a new id\n//\t\t\tif (idCounter == 0) {\n//\t\t\t\tidCounter = Calendar.getInstance().get(Calendar.YEAR);\n//\t\t\t} else {\n\t\t\t\tidCounter++;\n\t\t\t\tString stringIdCounter = String.format(\"%06d\", idCounter);\n//\t\t\t}\n\t\t\treturn \"CUS\"+ stringIdCounter;\n\t\t} else {\n\t\t\t// update id\n\t\t\tint num;\n\t\t\ttry {\n\t\t\t\tnum = Integer.parseInt(id.substring(3));\n\t\t\t} catch (RuntimeException e) {\n\t\t\t\tthrow new ConstraintViolationException(ConstraintViolationException.Code.INVALID_VALUE, e,\n\t\t\t\t\t\tnew Object[] { id });\n\t\t\t}\n\n\t\t\tif (num > idCounter) {\n\t\t\t\tidCounter = num;\n\t\t\t}\n\n\t\t\treturn id;\n\t\t}\n\t}", "public int getCurrentRowNumber() throws SQLException {\n/* 174 */ return this.currentPositionInEntireResult + 1;\n/* */ }", "public int getId() {\n return tableId;\n }", "public ResultSet retid(String username) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select user_seq.nextval-1 from dual\");\r\n\treturn rs;\r\n}", "public static DataID getNextDataID\r\n ( DataID dID // input\r\n )\r\n {\r\n DataID outputID = DataID.DATA_INVALID;\r\n \r\n switch ( dID )\r\n {\r\n case DATA_A:\r\n outputID = DataID.DATA_B;\r\n break;\r\n case DATA_B:\r\n outputID = DataID.DATA_C;\r\n break;\r\n case DATA_C:\r\n outputID = DataID.DATA_A;\r\n break;\r\n default:\r\n System.out.printf( \"getNextDataID() called with %d\\n\"\r\n , dID.ordinal()\r\n ); \r\n } // switch\r\n \r\n return outputID;\r\n \r\n }", "private String getNext() {\n \t\t\n \t\tArrayList<String> reel = game.getType().getReel();\n \t\t\n \t\tRandom generator = new Random();\n \t\tint id = generator.nextInt(reel.size());\n \t\t\n \t\tString nextID = reel.get(id);\n \t\tString[] idSplit = nextID.split(\"\\\\:\");\n \t\t\n \t\tif (idSplit.length == 2) {\n \t\t\treturn nextID;\n \t\t}else {\n \t\t\tString newID;\n \t\t\tnewID = Integer.parseInt(idSplit[0]) + \":0\";\n \t\t\t\n \t\t\treturn newID;\n \t\t}\n \t}", "public long getNextObjectID() {\n return (Long) getProperty(\"nextObjectID\");\n }", "private int newPrimaryKey( Plugin plugin )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_NEW_PK, plugin );\n daoUtil.executeQuery( );\n\n int nKey;\n\n if ( !daoUtil.next( ) )\n {\n // if the table is empty\n nKey = 1;\n }\n\n nKey = daoUtil.getInt( 1 ) + 1;\n daoUtil.free( );\n\n return nKey;\n }", "private int getIDFromDb(String codeItemID) {\n\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\tcodeItemID = codeItemID.toUpperCase();\n\t\tString sql = \"SELECT max_sequence FROM do_code_maxsequence WHERE upper(code_ItemUid)=? for update\";\n\n\t\tStringBuffer insertSql = new StringBuffer(\n\t\t\t\t\"insert into do_code_maxsequence(OBJUID,SEQUENCE_NAME,CODE_ITEMUID,PROPERTYUID,PROPERTYVALUE,YEARSEQ,MAX_SEQUENCE) values(\")\n\t\t\t\t.append(\"?,?,?,null,?,?,?)\");\n\n\t\tStringBuffer sqlUpdate = new StringBuffer(\n\t\t\t\t\"update do_code_maxsequence SET max_sequence=max_sequence+1\")\n\t\t\t\t.append(\" WHERE upper(code_ItemUid)=?\");\n\t\tConnection con = null;\n\t\tPreparedStatement stmt = null;\n\t\tDOBO bo = DOBO.getDOBOByName(\"do_authorization\");\n\t\tDODataSource dss = bo.getDataBase();\n\n\t\ttry {\n\t\t\t// query\n\t\t\tcon = dss.getConnection();\n\t\t\tcon.setAutoCommit(false);\n\t\t\tstmt = con.prepareStatement(sql, ResultSet.TYPE_SCROLL_INSENSITIVE,\n\t\t\t\t\tResultSet.CONCUR_READ_ONLY);\n\t\t\tint retId = 1;\n\n\t\t\tstmt.setString(1, codeItemID);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\tSystem.out.println(\"The SQL\" + sql);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tretId = rs.getInt(\"max_sequence\") + 1;\n\t\t\t\t// update\n\t\t\t\t// //update\n\t\t\t\tstmt = con.prepareStatement(sqlUpdate.toString());\n\t\t\t\tstmt.setString(1, codeItemID);\n\t\t\t\tstmt.execute();\n\t\t\t} else {\n\t\t\t\t// //////////////insert\n\t\t\t\tstmt = con.prepareStatement(insertSql.toString());\n\t\t\t\tstmt.setString(1, UUIDHex.getInstance().generate());\n\t\t\t\tstmt.setString(2, null);\n\t\t\t\tstmt.setString(3, codeItemID);\n\t\t\t\tstmt.setString(4, null);\n\t\t\t\tstmt.setInt(5, 0);\n\t\t\t\tstmt.setLong(6, retId);\n\t\t\t\tstmt.execute();\n\t\t\t}\n\t\t\t// stmt.close();\n\t\t\t//\n\n\t\t\tcon.commit();\n\t\t\treturn retId;\n\n\t\t} catch (SQLException ex) {\n\t\t\ttry {\n\t\t\t\tcon.rollback();\n\t\t\t} catch (SQLException e) {\n\n\t\t\t}\n\t\t\tex.printStackTrace();\n\t\t\treturn 0;\n\t\t} finally {// Close Connection\n\t\t\ttry {\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\tstmt.close();\n\t\t\t\t}\n\t\t\t con.close();\n\t\t\t} catch (Exception ex1) {\n\t\t\t\tex1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public int getCurrentNum(String table, String field) throws SQLException {\n int currentNum = 0;\n PreparedStatement getIDQuery;\n String query = \"SELECT \" + field + \" FROM \" + table + \" WHERE \" +\n field + \" = (SELECT MAX(\" + field + \") FROM \" + table + \");\";\n getIDQuery = c.prepareStatement(query);\n\n ResultSet rs = getIDQuery.executeQuery();\n if (debug) {\n System.out.println(\"getID query: \" + getIDQuery);\n System.out.println(rs.toString());\n }\n if (rs.next()) {\n currentNum = rs.getInt(field);\n }\n getIDQuery.close();\n return currentNum;\n }", "public int getNextCustomerId() {\n return database.getNextCustomerId();\n }", "public int getRecommentPatientID() {\r\n\t\tint nextPatientID=1000;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients \";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tresults.last();\r\n\t\t\t\tnextPatientID= results.getInt(1);\r\n\t\t\t}\r\n\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\tnextPatientID++;\r\n\t\treturn nextPatientID;\r\n\t}", "int getNextId(DeviceId deviceId, VlanId vlanId);", "private int getNextAirportID(){\n\t\treturn this.airportIDCounter++;\n\t}", "public static long nextID(int type) {\n if (managers.containsKey(type)) {\n return managers.get(type).nextUniqueID();\n }\n else {\n // Verify type is valid from the db, if so create an instance for the type\n // And return the next unique id\n SequenceManager manager = new SequenceManager(type, 1);\n return manager.nextUniqueID();\n }\n }", "private int getNextSessionID() {\n\t\treturn sessionNum++;\n\t}", "public Integer getBlockID() {\n this.next_id++;\n return this.next_id;\n }", "private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }", "public String getNextIdentifier() {\r\n if (!vocabularyFolder.isNumericConceptIdentifiers()) {\r\n return \"\";\r\n } else {\r\n try {\r\n int identifier = vocabularyService.getNextIdentifierValue(vocabularyFolder.getId());\r\n return Integer.toString(identifier);\r\n } catch (ServiceException e) {\r\n LOGGER.error(e);\r\n return \"\";\r\n }\r\n }\r\n }", "private static int nextInstanceID()\n {\n return baseID.incrementAndGet();\n }", "private SimpleHashtable.TableEntry<K, V> findNextNonNullTableRowEntry() {\r\n\t\t\tcurrentRow++;\r\n\r\n\t\t\twhile (currentRow < table.length) {\r\n\t\t\t\tif (table[currentRow] != null) {\r\n\t\t\t\t\treturn table[currentRow];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentRow++;\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t}", "public abstract String getPrimaryKey(String tableName);", "public int generateId(){\n return repository.getCount()+1;\n }", "public abstract int getSequenceNextVal(String sequenceName, Connection con) throws DBException;", "public long getNextThreadID() {\n return (Long) getProperty(\"nextThreadID\");\n }", "public static int nextId(String key) {\n //Setting the id to number of users created + 1 and clearing id file\n try {\n File file = FileHandler.loadFile(key + \".id\");\n InputStream input = new FileInputStream(file);\n Scanner scanner = new Scanner(input);\n int id = scanner.nextInt() + 1;\n scanner.close();\n input.close();\n FileHandler.ClearFile(file);\n //updating id file with new numbers\n PrintStream printStream = new PrintStream(new FileOutputStream(file));\n printStream.println(id);\n printStream.close();\n return id;\n } catch (FileNotFoundException fileNotFoundException) {\n fileNotFoundException.printStackTrace();\n logger.fatal(key + \"id file doesnt exist.\");\n } catch (IOException e) {\n e.printStackTrace();\n logger.error(\"couldn't read from \" + key + \" id file.\");\n }\n return -1;\n }", "public BigInteger getNextBigID() throws IDGenerationException;", "public String generateReferenceId(){\n String lastSequenceNumber = databaseAccessResource.getLastRequestSequenceNumber();\n //ToDo : write the logic to generate the next sequence number.\n return null;\n }", "public static Long getNextAvailableId(Context iContext) throws MapperException\n {\n try\n {\n Long id = AllergiesTDG.getNextAvailableId(iContext);\n return id;\n } \n catch (PersistenceException e)\n {\n throw new MapperException(\n \"The mapper failed to complete an operation because the persistence layer returned the following error: \"\n + e.getMessage());\n } \n catch (Exception e)\n {\n throw new MapperException(\n \"The mapper failed to complete an operation for the following unforeseen reason: \"\n + e.getMessage());\n }\n }", "private Integer getSequence() {\r\n\t\t\tInteger seq;\r\n\t\t\tString sql = \"select MAX(vendorid)from vendorTable\";\r\n\t\t\tseq = template.queryForObject(sql, new Object[] {}, Integer.class);\r\n\t\t\treturn seq;\r\n\t\t}", "public final Integer getNewId(final String key){\r\n\t\tmaxId++;\r\n\t\twhile (idKeyMap.containsKey(maxId)){\r\n\t\t\tmaxId++; // probably not going to happen...\r\n\t\t}\r\n\t\tidKeyMap.put(maxId, key);\r\n\t\tkeyIdMap.put(key, maxId);\r\n\t\treturn maxId;\r\n\t}", "protected static int findLastInsertedRow(String table)\r\n throws ConnectionFailedException, DatabaseException {\r\n int result = NONEXISTENT_ROW;\r\n\r\n String sql = \"SELECT * FROM sqlite_sequence WHERE name = ?\";\r\n\r\n try (Connection conn = connect();\r\n PreparedStatement preparedStatement = conn.prepareStatement(sql)) {\r\n\r\n preparedStatement.setString(1, table);\r\n try (ResultSet rs = preparedStatement.executeQuery()) {\r\n if (rs.next()) {\r\n result = rs.getInt(\"seq\");\r\n }\r\n }\r\n if (result == NONEXISTENT_ROW) {\r\n throw new DatabaseException(\"findLastInsertedRow : Last inserted row not found\");\r\n }\r\n } catch (SQLException e) {\r\n throwException(e);\r\n } catch (ClassNotFoundException e) {\r\n throwConnectionException(e);\r\n }\r\n return result;\r\n }", "private synchronized int generateJobID() {\n\t\t/* generate JobID */\n\t\tint jobID = lastJobID;\n\t\tlastJobID += 1;\n\t\treturn jobID;\n\t}", "private synchronized Serializable generateAlphanumericID(SharedSessionContractImplementor session, String prefix,\n\t\t\tint sequence_increment) {\n\t\tSerializable result = null;\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\n\t\ttry {\n\t\t\tint nextValue = 0;\n\t\t\tint start_val = 0;\n\n\t\t\tconnection = session.connection();\n\t\t\tstatement = connection.createStatement();\n\t\t\ttry {\n\t\t\t\tresultSet = statement.executeQuery(selectSEQTable(prefix));\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog.debug(\"In catch, cause : Table is not available.\");\n\t\t\t\tstatement.execute(createSEQTable());\n\t\t\t\tstatement.executeUpdate(insertSEQTable(prefix, start_val, sequence_increment));\n\t\t\t\tstatement.executeUpdate(updateSEQTable(prefix));\n\t\t\t\tresultSet = statement.executeQuery(selectSEQTable(prefix));\n\t\t\t}\n\n\t\t\tif (resultSet.next()) {\n\t\t\t\tstatement.executeUpdate(updateSEQTable(prefix));\n\t\t\t\tResultSet resultSetIdentify = statement.executeQuery(selectSEQTable(prefix));\n\t\t\t\tif (resultSetIdentify.next()) {\n\t\t\t\t\tnextValue = resultSetIdentify.getInt(1);\n\t\t\t\t\tresult = buildStringNextValue(prefix, nextValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstatement.executeUpdate(insertSEQTable(prefix, start_val, sequence_increment));\n\t\t\t\tstatement.executeUpdate(updateSEQTable(prefix));\n\t\t\t\tResultSet resultSetIdentify = statement.executeQuery(selectSEQTable(prefix));\n\t\t\t\tif (resultSetIdentify.next()) {\n\t\t\t\t\tnextValue = resultSetIdentify.getInt(1);\n\t\t\t\t\tresult = buildStringNextValue(prefix, nextValue);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(e.getMessage());\n\t\t} finally {\n\t\t\tstatement = null;\n\t\t\tresultSet = null;\n\t\t\tconnection = null;\n\t\t}\n\t\treturn result;\n\t}", "protected long getRecordNumber() {\n\t\treturn _nextRecordNumber.getAndIncrement();\n\t}", "private String getOffsetRecordId() throws Exception {\n String id = null;\n Iterable<String> rids = datasource.getRecordids();\n int itCount = 0;\n boolean startFound = false;\n for (String rid : rids) {\n if (rid.equals(recordid)) {\n startFound = true;\n }\n if (startFound) {\n itCount++;\n if (itCount >= iteration) {\n id = rid;\n break;\n }\n }\n }\n if (id == null) {\n throw new Exception(\"No offset record id found\");\n }\n return id;\n }", "public static int idUltimoRegistroEntradaSalida(){\n\t\tint idRegistro=-1;\n\t\tString sql = \"SELECT MAX(id) as ultimoId FROM registro_entrada_salida\";\n\t\tPreparedStatement comando;\n\t\tResultSet resultadoConsulta;\n\t\ttry {\n\t\t\tcomando = conexion.prepareStatement(sql);\n\t\t\tresultadoConsulta = comando.executeQuery();\n\t\t\twhile(resultadoConsulta.next()){\n\t\t\t\tidRegistro = resultadoConsulta.getInt(\"ultimoId\");\n\t\t\t}\n\t\t\treturn idRegistro;\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\treturn idRegistro;\n\t}", "@Override\n\tpublic Long getNextPjpeNo(Long pjId) {\n\t\tSession session = sessionAnnotationFactory.getCurrentSession();\t\t\n\t\tQuery query =session.createQuery( \"select max(pstJobPayExt.id.pjpeNo) from PstJobPayExt pstJobPayExt where pstJobPayExt.id.pjId=\"+pjId);\n\t\tObject obj=query.uniqueResult();\n\t\tif(obj!=null){\n\t\t\treturn ((Long)obj)+1;\n\t\t}\n\t\treturn 1l;\n\t}" ]
[ "0.7683865", "0.7112366", "0.7086394", "0.69055283", "0.67944676", "0.6750242", "0.66637015", "0.66536885", "0.66361564", "0.6624034", "0.66103566", "0.6606646", "0.6582358", "0.64950484", "0.6457247", "0.6453149", "0.64525795", "0.64267766", "0.63947093", "0.6392783", "0.63828593", "0.6382444", "0.6378987", "0.6305115", "0.6285704", "0.6267291", "0.62574637", "0.6250513", "0.62446934", "0.6232996", "0.6224863", "0.6200039", "0.61972934", "0.6189244", "0.61624587", "0.6161618", "0.61542124", "0.61352813", "0.61346895", "0.61304706", "0.61304706", "0.61304706", "0.61304706", "0.61304706", "0.6111859", "0.6095114", "0.6092241", "0.60490584", "0.6025934", "0.60155094", "0.5993074", "0.59793353", "0.59788215", "0.5977286", "0.5974748", "0.59699607", "0.59295976", "0.5917504", "0.5913042", "0.5909513", "0.5908427", "0.5897667", "0.58945495", "0.58880836", "0.5881612", "0.58617115", "0.58560556", "0.58552414", "0.584087", "0.5834427", "0.5832297", "0.5831068", "0.5830593", "0.5819146", "0.58135766", "0.58092076", "0.58059347", "0.5791129", "0.57787615", "0.57692313", "0.57344073", "0.57217634", "0.57217497", "0.57135355", "0.5705381", "0.5703915", "0.5698128", "0.56969213", "0.56968963", "0.5695373", "0.5684199", "0.56713396", "0.56701916", "0.5670154", "0.5651309", "0.56405103", "0.5635664", "0.5630615", "0.5620092", "0.5600097" ]
0.7845375
0
Allows running a raw SQL query on the database. Should be zused minimally and carefully.
ResultSet runSQL(String query) { try { return connection.prepareStatement(query).executeQuery(); } catch (SQLException e) { System.err.println(e.getMessage()); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract ResultList executeSQL(RawQuery rawQuery);", "public synchronized Cursor ExecuteRawSql(String s) {//Select Query\n try {\n\n//\t\t\tif(sqLiteDb != null)\n//\t\t\t\tcloseDB(null);\n\n sqLiteDb = openDatabaseInReadableMode();\n Log.d(TAG, \"Actual Query--->>\" + s);\n return sqLiteDb.rawQuery(s, null);\n\n }\n catch (Exception e) {\n e.printStackTrace();\n LogUtility.NoteLog(e);\n return null;\n }\n }", "public ResultSet queryRawSQL(String sql) throws SQLException{\n return mysql.query(sql);\n }", "private int execRawSqlPrivate(String sql, boolean isNative, Object params) {\r\n\t\tQuery query = createQuery(sql, null, isNative, 0, 0, params);\r\n\t\tint executeUpdate = query.executeUpdate();\r\n\t\treturn executeUpdate;\r\n\t}", "public int execRawSql(String sql, Object... params) {\r\n\t\treturn execRawSqlPrivate(sql, false, params);\r\n\t}", "public int execRawSql(String sql, Map<String, Object> params){\r\n\t\treturn execRawSqlPrivate(sql, false, params);\r\n\t}", "public Cursor rawQuery(String sql, String[] selectionArgs) {\n sqLiteDatabase.beginTransaction();\n Cursor res = null;\n try {\n res = sqLiteDatabase.rawQuery(sql, selectionArgs);\n sqLiteDatabase.setTransactionSuccessful();\n } catch (Exception e) {\n res = null;\n } finally {\n sqLiteDatabase.endTransaction();\n }\n return res;\n }", "void runQueries();", "Object executeSelectQuery(String sql) { return null;}", "Query query();", "@Override\n public PlainSqlQuery<T, ID> createPlainSqlQuery() {\n return null;\n }", "private void executeQuery() {\n }", "public int execRawSql(String sql) {\r\n\t\treturn execRawSql(sql, new Object[0]);\r\n\t}", "private void executeRequest(String sql) {\n\t}", "public Cursor raw(String query){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor c = db.rawQuery(query, null);\n return c;\n }", "public ResultSet runQuery(String sql){\n\n try {\n\n Statement stmt = conn.createStatement();\n\n return stmt.executeQuery(sql);\n\n } catch (SQLException e) {\n e.printStackTrace(System.out);\n return null;\n }\n\n }", "public ResultSet executeSQL() {\t\t\n\t\tif (rs != null) {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t} catch(SQLException se) {\n\t\t\t} finally {\n\t\t\t\trs = null;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\trs = pstmt.executeQuery();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}\n\t\treturn rs;\n\t}", "public synchronized boolean ExecuteSql(String s) {// Update Query\n try {\n\n if (sqLiteDb != null)\n closeDB(null);\n\n sqLiteDb = openDatabaseInReadableMode();\n sqLiteDb.execSQL(s);\n Log.d(TAG, \"Actual Query--->>\" + s);\n return true;\n }\n catch (Exception e) {\n e.printStackTrace();\n LogUtility.NoteLog(e);\n return false;\n }\n finally {\n closeDB(null);\n }\n }", "private void sampleQuery(final SQLManager sqlManager, final HttpServletResponse resp)\n throws IOException {\n try (Connection sql = sqlManager.getConnection()) {\n\n // Execute the query.\n final String query = \"SELECT 'Hello, world'\";\n try (PreparedStatement statement = sql.prepareStatement(query)) {\n \n // Gather results.\n try (ResultSet result = statement.executeQuery()) {\n if (result.next()) {\n resp.getWriter().println(result.getString(1));\n }\n }\n }\n \n } catch (SQLException e) {\n LOG.log(Level.SEVERE, \"SQLException\", e);\n resp.getWriter().println(\"Failed to execute database query.\");\n }\n }", "protected static void execute(ReviewDb db, String sql) throws SQLException {\n try (Statement s = newStatement(db)) {\n s.execute(sql);\n }\n }", "public void QuerryData(String sql){\n SQLiteDatabase database = getWritableDatabase();\n database.execSQL(sql);\n }", "protected void runSQL(String sql) {\n\t\ttry {\n\t\t\tDataSource dataSource = localRichPersistence.getDataSource();\n\n\t\t\tDB db = DBManagerUtil.getDB();\n\n\t\t\tsql = db.buildSQL(sql);\n\t\t\tsql = PortalUtil.transformSQL(sql);\n\n\t\t\tSqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,\n\t\t\t\t\tsql);\n\n\t\t\tsqlUpdate.update();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SystemException(e);\n\t\t}\n\t}", "protected void runSQL(String sql) throws SystemException {\n try {\n DataSource dataSource = barPersistence.getDataSource();\n\n SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,\n sql, new int[0]);\n\n sqlUpdate.update();\n } catch (Exception e) {\n throw new SystemException(e);\n }\n }", "public abstract Statement queryToRetrieveData();", "public abstract ResultList executeQuery(DatabaseQuery query);", "protected void runSQL(String sql) {\n\t\ttry {\n\t\t\tDataSource dataSource = itemPublicacaoPersistence.getDataSource();\n\n\t\t\tDB db = DBManagerUtil.getDB();\n\n\t\t\tsql = db.buildSQL(sql);\n\t\t\tsql = PortalUtil.transformSQL(sql);\n\n\t\t\tSqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,\n\t\t\t\t\tsql);\n\n\t\t\tsqlUpdate.update();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SystemException(e);\n\t\t}\n\t}", "public SimpleDatabase executeSqlFile(String name) {\n // possibly trim .sql extension\n if (name.toLowerCase().endsWith(\".sql\")) {\n name = name.substring(0, name.length() - 4);\n }\n SQLiteDatabase db = context.openOrCreateDatabase(name);\n int id = context.getResourceId(name, \"raw\");\n return executeSqlFile(db, id);\n }", "protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }", "protected void runSQL(String sql) throws SystemException {\n try {\n DataSource dataSource = libroPersistence.getDataSource();\n\n SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,\n sql, new int[0]);\n\n sqlUpdate.update();\n } catch (Exception e) {\n throw new SystemException(e);\n }\n }", "public ResultSet doQuery( String sql) throws SQLException {\r\n\t\tif (dbConnection == null)\r\n\t\t\treturn null;\r\n\t\t// prepare sql statement\r\n\t\toutstmt = dbConnection.prepareStatement(sql);\r\n\t\tif (outstmt == null)\r\n\t\t\treturn null;\r\n\t\tif (outstmt.execute()){\r\n\t\t\t//return stmt.getResultSet(); //old\r\n\t\t\toutrs = outstmt.getResultSet();\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t\treturn outrs;\r\n\t}", "public void testRawQuery() {\n Random random = new Random();\n ContentValues values1 = makeServiceStateValues(random, mBaseDb);\n final long row1 = mBaseDb.insert(TBL_SERVICE_STATE, null, values1);\n ContentValues values2 = makeServiceStateValues(random, mBaseDb);\n final long row2 = mBaseDb.insert(TBL_SERVICE_STATE, null, values2);\n\n // query tuple\n ServiceStateTable table = new ServiceStateTable();\n String sql = \"SELECT * FROM \" + TBL_SERVICE_STATE + \" WHERE \" + COL_ID + \" = ?\";\n String[] selectionArgs = { String.valueOf(row1) };\n List<ServiceStateTuple> tuples = table.rawQuery(mTestContext, sql, selectionArgs);\n\n // verify values\n assertNotNull(tuples);\n // klocwork\n if (tuples == null) return;\n assertFalse(tuples.isEmpty());\n assertEquals(1, tuples.size());\n ServiceStateTuple tuple = tuples.get(0);\n assertValuesTuple(row1, values1, tuple);\n }", "@Override\r\n public void query(String strSQL)\r\n {\r\n try\r\n {\r\n dbRecordset = dbCmdText.executeQuery(strSQL);\r\n status(\"epic wonder \"+ strSQL);\r\n }\r\n catch (Exception ex)\r\n {status(\"Query fail\");\r\n }\r\n }", "Query queryOn(Connection connection);", "public abstract List createNativeSQLQuery(String query);", "public void Query() {\n }", "public List sqlQuery(String sql,Object... params);", "protected void execSQL(String sql) throws Exception {\n\t\tPreparedStatement statement = null;\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(sql);\n\t\t\tstatement.execute();\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tPersistenceUtils.closeStatement(statement);\n\t\t}\n\n\t}", "@Override\n public synchronized ResultSet executeQuery(String sql)\n throws SQLException {\n\n // tinySQL only supports one result set at a time, so\n // don't let them get another one, just in case it's\n // hanging out.\n //\n tinySQLResultSet trs;\n result = null; \n statementString = sql;\n\n // create a new tinySQLResultSet with the tsResultSet\n // returned from connection.executetinySQL()\n //\n if ( debug ) {\n System.out.println(\"executeQuery conn is \" + connection.toString());\n }\n trs = new tinySQLResultSet(connection.executetinySQL(this), this);\n return trs; \n }", "public abstract String toSQL();", "@Override\n\tpublic ResultSet executeQuery(final String sql) throws SQLException {\n\n\t\tfinal String transformedSQL = transformSQL(sql);\n\n\t\tif (transformedSQL.length() > 0) {\n\n\t\t\tfinal Statement statement = new SimpleStatement(transformedSQL);\n\n\t\t\tif (getMaxRows() > 0)\n\t\t\t\tstatement.setFetchSize(getMaxRows());\n\n\t\t\tresultSet = session.execute(statement);\n\n\t\t\twarnings.add(resultSet);\n\n\t\t\treturn new CassandraResultSet(driverContext, resultSet);\n\t\t}\n\n\t\treturn null;\n\t}", "DBCursor execute();", "public void updateRawSQL(String sql) throws SQLException {\n // Directly inserting from the Raw\n mysql.update(sql);\n }", "public int execRawSqlByNative(String sql, Map<String, Object> params){\r\n\t\treturn execRawSqlPrivate(sql, true, params);\r\n\t}", "@Override\n public boolean execute(String sql) throws SQLException {\n\n // a result set object\n //\n tsResultSet r;\n\n // execute the query \n //\n r = connection.executetinySQL(this);\n\n // check for a null result set. If it wasn't null,\n // use it to create a tinySQLResultSet, and return whether or\n // not it is null (not null returns true).\n //\n if( r == null ) {\n result = null;\n } else {\n result = new tinySQLResultSet(r, this);\n }\n return (result != null);\n\n }", "public ResultSet executeQuery(String sql) throws SQLException {\n return currentPreparedStatement.executeQuery(sql);\n }", "protected void runSQL(String sql) throws SystemException {\n try {\n DataSource dataSource = mbMobilePhonePersistence.getDataSource();\n\n SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,\n sql, new int[0]);\n\n sqlUpdate.update();\n } catch (Exception e) {\n throw new SystemException(e);\n }\n }", "@Override\r\n\tpublic Sql sql(SqlManager sqlManager) {\n\t\treturn null;\r\n\r\n\t}", "String getSafeSql(String name);", "SelectQuery createSelectQuery();", "private void traceSqlRequest(String sql) {\n\t\tDatabaseInfo databaseInfo = oneAgentSdk.createDatabaseInfo(\"myCoolDatabase\", \"UnsupportedDatabaseVendor\", ChannelType.TCP_IP, \"theDbHost.localdomain:3434\");\n\t\tDatabaseRequestTracer databaseRequestTracer = oneAgentSdk.traceSqlDatabaseRequest(databaseInfo, sql);\n\t\tdatabaseRequestTracer.start();\n\t\ttry {\n\t\t\texecuteRequest(sql);\n\t\t} catch(Exception e) {\n\t\t\tdatabaseRequestTracer.error(e);\n\t\t\t// handle or re-throw exception!\n\t\t} finally {\n\t\t\tdatabaseRequestTracer.end();\n\t\t}\n\t}", "public int execRawSqlByNative(String sql, Object... params) {\r\n\t\treturn execRawSqlPrivate(sql, true, params);\r\n\t}", "protected int execSQLHelper(\n \t\tint databaseHandle,\n \t\tString sql,\n \t\tObject[] params)\n \t{\n \t\tif (!hasDatabase(databaseHandle))\n \t\t{\n \t\t\treturn MA_DB_ERROR;\n \t\t}\n \n \t\tMoDatabase database = getDatabase(databaseHandle);\n \n \t\ttry\n \t\t{\n \t\t\t//Log.i(\"@@@@@\", \"execSQLHelper query: \" + sql);\n \t\t\tMoCursor cursor = database.execQuery(sql, params);\n \t\t\tif (null != cursor)\n \t\t\t{\n \t\t\t\t++mCursorCounter;\n \t\t\t\taddCursor(mCursorCounter, cursor);\n \t\t\t\treturn mCursorCounter;\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\treturn MA_DB_OK;\n \t\t\t}\n \t\t}\n \t\tcatch (SQLiteException ex)\n \t\t{\n \t\t\tLog.e(\"@@@@@\", \"execSQLHelper exception: \" + ex);\n \t\t\tex.printStackTrace();\n \n \t\t\tlogStackTrace(ex);\n \t\t\treturn MA_DB_ERROR;\n \t\t}\n \t}", "public static void executeSqlQuery(String spOrQueryName) {\r\n\t\ttry {\r\n\t\t\topenCon();\r\n\t\t\ts = conn.createStatement();\r\n\t\t\ts.executeQuery(spOrQueryName);\r\n\t\t\tcloseCon();\r\n\t\r\n\t\t} catch (Exception e) {\r\n\t//\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "protected synchronized ResultSet pureSQLSelect(String query) {\n if(this.connect()) {\n try {\n this.statement = this.connection.createStatement();\n this.resultSet = this.statement.executeQuery(query);\n } catch(SQLException ex) {\n Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);\n this.resultSet = null;\n }\n }\n return this.resultSet;\n }", "public ResultSet executeQueryCmd(String sql) {\n\t\ttry {\n\t\t\treturn stmt.executeQuery(sql);\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} \n\t}", "public ResultSet executeQuery(String sql) throws Exception {\n\n\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t// stmt.close();\n\t\treturn rs;\n\t}", "private void sendQuery(String sqlQuery) {\n getRemoteConnection();\n try {\n statement = conn.createStatement();{\n // Execute a SELECT SQL statement.\n resultSet = statement.executeQuery(sqlQuery);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\tpublic void executeQuery(String query) {\n\t\t\t\n\t\t}", "SQLQuery createSQLQuery(final String query);", "public int maDBExecSQL(int databaseHandle, String sql)\n \t{\n \t\treturn execSQLHelper(databaseHandle, sql, null);\n \t}", "public ResultSet query (String query) throws java.sql.SQLException {\n /*\n if (query.indexOf('(') != -1)\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query.substring(0,query.indexOf('(')) + \"...\\\")\");\n else\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query.substring(0,20) + \"...\\\")\");\n */\n Logger.write(\"VERBOSE\", \"DB\", \"query(\\\"\" + query + \"\\\")\");\n \n try {\n Statement statement = dbConnection.createStatement();\n statement.setQueryTimeout(30);\n ResultSet r = statement.executeQuery(query);\n return r;\n } catch (java.sql.SQLException e) {\n Logger.write(\"RED\", \"DB\", \"Failed to query database: \" + e);\n throw e;\n }\n }", "SQLCall createSQLCall();", "public void runQuery(String query) throws SQLException {\n runQuery(query, \"default\");\n }", "public IEntityBacked query(SqlStatement sql) throws DataStoreException {\r\n \t\tlogger.warn(\"Naive implementation - considerable performance problems!\");\r\n \r\n \t\tConnection connection;\r\n \t\ttry {\r\n \t\t\tconnection = getConnection();\r\n \t\t\tStatement createStatement = connection.createStatement();\r\n \t\t\tResultSet executeQuery = createStatement.executeQuery(sql.getCommandText());\r\n \t\t\treturn new IEntityBacked(executeQuery, connection);\r\n \t\t} catch (SQLException e) {\r\n \t\t\tthrow new DataStoreException(e);\r\n \t\t}\r\n \t}", "public boolean query(String sql, boolean showResult) {\r\n \t\tStatement st = null;\r\n \t\tResultSet rs = null;\r\n \t\tboolean hasContent = false;\r\n \t\ttry {\r\n \t\t\tst = conn.createStatement();\r\n \t\t\tMsg.debugMsg(DB_REGULAR.class, \"executing query: \" + sql);\r\n \t\t\trs = st.executeQuery(sql);\r\n \t\t\thasContent = !rs.isBeforeFirst();\r\n \t\t\tif (showResult) {\r\n \t\t\t\tshowResultSetContent(rs);\r\n \t\t\t}\r\n \t\t\treturn hasContent;\r\n \t\t} catch (SQLException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t} finally {\r\n \t\t\ttry {\r\n \t\t\t\tst.close();\r\n \t\t\t} catch (SQLException e) {\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn showResult;\r\n \r\n \t}", "public SingleQuery query(String sql, Object... params) {\r\n PreparedStatement stmt = prepare(sql);\r\n\r\n try {\r\n if (params != null && params.length > 0) {\r\n for (int i = 0; i < params.length; i++) {\r\n stmt.setObject(i + 1, params[i]);\r\n }\r\n }\r\n } catch (SQLException e1) {\r\n throw new DbException(e1);\r\n }\r\n\r\n return runQuery(stmt);\r\n }", "protected void runSQL(String sql) {\n\t\ttry {\n\t\t\tDataSource dataSource = monthlyTradingPersistence.getDataSource();\n\n\t\t\tDB db = DBManagerUtil.getDB();\n\n\t\t\tsql = db.buildSQL(sql);\n\t\t\tsql = PortalUtil.transformSQL(sql);\n\n\t\t\tSqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,\n\t\t\t\t\tsql);\n\n\t\t\tsqlUpdate.update();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SystemException(e);\n\t\t}\n\t}", "protected String getSQLString() {\n \t\treturn queryTranslator.getSQLString();\n \t}", "private QueryResult performMappedQuery() throws VizException {\n\n if (database == null) {\n throw new VizException(\"Database not specified for query\");\n }\n if (query == null) {\n throw new VizException(\"Cannot execute null query\");\n }\n\n QlServerRequest request = new QlServerRequest(query);\n request.setDatabase(database);\n request.setType(QueryType.QUERY);\n request.setParamMap(paramMap);\n\n // set the mode so the handler knows what to do\n if (queryLanguage == null) {\n throw new VizException(\"Query language not specified\");\n } else if (queryLanguage.equals(QueryLanguage.HQL)) {\n request.setLang(QlServerRequest.QueryLanguage.HQL);\n } else {\n request.setLang(QlServerRequest.QueryLanguage.SQL);\n }\n\n // create request object\n QueryResult retVal = null;\n // get result\n AbstractResponseMessage response = (AbstractResponseMessage) ThriftClient\n .sendRequest(request);\n\n if (response instanceof ResponseMessageGeneric) {\n retVal = (QueryResult) ((ResponseMessageGeneric) response)\n .getContents();\n\n } else if (response instanceof ResponseMessageError) {\n ResponseMessageError rme = (ResponseMessageError) response;\n VizServerSideException innerException = new VizServerSideException(\n rme.toString());\n throw new VizServerSideException(rme.getErrorMsg(), innerException);\n }\n\n return retVal;\n }", "public boolean runSql(String sql) {\n\n try {\n\n Statement stmt = conn.createStatement();\n stmt.execute(sql);\n\n return true;\n\n } catch (SQLException e) {\n e.printStackTrace(System.out);\n return false;\n }\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "public ResultSet executeQuery(String request) {\n try {\r\n return st.executeQuery(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n }", "@Test(timeout = 4000)\n public void test137() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n String[] stringArray0 = new String[0];\n String string0 = SQLUtil.renderQuery(defaultDBTable0, stringArray0, stringArray0);\n assertEquals(\"SELECT * FROM null WHERE \", string0);\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 }", "SELECT createSELECT();", "public void executeSQL(String sql) {\n\t\tgetWritableDatabase().execSQL(sql);\n\t}", "public ResultSet ExecuteQuery(String statement) throws SQLException{\r\n\t\treturn _dbStatement.executeQuery(statement);\r\n\t}", "protected static List<List<?>> executeSql(IgniteEx node, String stmt, Object... args) {\n return node.context().query().querySqlFields(new SqlFieldsQuery(stmt).setArgs(args), true).getAll();\n }", "public ORM executeQuery(String query) {\n ResultSet rs = null;\n this.query =query;\n System.out.println(\"run: \" + this.query);\n //this.curId = 0;\n Statement statement;\n try {\n statement = this.conn.createStatement();\n rs = statement.executeQuery(this.query);\n //this.saveLog(0,\"\",query);\n } catch (SQLException e) {\n System.out.println( ColorCodes.ANSI_RED +\"ERROR in SQL: \" + this.query);\n // e.printStackTrace();\n }\n lastResultSet=rs;\n this.fields_values = \"\";\n return this;\n\n }", "private DbQuery() {}", "public ResultSet executeQuery() throws SQLException {\n return statement.executeQuery();\n }", "private void executeSelect(String query){\n try {\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n } catch (SQLException e) {\n throw new RuntimeException(e);\n } \n }", "public int execRawSqlByNative(String sql) {\r\n\t\treturn execRawSqlByNative(sql, new Object[0]);\r\n\t}", "public void executeSql(String sql) throws SQLException {\n executeSql(sql, true, AppConstants.DEFAULT_FETCH_SIZE, AppConstants.DEFAULT_FETCH_DIRN);\n }", "protected final void executeQuery() {\n\ttry {\n\t executeQuery(queryBox.getText());\n\t} catch(SQLException e) {\n\t e.printStackTrace();\n\t clearTable();\n\t JOptionPane.showMessageDialog(\n\t\tnull, e.getMessage(),\n\t\t\"Database Error\",\n\t\tJOptionPane.ERROR_MESSAGE);\n\t}\n }", "protected void runSQL(String sql) {\n\t\ttry {\n\t\t\tDataSource dataSource = wfms_Position_AuditPersistence.getDataSource();\n\n\t\t\tDB db = DBManagerUtil.getDB();\n\n\t\t\tsql = db.buildSQL(sql);\n\t\t\tsql = PortalUtil.transformSQL(sql);\n\n\t\t\tSqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,\n\t\t\t\t\tsql);\n\n\t\t\tsqlUpdate.update();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SystemException(e);\n\t\t}\n\t}", "@Override\n protected Cursor buildCursor() {\n return(db.getReadableDatabase().rawQuery(rawQuery, args));\n }", "protected void runSQL(String sql) {\n\t\ttry {\n\t\t\tDataSource dataSource = csclPollsChoicePersistence.getDataSource();\n\n\t\t\tDB db = DBManagerUtil.getDB();\n\n\t\t\tsql = db.buildSQL(sql);\n\t\t\tsql = PortalUtil.transformSQL(sql);\n\n\t\t\tSqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(\n\t\t\t\tdataSource, sql);\n\n\t\t\tsqlUpdate.update();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new SystemException(e);\n\t\t}\n\t}", "public abstract void run(Context context) throws SQLException;", "public static ResultSet executeQuery(String query) {\n\t\t\n\t\tString url = \"jdbc:postgresql://localhost:5432/postgres\";\n String user = \"postgres\";\n String password = \"admin\";\n \n ResultSet rs = null;\n\n try {\n \tConnection con = DriverManager.getConnection(url, user, password);\n \t\tStatement st = con.createStatement();\n \t\n rs = st.executeQuery(query);\n\n\t\t\t/*\n\t\t\t * if (rs.next()) { System.out.println(rs.getString(1)); }\n\t\t\t */\n \n \n\n } catch (SQLException ex) {\n \n System.out.println(\"Exception occured while running query\");\n ex.printStackTrace();\n }\n \n return rs;\n\t}", "R execute();", "DataSet sql(SQLContext context, String sql);", "public ResultSet query(String sQLQuery) throws SQLException {\n\t Statement stmt = c.createStatement();\n\t ResultSet ret = stmt.executeQuery(sQLQuery);\n\t stmt.close();\n\t return ret;\n\t}", "@Test\n\tpublic void db_query_scale() throws Exception\n\t{\n\t\tTemplate t = T(\"<?for row in db.query('select 0.5 as x from dual')?><?print row.x > 0?><?end for?>\");\n\n\t\tConnection db = getDatabaseConnection();\n\n\t\tif (db != null)\n\t\t\tcheckOutput(\"True\", t, V(\"db\", db));\n\t}", "public void exec(String sql) {\r\n try (Statement stmt = connection.createStatement()) {\r\n stmt.execute(sql);\r\n } catch (SQLException e) {\r\n throw new DbException(connectionString + \"\\nError executing \" + sql, e);\r\n }\r\n }", "public final Fixture sql(String sql) {\n return fixture().sql(sql);\n }", "public Object[] executeSQLQuery(final String sql) {\n\n long start = System.currentTimeMillis();\n List<?> queryResult = txTemplate\n .execute(new TransactionCallback<List<?>>() {\n @Override\n public List<?> doInTransaction(TransactionStatus status) {\n return getSession(false).createSQLQuery(sql).list();\n }\n });\n logger.debug(\"executeSQLQuery took: \"\n + (System.currentTimeMillis() - start) + \" ms\");\n return queryResult.toArray();\n }", "public void query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "public void runStatement(final QueriesConfig qryConfig, final String statement) throws DBMissingValueException {\n final var dataSource = getDataSource(qryConfig);\n Connection conn = null;\n PreparedStatement stmt = null;\n try {\n conn = dataSource.getConnection();\n stmt = conn.prepareStatement(statement);\n\n switch (new QueryModeWrapper(qryConfig.getMode()).getMode()) {\n case QUERY:\n case SINGLE_QUERY_SCRIPT:\n final ResultSet rs = stmt.executeQuery();\n final var metaData = rs.getMetaData();\n long rsCount = 0;\n try {\n var firstLoad = true;\n final var listeners = qryConfig.getListeners();\n\n while (rs.next()) {\n rsCount++;\n StringBuilder sbHdr = new StringBuilder();\n StringBuilder sbRec = new StringBuilder();\n\n for (int idx = 1; idx <= metaData.getColumnCount(); idx++) {\n sbHdr.append(sbHdr.length()>0?\",\":\"\").append(metaData.getColumnName(idx));\n sbRec.append(sbRec.length()>0?\",\":\"\").append(rs.getString(idx));\n }\n\n if (firstLoad) {\n final var rawHdr = sbHdr.toString();\n LOG.info(String.format(\"[%s] [HDR]: %s\", qryConfig.getDescription(), rawHdr));\n\n if (listeners.getOnHeader()!=null) {\n runCmd(qryConfig, listeners.getOnHeader(), qryConfig.getDescription(), statement, rawHdr);\n }\n }\n final var rawData = sbRec.toString();\n LOG.info(String.format(\"[%s] [REC]: %s\", qryConfig.getDescription(), rawData));\n\n if (listeners.getOnData()!=null) {\n runCmd(qryConfig, listeners.getOnData(), qryConfig.getDescription(), statement, rawData);\n }\n firstLoad = false;\n }\n }\n finally {\n LOG.info(String.format(\"[%s] %s rows\", qryConfig.getDescription(), rsCount));\n try {rs.close();} catch (Exception e) {}\n }\n break;\n default:\n stmt.execute();\n try {LOG.info(String.format(\"[%s] %s rows affected\", qryConfig.getDescription(), stmt.getUpdateCount()));}\n catch(Exception e) {}\n break;\n }\n } catch (SQLException | QueryModeException e) {\n throw new RuntimeException(e);\n } finally {\n try {stmt.close();} catch (Exception e) {}\n try {conn.close();} catch (Exception e) {}\n }\n }", "@Test\n public void testToStringWithSQL() throws SQLException {\n try (PreparedStatement stmt = this.proxy\n .prepareStatement(\"SELECT * FROM country WHERE lang = ? OR callingcode = ?\")) {\n stmt.setString(1, \"de\");\n stmt.setInt(2, 42);\n String sql = stmt.toString();\n assertEquals(\"SELECT * FROM country WHERE lang = 'de' OR callingcode = 42\", sql);\n LOG.info(\"sql = \\\"{}\\\"\", sql);\n }\n }" ]
[ "0.7664351", "0.7133613", "0.6993892", "0.6612786", "0.6584662", "0.6568079", "0.6442497", "0.6408445", "0.6383683", "0.6347516", "0.6319213", "0.63080865", "0.6301832", "0.6169239", "0.6165674", "0.6156623", "0.6040721", "0.59653515", "0.5965289", "0.5936366", "0.5918335", "0.59128517", "0.59078115", "0.5906991", "0.5903508", "0.58875394", "0.58862936", "0.5880458", "0.5876638", "0.5857552", "0.58542943", "0.5850138", "0.5828299", "0.58021307", "0.58008194", "0.57979774", "0.5788543", "0.578036", "0.5776374", "0.5771946", "0.5771464", "0.57710516", "0.57692456", "0.57673085", "0.574998", "0.5749619", "0.57376134", "0.5727568", "0.5707006", "0.570594", "0.5701756", "0.56942624", "0.569149", "0.5690691", "0.5685763", "0.5672269", "0.56693727", "0.5667825", "0.5661422", "0.5656518", "0.5650667", "0.5638201", "0.5630732", "0.56247413", "0.5621943", "0.5616141", "0.5598308", "0.5596461", "0.55919033", "0.5580142", "0.5578802", "0.5577826", "0.5575657", "0.55655336", "0.55628294", "0.5558696", "0.5553233", "0.554283", "0.55379784", "0.55366", "0.5532939", "0.55254114", "0.55064136", "0.5503512", "0.5499846", "0.5498209", "0.5494219", "0.5491437", "0.54872084", "0.5486469", "0.5486445", "0.5484273", "0.54833317", "0.5480231", "0.5471478", "0.54683316", "0.546551", "0.5458891", "0.5445198", "0.54347163" ]
0.639326
8
TODO Autogenerated method stub
@Override public void onResponseReceived(Request request, Response response) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onError(Request request, Throwable exception) { }
{ "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
Construct a new RowStreamer.
public RowStreamer(Iterable<KijiRowData> scanner, KijiTable table, int numRows, List<KijiColumnName> columns, KijiSchemaTable schemaTable) { mScanner = scanner; mTable = table; mNumRows = numRows; mColsRequested = columns; mSchemaTable = schemaTable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Row createRow();", "public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}", "Rows createRows();", "Row<T> createRow(final T element);", "@Override\n public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv) {\n if (useExtendField) {\n metadataKeys = Arrays.stream(ReadableMetadata.values()).map(x -> x.key).collect(Collectors.toList());\n applyReadableMetadata(metadataKeys, generateProducedDataType());\n producedTypeInfo = (TypeInformation<Row>) TypeConversions.fromDataTypeToLegacyInfo(producedDataType);\n }\n\n final PulsarRowDeserializationSchema.ReadableRowMetadataConverter[] metadataConverters = metadataKeys.stream()\n .map(k ->\n Stream.of(ReadableMetadata.values())\n .filter(rm -> rm.key.equals(k))\n .findFirst()\n .orElseThrow(IllegalStateException::new))\n .map(m -> m.converter)\n .toArray(PulsarRowDeserializationSchema.ReadableRowMetadataConverter[]::new);\n\n PulsarRowDeserializationSchema pulsarDeserializationSchema =\n new PulsarRowDeserializationSchema(deserializationSchema, metadataConverters.length > 0, metadataConverters, producedTypeInfo);\n //PulsarDeserializationSchema<Row> deserializer = getDeserializationSchema();\n FlinkPulsarSource<Row> source = new FlinkPulsarSource<>(serviceUrl, adminUrl, pulsarDeserializationSchema, properties);\n //FlinkPulsarRowSource source = new FlinkPulsarRowSource(serviceUrl, adminUrl, properties, deserializer);\n switch (startupMode) {\n case EARLIEST:\n source.setStartFromEarliest();\n break;\n case LATEST:\n source.setStartFromLatest();\n break;\n case SPECIFIC_OFFSETS:\n source.setStartFromSpecificOffsets(specificStartupOffsets);\n break;\n case EXTERNAL_SUBSCRIPTION:\n MessageId subscriptionPosition = MessageId.latest;\n if (CONNECTOR_STARTUP_MODE_VALUE_EARLIEST.equals(properties.get(CONNECTOR_EXTERNAL_SUB_DEFAULT_OFFSET))) {\n subscriptionPosition = MessageId.earliest;\n }\n source.setStartFromSubscription(externalSubscriptionName, subscriptionPosition);\n }\n\n return execEnv.addSource(source).name(explainSource());\n }", "private void initRowSource() {\n\t\tRowStructure rs = new RowStructure(6);\n\t\trs.add(\"EMP_ID\", StringType.get());\n\t\trs.add(\"EMP_FULLNAME\", StringType.get());\n\t\trs.add(\"Work Date\", StringType.get());\n\t\trs.add(\"Start Time\t\t\", StringType.get());\n\t\trs.add(\"End Time\t\t\", StringType.get());\n\t\trs.add(\"Time Worked (mins)\", StringType.get());\n\t\trowDefinition = new RowDefinition(-1, rs);\n\t}", "public WorkbookIterator createRowIterator(WorkbookBindingProvider provider) {\n return new RowIterator(count, increment, stop, skip, provider);\n }", "public static <T extends Row> DataSet<T> actionToNewDS(Stream<T> rowStream) {\n Objects.requireNonNull(rowStream);\n return new DataSet<>(rowStream.collect(Collectors.toList()));\n }", "public Row(BaseTable table) {\n this.table = table;\n }", "private Row() {\n }", "RowValues createRowValues();", "public Row(int width) {\n data = new Object[width];\n }", "public ColumnRow ()\r\n {\r\n super();\r\n }", "protected abstract WebMarkupContainer createChannelRow();", "private Rows(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public RowDataCursor(MysqlIO ioChannel, ServerPreparedStatement creatingStatement, Field[] metadata) {\n/* 112 */ this.currentPositionInEntireResult = -1;\n/* 113 */ this.metadata = metadata;\n/* 114 */ this.mysql = ioChannel;\n/* 115 */ this.statementIdOnServer = creatingStatement.getServerStatementId();\n/* 116 */ this.prepStmt = creatingStatement;\n/* 117 */ this.useBufferRowExplicit = MysqlIO.useBufferRowExplicit(this.metadata);\n/* */ }", "private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Row(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public SingleRowCursor(Row row) {\n this.row = row;\n }", "StreamTable()\n {\n }", "@Override\n\tpublic void visit(RowConstructor arg0) {\n\t\t\n\t}", "@Override\n public Iterator<Row> iterator() {\n\n return new Iterator<Row>() {\n\n private final Row row = new Row(TableSlice.this);\n\n @Override\n public Row next() {\n return row.next();\n }\n\n @Override\n public boolean hasNext() {\n return row.hasNext();\n }\n };\n }", "public abstract void emitRawRow();", "public static org.apache.gora.cascading.test.storage.TestRow.Builder newBuilder(org.apache.gora.cascading.test.storage.TestRow other) {\n return new org.apache.gora.cascading.test.storage.TestRow.Builder(other);\n }", "public interface IRowProvider<T> {\n\t\n\t/**\n\t * Create a new Row for the element specified.\n\t */\n\tRow<T> createRow(final T element);\n\n}", "public final RowSetterIfc getRow() {\n return new Row(this);\n }", "public FennelPipeIterator(FennelTupleReader tupleReader)\n {\n super(tupleReader);\n \n // Create an empty byteBuffer which will cause us to fetch new rows the\n // first time our consumer tries to fetch. TODO: Add a new state 'have\n // not yet checked whether we have more data'.\n bufferAsArray = new byte[0];\n byteBuffer = ByteBuffer.wrap(bufferAsArray);\n byteBuffer.clear();\n byteBuffer.limit(0);\n }", "public Row(int index) {\n this.index=index;\n row = new ArrayList<>(8);\n }", "private RowData() {\n initFields();\n }", "public OtlSourcesRViewRowImpl() {\r\n }", "public Row(TableBase table, Object[] data) {\n this.table = table;\n this.rowData = data;\n }", "public abstract void toProto(SOURCE row, Message.Builder builder);", "public SqlCharStream(Reader r) {\n input = r;\n }", "public Table withRows(List<List<Object>> rows) {\n this.rows = rows;\n return this;\n }", "public Row getRow() {\n\treturn new Row(rowIndex); \n }", "private List<DataRow> createRowList(List<gherkin.formatter.model.Row> rows) {\n List<DataRow> exampleRowList = new ArrayList<>(rows.size());\n\n for (Row row : rows) {\n exampleRowList.add(convertDataRow(row, row.getCells()));\n }\n\n return exampleRowList;\n }", "@Override\n public Participant apply(Row row) {\n return new Participant(row.getString(0), row.getString(1), row.getString(2), row.getString(3), row.getString(4),\n row.getBoolean(5));\n }", "public static org.apache.gora.cascading.test.storage.TestRow.Builder newBuilder() {\n return new org.apache.gora.cascading.test.storage.TestRow.Builder();\n }", "@Override\n public Object[] createRow() {\n ObjectDescriptor.TypeObject newTypeObjectInstance = ObjectDescriptor.newInstance();\n List<PropertyDescriptor> descriptors = typeObjectDescriptor.getObjectProperties();\n InitValuesFiller.fill(newTypeObjectInstance, descriptors);\n\n return new Object[]{ StringUtils.EMPTY, newTypeObjectInstance };\n }", "public ActiveRowMapper() {\n\t}", "RowValue createRowValue();", "public abstract void fromProto(Message message, TARGET row);", "private Row.SimpleBuilder rowBuilder()\n {\n if (rowBuilder == null)\n {\n rowBuilder = updateBuilder.row();\n if (noRowMarker)\n rowBuilder.noPrimaryKeyLivenessInfo();\n }\n\n return rowBuilder;\n }", "public static org.apache.gora.cascading.test.storage.TestRow.Builder newBuilder(org.apache.gora.cascading.test.storage.TestRow.Builder other) {\n return new org.apache.gora.cascading.test.storage.TestRow.Builder(other);\n }", "public void addRow () {\n CSVRow row = CSVRow.createEmptyLine(nbOfColumns, this);\n addRow(row);\n }", "public static Row createRow(String[] rowAsArray, int lineCount) {\n\n\t\t//Row is initialized to null so that we don't get an error if ININC is blank\n\t\t//Row object requires ININC number in constructor\n\t\tRow outputRow = new Row(lineCount);\n\n\t\t//First check if ININC column is empty for current row data\n\t\tif(rowAsArray[11].isEmpty()) {\n\t\t\tGUI.sendError(\"Error: ININC# does not exist for row \"+lineCount+\".\");\n\t\t}\n\t\telse {\n\t\t\t//If not, try to parse what is there\n\t\t\t//It should be a long integer\n\t\t\ttry {\n\t\t\t\toutputRow.setIninc(Long.parseLong(rowAsArray[11]));\n\t\t\t}\n\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t//Otherwise we get an error and this row is set to invalid\n\t\t\t\t//A message is printed informing what the error is and the line in which the error occurred\n\t\t\t\tGUI.sendError(\"Error: ININC# is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\t\toutputRow.setValid(false);\n\t\t\t}\n\t\t}\n\n\n\t\t//try/catch for INPRTY\n\t\t//Any numerical values have to be parsed, which allows for an exception if the String is not numerical\n\t\t//The try/catch statements handle the NumberFormatException that could potentially be thrown\n\t\ttry {\n\t\t\toutputRow.setPriority((int) Double.parseDouble(rowAsArray[0]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t//If there is not a valid number where there should be, print an error and set this row to invalid\n\t\t\t//Data in this row must be corrected in GUI to make it valid again\n\t\t\tGUI.sendError(\"Error: INPRTY is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//address block\n\t\t//error handling tbd\n\t\toutputRow.setAddress(rowAsArray[1].trim());\n\n\t\tif(rowAsArray[2] != null) {\n\t\t\toutputRow.setCross(rowAsArray[2].trim());\n\t\t}\n\t\telse {\n\t\t\toutputRow.setCross(\"\");\n\t\t}\n\t\t//end address block\n\n\n\t\t//Date block\n\t\t//DateTimeFormatter is created to specify format that we expect the date/time to be in\n\t\t//This is consistent with what is usually found in the Excel/CSV\n\t\t//If the date/time read from CSV is not able to be read by this formatter, an error will be thrown\n\t\t//And this line of data will not be included\n\t\tDateTimeFormatter dateAndTimeFormatter = DateTimeFormatter.ofPattern(\"M/d/yyyy H:mm[:ss]\");\n\t\ttry {\n\t\t\toutputRow.setDispatch(LocalDateTime.parse(rowAsArray[3].trim(), dateAndTimeFormatter));\n\t\t\toutputRow.setArrive(LocalDateTime.parse(rowAsArray[4].trim(), dateAndTimeFormatter));\n\t\t}\n\t\tcatch (DateTimeParseException e) {\n\t\t\tGUI.sendError(\"Error: could not parse dispatch and/or arrive time for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\t//See above comments about parsing numbers\n\t\t//This block attempts to parse the RESPONSE variable as a double\n\t\ttry {\n\t\t\toutputRow.setResponseDouble(Double.parseDouble(rowAsArray[5]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: RESPONSE is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//If parsing was successful, we can also check that the number parsed is still valid\n\t\t//Response time logically must be at least zero, so any negative response time results in a warning\n\t\t//Warning (as opposed to error) means the row will still be valid, but there is possibly something wrong with the data\n\t\tif(outputRow.getResponseDouble() < 0) {\n\t\t\tGUI.sendInfo(\"Warning: RESPONSE is invalid (less than zero) for row \"+lineCount+\".\");\n\t\t\tGUI.sendInfo(\"This will be overwritten by a manually calculated response time, but still worth noting.\");\n\t\t}\n\n\n\t\toutputRow.setStaffing(rowAsArray[6].trim());\n\t\t//Quick validation check to ensure Staffing is either Volunteer or Career Staffing\n\t\tif(outputRow.getStaffing().toLowerCase().compareTo(\"volunteer\") != 0 && outputRow.getStaffing().toLowerCase().compareTo(\"career staff\") != 0) {\n\t\t\tGUI.sendError(\"Error: Staffing is unexpected value (neither Volunteer nor Career Staffing) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\t//The following code ensures that the day of week is a valid day of week\n\t\t//Since is this isn't an entirely essential variable, a warning is thrown if day of week is invalid\n\t\t//Again, the data will still be included, but it does suggest there is an issue with it\n\t\toutputRow.setDay(rowAsArray[7].trim());\n\t\tswitch (outputRow.getDay().toLowerCase()) {\n\t\tcase \"monday\":\n\t\t\tbreak;\n\t\tcase \"tuesday\":\n\t\t\tbreak;\n\t\tcase \"wednesday\":\n\t\t\tbreak;\n\t\tcase \"thursday\":\n\t\t\tbreak;\n\t\tcase \"friday\":\n\t\t\tbreak;\n\t\tcase \"saturday\":\n\t\t\tbreak;\n\t\tcase \"sunday\":\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tGUI.sendError(\"Error: Day of Week is invalid for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t\tbreak;\n\t\t}\n\n\n\t\t//SSA validation moved to row class\n\t\toutputRow.setSsa(rowAsArray[8].trim());\n\n\t\t//Try/catch for district number to ensure data is numerical and avoid error causing crash\n\t\ttry {\n\t\t\toutputRow.setDistrict((int) Double.parseDouble(rowAsArray[9]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: District number is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//moved district number validation to row class\n\n\n\t\t//not sure about validation for these\n\t\toutputRow.setInori(rowAsArray[10].trim());\n\t\toutputRow.setInunit(rowAsArray[12].trim());\n\t\toutputRow.setInbdg(rowAsArray[13].trim());\n\t\toutputRow.setInitype(rowAsArray[14].trim());\n\n\n\t\t//INSECT variable is numerical so try/catch to avoid errors\n\t\ttry {\n\t\t\toutputRow.setInsect((int) Double.parseDouble(rowAsArray[15]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: INSECT is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//see above comments on numerical variables\n\t\ttry {\n\t\t\toutputRow.setCadinc(Long.parseLong(rowAsArray[16]));\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tGUI.sendError(\"Error: CAD_INC is invalid (not a number) for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\n\t\t//Service_type should be either FIRE or EMS\n\t\t//We can check this easily, if it is neither than throw an error and skip this row of data\n\t\t//Subject to change \n\t\tif(rowAsArray[17].compareTo(\"FIRE\") == 0) {\n\t\t\toutputRow.setServiceType(ServiceType.FIRE);\n\t\t}\n\t\telse if (rowAsArray[17].compareTo(\"EMS\") == 0) {\n\t\t\toutputRow.setServiceType(ServiceType.EMS);\n\t\t}\n\t\telse {\n\t\t\tGUI.sendError(\"Error: SERVICE_TYPE is invalid for row \"+lineCount+\".\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\n\t\toutputRow.setFua(rowAsArray[18].trim());\n\n\n\t\tif(outputRow.getDispatchTime() != null && outputRow.getArriveTime() != null) {\n\t\t\t//for calculating response time\n\t\t\t//first calculates total number of minutes between dispatch and arrive\n\t\t\tint responseTimeMinutesValue = (int) ChronoUnit.MINUTES.between(outputRow.getDispatchTime(), outputRow.getArriveTime());\n\t\t\tint responseTimeHoursValue = 0;\n\t\t\t//If minutes is 60 or greater, than response time is over an hour, so we have to account for that\n\t\t\twhile(responseTimeMinutesValue > 59) {\n\t\t\t\tresponseTimeMinutesValue -= 60;\n\t\t\t\tresponseTimeHoursValue++;\n\t\t\t}\n\t\t\t//Once hours and minutes are calculated, move on to seconds\n\t\t\tint responseTimeSecondsValue = (int) ChronoUnit.SECONDS.between(outputRow.getDispatchTime(), outputRow.getArriveTime());\n\t\t\t//Here we check to ensure that DISPATCH comes before ARRIVE, otherwise throw an error since we have a time traveler on our hands\n\t\t\tif(responseTimeSecondsValue < 0) {\n\t\t\t\tGUI.sendError(\"Error: Response time less than zero (calculated from Dispatch and Arrive) for row \"+lineCount+\".\");\t\n\t\t\t\toutputRow.setValid(false);\n\t\t\t}\n\t\t\t//Assuming that check passes, we can finalize the value of the seconds variable by calculating it modulo 60\n\t\t\tresponseTimeSecondsValue = responseTimeSecondsValue%60;\n\n\t\t\t//now make sure hours is 23 or less\n\t\t\tif(responseTimeHoursValue > 23) {\n\t\t\t\tresponseTimeHoursValue = 23;\n\t\t\t\tGUI.sendError(\"Error: Response time exceeds 1 day for row \"+lineCount+\". Response time value in table may not be accurate; check Dispatch and Arrival times.\");\n\t\t\t}\n\t\t\t//Then use the calculated variables for hours, minutes, and seconds to create the responseTime variable\n\t\t\tLocalTime responseTime = LocalTime.of(responseTimeHoursValue, responseTimeMinutesValue, responseTimeSecondsValue);\n\t\t\toutputRow.setResponseTime(responseTime);\n\t\t}\n\t\telse {\n\t\t\tGUI.sendError(\"Error: Dispatch and/or Response time are null for row \"+lineCount+\", so response time could not be calculated.\");\n\t\t\toutputRow.setValid(false);\n\t\t}\n\t\t//Now that all of the data has been imported into the Row object, return the Row object so it can be added to ArrayList\n\t\treturn outputRow;\n\t}", "DataFrameRow<R,C> row(R rowKey);", "DataRow rowFromFlatRow(DataRow flatRow) {\n DataRow row = new DataRow(rowCapacity);\n\n // extract subset of flat row columns, recasting to the target keys\n for (ColumnDescriptor column : columns) {\n row.put(column.getName(), flatRow.get(column.getDataRowKey()));\n }\n\n // since JDBC row reader won't inject JOINED entity name, we have to detect it here...\n ClassDescriptor descriptor = resolver.getDescriptor();\n ObjEntity entity = descriptor.getEntityInheritanceTree().entityMatchingRow(row);\n row.setEntityName(entity == null ? null : entity.getName());\n return row;\n }", "@Test\n public void testConstructor(){\n new RowGen(ROW_INDEX, spaces);\n }", "public Sql(Reader reader) throws IOException {\n \n this();\n append(reader);\n }", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public TableRow() {\n\t\tthis.cells = new ArrayList<TableCell>();\n\t}", "public LazyHBaseRow(LazySimpleStructObjectInspector oi) {\n super(oi);\n }", "protected HpccRow() {\n this.schema = null;\n this.fieldList = null;\n this.fieldMap = null;\n }", "public GamRowsVORowImpl() {\n }", "void buildRowComposite(int rowNumber)\n {\n RowComposite rowComposite = new RowComposite(rowNumber);\n compositeRowStack.push(rowComposite);\n }", "public AllByRowsIterator() {\n\t\t\tsuper();\n\t\t\tlastIndex = numCols * numRows;\n\t\t}", "private void createStressTestRowIncomingTable(int payloadColumns) {\n Column[] defaultColumns = getDefaultStressTestRowColumns();\n Table table = new Table(STRESS_TEST_ROW_INCOMING, defaultColumns);\n List<Column> payloads = getPayloadColumns(payloadColumns);\n\n table.addColumns(payloads);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "Row(String name) {\r\n\t\tthis.name = name;\r\n\t\t//this.price = price;\r\n\t\t//this.type = type;\r\n\t}", "private SlotIterator createIterator(int rows, int columns) {\n InventoryManager manager = mock(InventoryManager.class);\n\n SmartInventory inv = mock(SmartInventory.class);\n when(inv.getRows()).thenReturn(rows);\n when(inv.getColumns()).thenReturn(columns);\n when(inv.getManager()).thenReturn(manager);\n\n InventoryContents contents = new InventoryContents.Impl(inv, null);\n return contents.newIterator(SlotIterator.Type.HORIZONTAL, 0, 0);\n }", "public Builder addRows(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRowsIsMutable();\n rows_.add(value);\n onChanged();\n return this;\n }", "public void initialize() {\n resultsTable.setItems(null);\n resultsTable.setRowFactory(tv -> {\n TableRow<SuperAgentAppRecord> row = new TableRow<>();\n // Open window if row double-clicked\n row.setOnMouseClicked(event -> {\n if (event.getClickCount() == 2 && (!row.isEmpty())) {\n SuperAgentAppRecord rowData = row.getItem();\n try {\n // Open selected row in new window\n displayInspectApplications(rowData);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n return row;\n });\n }", "<R> Streamlet<R> newSource(SerializableSupplier<R> supplier);", "private RowSetAdapter(RowSet rowset) throws java.sql.SQLException{\n if (rowset == null) {\n throw new NullPointerException(\"rowset cannot be null\");\n }\n this.rowset = rowset;\n this.metaData = rowset.getMetaData();\n }", "T getRowData(int rowNumber);", "protected void addRowAttributes(TableRowBuilder row) {\n }", "private Row nextRow() {\n\t\tRow row = (nextRow == null) ? getStarts().next() : nextRow;\n\n\t\ttry {\n\t\t\tnextRow = getStarts().next();\n\t\t} catch (NoSuchElementException e) {\n\t\t\tnextRow = null;\n\t\t}\n\n\t\treturn row;\n\t}", "TableRow componentATableRow(){\n\n TableRow componentATableRow = new TableRow(this.context);\n View view = this.headerObjects.get(0);\n componentATableRow.addView(view);\n\n return componentATableRow;\n }", "protected abstract E newRow();", "public static ArrayList<Row> createRows(FSCompareObject fsco,int countRows, ArrayList<ObservableList<Node>> columns) {\n\t\tsetupRows(fsco, columns);\t\n\t\tfor (int i=0; i<countRows; i++) {\n\t\t\trows.add(createRow());\n\t\t}\n\t\treturn rows;\n\t}", "@Override\n\t\t\tpublic Row map(String value) throws Exception {\n\t\t\t\tString[] str = value.split(\",\");\n\t\t\t\tRow row = new Row(4);\n\t\t\t\tfor(int i=0 ;i<str.length;i++){\n\t\t\t\t\tswitch(i){\n\t\t\t\t\tcase 0:{\n\t\t\t\t\t\tString time = str[i].substring(1,str[i].length()-1);\n\t\t\t\t\t\tTimestamp tms = Timestamp.valueOf(time);\n\t\t\t\t\t\trow.setField(i,tms);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 1:{\n\t\t\t\t\t\tString tmp = str[i].substring(1,str[i].length()-1);;\n\t\t\t\t\t\trow.setField(i,Integer.valueOf(tmp));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase 2:\n\t\t\t\t\tcase 3:{\n\t\t\t\t\t\tString time = str[i].substring(1,str[i].length()-1);\n\t\t\t\t\t\trow.setField(i,time);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn row;\n\t\t\t}", "public ConcatReader(){\r\n\t\t// Empty Constructor\r\n\t}", "private Row(byte[] data)\n\t\t{\n\t\t\tArrayList<Byte> al = new ArrayList<Byte>(data.length);\n\t\t\tfor(byte b: data)\n\t\t\t\tal.add(b);\n\t\t\tObservableList<Byte> ol = FXCollections.observableArrayList(al);\n\t\t\tsetColumns(new SimpleListProperty<Byte>(ol));\n\t\t}", "public interface CSVDataRow\n{\n String toLine();\n}", "public Row[] getRows() {return rows;}", "private void generateRows() {\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\trows[i]=new Row(squares[i]);\n\t\t}\n\t}", "public GenericRowFileRecordReader getRecordReaderForRange(int startRowId, int endRowId) {\n return new GenericRowFileRecordReader(_fileReader, startRowId, endRowId, _sortedRowIds);\n }", "private Reader<RowData> wrapReader(Reader<RowData> superReader, FileSourceSplit split) {\n final ProjectedRowData producedRowData = ProjectedRowData.from(this.projections);\n\n return RecordMapperWrapperRecordIterator.wrapReader(\n superReader,\n physicalRowData -> {\n producedRowData.replaceRow(physicalRowData);\n return producedRowData;\n });\n }", "public Row call(String line) throws Exception {\n\t\t\tList<String> tags = new ArrayList<String>();\n\t\t\tPattern pattern;\n\t\t\tMatcher matcher;\n\t\t\t\n\t\t\t//获取年龄\n\t\t\tpattern = Pattern.compile(\"<age>(.*?)</age>\");\n\t\t\tmatcher = pattern.matcher(line);\n\t\t\tif(matcher.find()){\n\t\t\t\ttags.add(matcher.group(1));\n\t\t\t}\n\t\t\t\n\t\t\t//获取性别\n\t\t\tpattern = Pattern.compile(\"<sex>(.*?)</sex>\");\n\t\t\tmatcher = pattern.matcher(line);\n\t\t\tif(matcher.find()){\n\t\t\t\ttags.add(matcher.group(1));\n\t\t\t}\n\t\t\t\n\t\t\t//获取地区\n\t\t\tpattern = Pattern.compile(\"<area>(.*?)</area>\");\n\t\t\tmatcher = pattern.matcher(line);\n\t\t\tif(matcher.find()){\n\t\t\t\ttags.add(matcher.group(1));\n\t\t\t}\n\t\t\t\n\t\t\t//获取加入的群组\n\t\t\tpattern = Pattern.compile(\"<group>(.*?)</group>\");\n\t\t\tmatcher = pattern.matcher(line);\n\t\t\tif(matcher.find()){\n\t\t\t\tString group = matcher.group(1);\n\t\t\t\tString[] groupTags = group.split(\",\");\n\t\t\t\tfor(String tag: groupTags){\n\t\t\t\t\ttags.add(tag);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//获取收藏\n\t\t\tpattern = Pattern.compile(\"<collection>(.*?)</collection>\");\n\t\t\tmatcher = pattern.matcher(line);\n\t\t\tif(matcher.find()){\n\t\t\t\tString collects = matcher.group(1);\n\t\t\t\tString[] collectTags = collects.split(\",\");\n\t\t\t\tfor(String tag: collectTags){\n\t\t\t\t\ttags.add(tag);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn RowFactory.create(tags);\n\t\t}", "interface RowFormatter {\n char[] NULL_STRING = new char[]{'\\\\', 'N'};\n char[] EMPTY_STRING = new char[0];\n\n String format(char[][] row);\n\n String getFormat();\n\n static RowFormatter newInstance(String format, ResultSetSchema rsSchema) throws SQLException {\n if (format.equals(\"csv\")) return new CSVRowFormatter(rsSchema.getColumnTypes().size());\n if (format.equals(\"tsv\")) return new TSVRowFormatter(rsSchema.getColumnTypes().size());\n if (format.equals(\"json\")) return new JSONRowFormatter(rsSchema);\n throw new IllegalArgumentException(\"\\\"\" + format + \"\\\" is not supported. Use csv, tsv or json.\");\n }\n}", "DataFrameRows<R,C> rows();", "public Builder clearRow() {\n if (rowBuilder_ == null) {\n row_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n rowBuilder_.clear();\n }\n return this;\n }", "public Builder clearRow() {\n if (rowBuilder_ == null) {\n row_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n rowBuilder_.clear();\n }\n return this;\n }", "public Builder clearRow() {\n if (rowBuilder_ == null) {\n row_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n rowBuilder_.clear();\n }\n return this;\n }", "public Builder clearRow() {\n if (rowBuilder_ == null) {\n row_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n rowBuilder_.clear();\n }\n return this;\n }", "public Builder clearRow() {\n if (rowBuilder_ == null) {\n row_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n rowBuilder_.clear();\n }\n return this;\n }", "public Builder addRowsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n ensureRowsIsMutable();\n rows_.add(value);\n onChanged();\n return this;\n }", "private Builder(org.apache.gora.cascading.test.storage.TestRow.Builder other) {\n super(other);\n }", "protected abstract void buildRowImpl(T rowValue, int absRowIndex);", "private AppendRowsTask appendRow(\n final int sequence,\n final List<String> row) {\n final ApplicationSettings settings = ApplicationSettings.getInstance(Sms2GSheetService.this);\n String accountName = settings.getAccountName();\n if ((accountName == null) || (accountName.isEmpty())) {\n return null;\n }\n\n // Initialize credentials and service object.\n GoogleAccountCredential credential = GoogleAccountCredential.usingOAuth2(Sms2GSheetService.this, Arrays.asList(Helper.SCOPES))\n .setBackOff(new ExponentialBackOff());\n\n credential.setSelectedAccountName(accountName);\n\n return new AppendRowsTask(credential, new GoogleSheetsAppendResponseReceiver() {\n @Override\n public AppendValuesResponse append_rows(Sheets sheets) throws IOException {\n String range;\n range = Helper.SHEET_RANGE;\n ValueRange values = new ValueRange();\n values.setMajorDimension(\"ROWS\");\n List<List<Object>> vls;\n vls = new ArrayList<>();\n ArrayList<Object> ro = new ArrayList<>();\n if (row != null) {\n for (String rr : row) {\n ro.add(rr);\n }\n }\n vls.add(ro);\n values.setValues(vls);\n Sheets.Spreadsheets.Values.Append r = sheets.spreadsheets().values().append(\n settings.getSpreadsheetId(), range, values);\n r.setValueInputOption(\"RAW\");\n AppendValuesResponse response = r.execute();\n Log.i(TAG, response.toString());\n return response;\n }\n\n @Override\n public void onStart() {\n }\n\n @Override\n public void onStop() {\n }\n\n @Override\n public void onAppend(AppendValuesResponse response) {\n if (response == null) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_response));\n Log.e(TAG, getString(R.string.err_no_response));\n } else {\n Log.i(TAG, getString(R.string.msg_response) + response.toString());\n }\n if (mSMSRows != null) {\n if (!mSMSRows.containsKey(sequence)) {\n Log.e(TAG, \"Invalid sequence\");\n } else {\n mSMSRows.remove(sequence);\n }\n }\n }\n\n @Override\n public void onCancel(Exception error) {\n if (error instanceof GooglePlayServicesAvailabilityIOException) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_playservices));\n Log.e(TAG, getString(R.string.err_no_playservices));\n } else if (error instanceof UserRecoverableAuthIOException) {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_no_credentials));\n Log.e(TAG, getString(R.string.err_no_credentials));\n } else {\n Helper.showNotificationError(Sms2GSheetService.this, getString(R.string.err_message) + error.getMessage());\n Log.e(TAG, getString(R.string.err_message) + error.getMessage());\n }\n }\n });\n }", "public HpccRow(Object[] rowFields, StructType rowSchema) {\n this.schema = rowSchema;\n this.fieldList = new Object[rowFields.length];\n this.fieldMap = new HashMap<String,Integer>(2*rowFields.length);\n String[] fieldNames = rowSchema.fieldNames();\n for (int i=0; i<rowFields.length; i++) {\n this.fieldList[i] = rowFields[i];\n fieldMap.put(fieldNames[i], new Integer(i));\n }\n }", "public Builder clearRow() {\n if (rowBuilder_ == null) {\n row_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n rowBuilder_.clear();\n }\n return this;\n }", "TableRow componentBTableRow(){\n\n TableRow componentBTableRow = new TableRow(this.context);\n int headerFieldCount = this.headerObjects.size();\n\n TableRow.LayoutParams params = new TableRow.LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.MATCH_PARENT);\n// params.setMargins(-1, 0, 0, 0);\n\n for(int x=0; x<(headerFieldCount-1); x++){\n View view = headerObjects.get(x+1);\n\n componentBTableRow.addView(view, params);\n }\n\n\n return componentBTableRow;\n }", "DataStreams createDataStreams();", "public abstract List<V> makeRowData();", "protected List<AccountingLineTableRow> createRowsForFields() {\n List<AccountingLineTableRow> rows = new ArrayList<AccountingLineTableRow>();\n \n int countForThisRow = 0;\n AccountingLineTableRow row = new AccountingLineTableRow();\n for (AccountingLineViewField field : fields) {\n row.addCell(createHeaderCellForField(field));\n row.addCell(createCellForField(field));\n countForThisRow += 1;\n \n if (countForThisRow == definition.getColumnCount()) {\n rows.add(row);\n countForThisRow = 0;\n row = new AccountingLineTableRow();\n }\n }\n if (countForThisRow > 0) { // oops! we stopped mid-row and now need to fill it out\n while (countForThisRow < definition.getColumnCount()) {\n row.addCell(createPaddingCell());\n countForThisRow += 1;\n }\n rows.add(row);\n }\n \n return rows;\n }" ]
[ "0.61217374", "0.6045931", "0.59535295", "0.59437376", "0.5812089", "0.58045053", "0.56172085", "0.55378556", "0.5518417", "0.5518301", "0.5512438", "0.54948354", "0.5393113", "0.53195536", "0.53193164", "0.53157675", "0.526289", "0.526289", "0.526289", "0.526289", "0.526289", "0.526289", "0.5247728", "0.5245586", "0.5219713", "0.5217999", "0.5188106", "0.518797", "0.5187769", "0.51853645", "0.5114459", "0.5113598", "0.5086726", "0.50774527", "0.5054668", "0.5035224", "0.5012102", "0.50083524", "0.49651396", "0.49454594", "0.49411047", "0.49392143", "0.49198428", "0.49188784", "0.49139673", "0.4902322", "0.4886474", "0.48819935", "0.48796397", "0.4876063", "0.48672792", "0.48549825", "0.48504302", "0.48306707", "0.47789526", "0.47612652", "0.47413436", "0.47411788", "0.47337046", "0.4730935", "0.47231838", "0.47206867", "0.47139928", "0.4712237", "0.47088274", "0.4706096", "0.4704714", "0.4692249", "0.46886587", "0.4683385", "0.46812004", "0.46808797", "0.46732175", "0.4667828", "0.46613234", "0.46586168", "0.46524605", "0.4641966", "0.46249402", "0.46225065", "0.46193573", "0.4616534", "0.46123365", "0.4600933", "0.4597835", "0.45900935", "0.45900935", "0.45900935", "0.45900935", "0.45900935", "0.4589504", "0.45844865", "0.45820266", "0.45809272", "0.4574116", "0.45736304", "0.45735794", "0.45676318", "0.45656216", "0.45636976" ]
0.6024119
2
Performs the actual streaming of the rows.
@Override public void write(OutputStream os) { int numRows = 0; Writer writer = new BufferedWriter(new OutputStreamWriter(os, Charset.forName("UTF-8"))); Iterator<KijiRowData> it = mScanner.iterator(); boolean clientClosed = false; try { while (it.hasNext() && (numRows < mNumRows || mNumRows == UNLIMITED_ROWS) && !clientClosed) { KijiRowData row = it.next(); KijiRestRow restRow = getKijiRestRow(row, mTable.getLayout(), mColsRequested, mSchemaTable); String jsonResult = mJsonObjectMapper.writeValueAsString(restRow); // Let's strip out any carriage return + line feeds and replace them with just // line feeds. Therefore we can safely delimit individual json messages on the // carriage return + line feed for clients to parse properly. jsonResult = jsonResult.replaceAll("\r\n", "\n"); writer.write(jsonResult + "\r\n"); writer.flush(); numRows++; } } catch (IOException e) { clientClosed = true; } finally { if (mScanner instanceof KijiRowScanner) { try { ((KijiRowScanner) mScanner).close(); } catch (IOException e1) { throw new WebApplicationException(e1, Status.INTERNAL_SERVER_ERROR); } } } if (!clientClosed) { try { writer.flush(); writer.close(); } catch (IOException e) { throw new WebApplicationException(e, Status.INTERNAL_SERVER_ERROR); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void emitRawRow();", "protected abstract void streamData(ResultSet paramResultSet)\r\n/* 51: */ throws SQLException, IOException, DataAccessException;", "public RowStreamer(Iterable<KijiRowData> scanner, KijiTable table, int numRows,\n List<KijiColumnName> columns, KijiSchemaTable schemaTable) {\n mScanner = scanner;\n mTable = table;\n mNumRows = numRows;\n mColsRequested = columns;\n mSchemaTable = schemaTable;\n }", "@Override\n public DataStream<Row> getDataStream(StreamExecutionEnvironment execEnv) {\n if (useExtendField) {\n metadataKeys = Arrays.stream(ReadableMetadata.values()).map(x -> x.key).collect(Collectors.toList());\n applyReadableMetadata(metadataKeys, generateProducedDataType());\n producedTypeInfo = (TypeInformation<Row>) TypeConversions.fromDataTypeToLegacyInfo(producedDataType);\n }\n\n final PulsarRowDeserializationSchema.ReadableRowMetadataConverter[] metadataConverters = metadataKeys.stream()\n .map(k ->\n Stream.of(ReadableMetadata.values())\n .filter(rm -> rm.key.equals(k))\n .findFirst()\n .orElseThrow(IllegalStateException::new))\n .map(m -> m.converter)\n .toArray(PulsarRowDeserializationSchema.ReadableRowMetadataConverter[]::new);\n\n PulsarRowDeserializationSchema pulsarDeserializationSchema =\n new PulsarRowDeserializationSchema(deserializationSchema, metadataConverters.length > 0, metadataConverters, producedTypeInfo);\n //PulsarDeserializationSchema<Row> deserializer = getDeserializationSchema();\n FlinkPulsarSource<Row> source = new FlinkPulsarSource<>(serviceUrl, adminUrl, pulsarDeserializationSchema, properties);\n //FlinkPulsarRowSource source = new FlinkPulsarRowSource(serviceUrl, adminUrl, properties, deserializer);\n switch (startupMode) {\n case EARLIEST:\n source.setStartFromEarliest();\n break;\n case LATEST:\n source.setStartFromLatest();\n break;\n case SPECIFIC_OFFSETS:\n source.setStartFromSpecificOffsets(specificStartupOffsets);\n break;\n case EXTERNAL_SUBSCRIPTION:\n MessageId subscriptionPosition = MessageId.latest;\n if (CONNECTOR_STARTUP_MODE_VALUE_EARLIEST.equals(properties.get(CONNECTOR_EXTERNAL_SUB_DEFAULT_OFFSET))) {\n subscriptionPosition = MessageId.earliest;\n }\n source.setStartFromSubscription(externalSubscriptionName, subscriptionPosition);\n }\n\n return execEnv.addSource(source).name(explainSource());\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic void migrateDataByBatch() {\n\t\tpool = new HTablePool(conf, 1024);\n\t\tSQLExporter sqlExporter = \n\t\t\tnew SQLExporter(url, username, password, catalog);\n\t\twhile(sqlExporter.hasNextDataTable()) {\n\t\t\tEntry entry = sqlExporter.next();\n\t\t\tString tableName = REGION + \".\" + (String) entry.getKey();\n\t\t\tList<Map<String, Object>> list = (List<Map<String, Object>>) entry.getValue();\n\t\t\t/**\n\t\t\t * table to migrate data.\n\t\t\t */\n\t\t\tHTable table = (HTable) pool.getTable(tableName);\n\t\t\t\n\t\t\t/**\n\t\t\t * set write buffer size.\n\t\t\t */\n\t\t\ttry {\n\t\t\t\ttable.setWriteBufferSize(WRITE_BUFFER_SIZE);\n\t\t\t\ttable.setAutoFlush(false);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tint counter = 0;\n\t\t\tList<Put> puts = new ArrayList<Put>();\n\t\t\tint size = list.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\n\t\t\t\tPut put = new Put((new Integer(i)).toString().getBytes());\n\t\t\t\t\n\t\t\t\tMap<String, Object> map = list.get(i);\n\t\t\t\tcounter ++;\n\t\t\t\t/**\n\t\t\t\t * add one row to be put.\n\t\t\t\t */\n\t\t\t\tfor (Map.Entry<String, Object> m : map.entrySet()) {\t\n\t\t\t\t\tput.add(FAMILY.getBytes(), m.getKey().getBytes(), \n\t\t\t\t\t\t\tm.getValue().toString().getBytes());\t\n\t\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * add `put` to list puts. \n\t\t\t\t */\n\t\t\t\tputs.add(put);\n\t\t\t\t\n\t\t\t\tif ((counter % LIST_PUTS_COUNTER == 0) || (i == size - 1)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttable.put(puts);\n\t\t\t\t\t\ttable.flushCommits();\n\t\t\t\t\t\tputs.clear();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} else continue;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic Row next(){\n\t\treturn res;\n\t}", "private void readData () throws SQLException {\n int currentFetchSize = getFetchSize();\n setFetchSize(0);\n close();\n setFetchSize(currentFetchSize);\n moveToInsertRow();\n\n CSVRecord record;\n\n for (int i = 1; i <= getFetchSize(); i++) {\n lineNumber++;\n try {\n\n if (this.records.iterator().hasNext()) {\n record = this.records.iterator().next();\n\n for (int j = 0; j <= this.columnsTypes.length - 1; j++) {\n\n switch (this.columnsTypes[j]) {\n case \"VARCHAR\":\n case \"CHAR\":\n case \"LONGVARCHAR\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n case \"INTEGER\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateInt(j + 1, Integer.parseInt(record.get(j)));\n break;\n case \"TINYINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateByte(j + 1, Byte.parseByte(record.get(j)));\n break;\n case \"SMALLINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateShort(j + 1, Short.parseShort(record.get(j)));\n break;\n case \"BIGINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateLong(j + 1, Long.parseLong(record.get(j)));\n break;\n case \"NUMERIC\":\n case \"DECIMAL\":\n /*\n * \"0\" [0,0]\n * \"0.00\" [0,2]\n * \"123\" [123,0]\n * \"-123\" [-123,0]\n * \"1.23E3\" [123,-1]\n * \"1.23E+3\" [123,-1]\n * \"12.3E+7\" [123,-6]\n * \"12.0\" [120,1]\n * \"12.3\" [123,1]\n * \"0.00123\" [123,5]\n * \"-1.23E-12\" [-123,14]\n * \"1234.5E-4\" [12345,5]\n * \"0E+7\" [0,-7]\n * \"-0\" [0,0]\n */\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBigDecimal(j + 1, new BigDecimal(record.get(j)));\n break;\n case \"DOUBLE\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDouble(j + 1, Double.parseDouble(record.get(j)));\n break;\n case \"FLOAT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateFloat(j + 1, Float.parseFloat(record.get(j)));\n break;\n case \"DATE\":\n // yyyy-[m]m-[d]d\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDate(j + 1, Date.valueOf(record.get(j)));\n break;\n case \"TIMESTAMP\":\n // yyyy-[m]m-[d]d hh:mm:ss[.f...]\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTimestamp(j + 1, Timestamp.valueOf(record.get(j)));\n break;\n case \"TIME\":\n // hh:mm:ss\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTime(j + 1, Time.valueOf(record.get(j)));\n break;\n case \"BOOLEAN\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBoolean(j + 1, convertToBoolean(record.get(j)));\n break;\n default:\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n }\n }\n\n insertRow();\n incrementRowCount();\n }\n } catch (Exception e) {\n LOG.error(\"An error has occurred reading line number {} of the CSV file\", lineNumber, e);\n throw e;\n }\n }\n\n moveToCurrentRow();\n beforeFirst(); \n }", "@Override\n public int writeDataRow(String exportId, int maxRetryCount, int retryTimeout, InputStream inputStream, int noOfChunks, String chunkId, int[] mapcols, int columnCount, String separator)\n throws AnaplanAPIException, SQLException {\n if (jdbcConfig.getJdbcConnectionUrl().length() > MAX_ALLOWED_CONNECTION_STRING_LENGTH) {\n throw new InvalidParameterException(\"JDBC connection string cannot be more than \" + MAX_ALLOWED_CONNECTION_STRING_LENGTH + \" characters in length!\");\n }\n try {\n LineNumberReader lnr = new LineNumberReader(\n new InputStreamReader(inputStream));\n String line;\n List rowBatch = new ArrayList<>();\n while (null != (line = lnr.readLine())) {\n String[] row;\n //ignore the header\n if (lnr.getLineNumber() == 1 && chunkId.equals(\"0\")) {\n LOG.info(\"Export {} to database started successfully\", exportId);\n } else {\n //adding a fix to handle the case when the chunk ends with a complete record\n if (lnr.getLineNumber() == 1 && !(chunkId.equals(\"0\"))) {\n String temp = lastRow.concat(line);\n if (temp.split(separator).length == columnCount) {\n line = temp;\n } else {\n row = lastRow.split(separator);\n rowBatch.add(row);\n }\n }\n row = line.split(separator);\n rowBatch.add(row);\n lastRow = line;\n if (++batch_records % batch_size == 0) {\n ++batch_no;\n //for this batch, code should have dummy values to bypass the check for chunkId and no of chunks\n // chunkId is being sent as 1 and no of chunks as 2 to bypass the check\n batchExecution(rowBatch, columnCount, mapcols, \"1\", 2, maxRetryCount, retryTimeout);\n rowBatch = new ArrayList<>(); //reset temoRowList\n batch_records = 0;\n }\n }\n }\n //Check to make sure it is not the last chunk\n //removing the last record so that it can be processed in the next chunk\n if (Integer.parseInt(chunkId) != noOfChunks - 1 && rowBatch.size() > 0) {\n rowBatch.remove(rowBatch.size() - 1);\n }\n //transfer the last batch when all of the lines from inputstream have been read\n ++batch_no;\n batchExecution(rowBatch, columnCount, mapcols, chunkId, noOfChunks, maxRetryCount, retryTimeout);\n batch_records = 0;\n //batch update exceptions captured to determine the committed and failed records\n } catch (Exception e) {\n LOG.debug(\"Error observed : {}\", e.getStackTrace());\n throw new AnaplanAPIException(e.getMessage());\n } finally {\n if (preparedStatement != null) {\n if (!preparedStatement.isClosed())\n preparedStatement.close();\n }\n }\n return datarowstransferred;\n }", "@Override\n protected List<WriteStatus> computeNext() {\n BoundedInMemoryExecutor<HoodieRecord<T>, HoodieInsertValueGenResult<HoodieRecord>, List<WriteStatus>> bufferedIteratorExecutor =\n null;\n try {\n final Schema schema = new Schema.Parser().parse(hoodieConfig.getSchema());\n bufferedIteratorExecutor =\n new SparkBoundedInMemoryExecutor<>(hoodieConfig, inputItr, getInsertHandler(), getTransformFunction(schema));\n final List<WriteStatus> result = bufferedIteratorExecutor.execute();\n assert result != null && !result.isEmpty() && !bufferedIteratorExecutor.isRemaining();\n return result;\n } catch (Exception e) {\n throw new HoodieException(e);\n } finally {\n if (null != bufferedIteratorExecutor) {\n bufferedIteratorExecutor.shutdownNow();\n }\n }\n }", "@Override\n\tpublic boolean hasNext() {\n\t\tthis.res = new Row();\n\t\ttry{\n\t\t\twhile(index < dataCopy.size()){\n\t\t\t\tdata2 = dataCopy.get(index++);\t\t\t\t\t\t\t\n\t\t\t\tif(whereExp != null && !eval1.eval(whereExp).toBool()) continue;\t\n\t\t\t\t\n\t\t\t\tTableContainer.orderByData.add(new Row());\n\t\t\t\tfor(PrimitiveValue v : data2.rowList)\n\t\t\t\t\tTableContainer.orderByData.get(count).rowList.add(v);\t\n\t\t\t\tcount++;\n\t\t\t\n\t\t\t\t/*if the query is SELECT * FROM R*/\n\t\t\t\tif(flag2){\n\t\t\t\t\tres = data2;\n\t\t\t\t}else{\n\t\t\t\t\t/*if it is the regular query*/\n\t\t\t\t\tfor (int i = 0; i < itemLen; i++) res.rowList.add(eval1.eval((selectItemsExpression.get(i))));\n\t\t\t\t}\n\t\t\t\treturn true;\t\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void emitTuples() {\n\n Statement query = queryToRetrieveData();\n logger.debug(String.format(\"select statement: %s\", query.toString()));\n RecordSet rs;\n try {\n rs = store.getClient().query(null, query);\n while(rs.next()){\n Record rec = rs.getRecord();\n T tuple = getTuple(rec);\n outputPort.emit(tuple);\n }\n }\n catch (Exception ex) {\n store.disconnect();\n DTThrowable.rethrow(ex);\n }\n }", "public final void flushRows() {\n if (myRowCount > 0) {\n Object[][] array = new Object[myRowCount][];\n for (int i = 0; i < array.length; i++) {\n array[i] = myLoadArray[i];\n }\n Object[][] temp = myLoadArray;\n // this changes myLoadArray to array for loading\n loadArray(array);\n // now change it back for future loading\n myLoadArray = temp;\n myRowCount = 0;\n // now clear the array\n for (int i = 0; i < myMaxRowsInBatch; i++) {\n myLoadArray[i] = null;\n }\n }\n }", "protected abstract void rowArrived(QueryDataBatch queryDataBatch);", "@Test\n public void testReadWriteCsv() throws Exception {\n TableEnvironment tableEnv = TableEnvironment.create(EnvironmentSettings.inStreamingMode());\n tableEnv.getConfig().set(TABLE_EXEC_RESOURCE_DEFAULT_PARALLELISM, 1);\n\n tableEnv.registerCatalog(\"myhive\", hiveCatalog);\n tableEnv.useCatalog(\"myhive\");\n\n String srcPath = this.getClass().getResource(\"/csv/test3.csv\").getPath();\n\n tableEnv.executeSql(\n \"CREATE TABLE src (\"\n + \"price DECIMAL(10, 2),currency STRING,ts6 TIMESTAMP(6),ts AS CAST(ts6 AS TIMESTAMP(3)),WATERMARK FOR ts AS ts) \"\n + String.format(\n \"WITH ('connector.type' = 'filesystem','connector.path' = 'file://%s','format.type' = 'csv')\",\n srcPath));\n\n String sinkPath = new File(tempFolder.newFolder(), \"csv-order-sink\").toURI().toString();\n\n tableEnv.executeSql(\n \"CREATE TABLE sink (\"\n + \"window_end TIMESTAMP(3),max_ts TIMESTAMP(6),counter BIGINT,total_price DECIMAL(10, 2)) \"\n + String.format(\n \"WITH ('connector.type' = 'filesystem','connector.path' = '%s','format.type' = 'csv')\",\n sinkPath));\n\n tableEnv.executeSql(\n \"INSERT INTO sink \"\n + \"SELECT TUMBLE_END(ts, INTERVAL '5' SECOND),MAX(ts6),COUNT(*),MAX(price) FROM src \"\n + \"GROUP BY TUMBLE(ts, INTERVAL '5' SECOND)\")\n .await();\n\n String expected =\n \"2019-12-12 00:00:05.0,2019-12-12 00:00:04.004001,3,50.00\\n\"\n + \"2019-12-12 00:00:10.0,2019-12-12 00:00:06.006001,2,5.33\\n\";\n assertThat(FileUtils.readFileUtf8(new File(new URI(sinkPath)))).isEqualTo(expected);\n }", "private void run(Handler<ConsumerRecord<K, V>> handler) {\n\n if (this.closed.get()) {\n return;\n }\n\n if (this.current == null || !this.current.hasNext()) {\n\n this.pollRecords(records -> {\n\n if (records != null && records.count() > 0) {\n this.current = records.iterator();\n if (batchHandler != null) {\n batchHandler.handle(records);\n }\n this.schedule(0);\n } else {\n this.schedule(1);\n }\n });\n\n } else {\n\n int count = 0;\n out:\n while (this.current.hasNext() && count++ < 10) {\n\n // to honor the Vert.x ReadStream contract, handler should not be called if stream is paused\n while (true) {\n long v = this.demand.get();\n if (v <= 0L) {\n break out;\n } else if (v == Long.MAX_VALUE || this.demand.compareAndSet(v, v - 1)) {\n break;\n }\n }\n\n ConsumerRecord<K, V> next = this.current.next();\n ContextInternal ctx = ((ContextInternal)this.context).duplicate();\n ctx.emit(v -> this.tracedHandler(ctx, handler).handle(next));\n }\n this.schedule(0);\n }\n }", "private void stream(int i, int[] seeds) throws Exception {\n\n\t\tExecutorService dataExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\t/**\n\t\t * which table we're currently working on\n\t\t */\n\t\tint tableType = i % 3;\n\t\tRunnable worker1 = new RepeatDataThread(tableType,\n\t\t\t\tApplication.THREAD_ONE_PATH + \"t\" + (tableType + 1), seeds[0]);\n\t\tRunnable worker2 = new RepeatDataThread(tableType,\n\t\t\t\tApplication.THREAD_TWO_PATH + \"t\" + (tableType + 1), seeds[1]);\n\t\tRunnable worker3 = new RepeatDataThread(tableType,\n\t\t\t\tApplication.THREAD_THREE_PATH + \"t\" + (tableType + 1), seeds[2]);\n\t\tRunnable worker4 = new RepeatDataThread(tableType,\n\t\t\t\tApplication.THREAD_FOUR_PATH + \"t\" + (tableType + 1), seeds[3]);\n\t\tdataExecutor.execute(worker1);\n\t\tdataExecutor.execute(worker2);\n\t\tdataExecutor.execute(worker3);\n\t\tdataExecutor.execute(worker4);\n\t\tdataExecutor.shutdown();\n\t\t// Wait until all threads are finish\n\t\t// if a table takes more than (approx) 40mins then the row size\n\t\t// is set too high, and load may fail.\n\t\tdataExecutor.awaitTermination(40, TimeUnit.MINUTES);\n\t\tSystem.out.println(\"loading tables\");\n\t\tExecutorService loadExecutor = Executors.newFixedThreadPool(NTHREDS);\n\t\tRunnable loadWorker1 = new LoadThread(Application.THREAD_ONE_PATH + \"t\" + (tableType + 1)); \n\t\tRunnable loadWorker2 = new LoadThread(Application.THREAD_TWO_PATH + \"t\" + (tableType + 1));\n\t\tRunnable loadWorker3 = new LoadThread(Application.THREAD_THREE_PATH + \"t\" + (tableType + 1)); \n\t\tRunnable loadWorker4 = new LoadThread(Application.THREAD_FOUR_PATH + \"t\" + (tableType + 1));\n\t\tloadExecutor.execute(loadWorker1); \n\t\tloadExecutor.execute(loadWorker2);\n\t\tloadExecutor.execute(loadWorker3); \n\t\tloadExecutor.execute(loadWorker4);\n\t\tloadExecutor.shutdown(); \n\t\tloadExecutor.awaitTermination(40,TimeUnit.MINUTES);\n\t\tcleanDirs();\n\n\t\tSystem.out.println(\"Finished all threads\");\n\n\t}", "@Test\n public void testIterator(){\n while(ROW_ITR.hasNext()){\n ROW_ITR.next();\n }\n }", "public AllByRowsIterator() {\n\t\t\tsuper();\n\t\t\tlastIndex = numCols * numRows;\n\t\t}", "private PipelineResult runWrite() {\n pipelineWrite\n .apply(GenerateSequence.from(0).to(numberOfRows))\n .apply(ParDo.of(new TestRow.DeterministicallyConstructTestRowFn()))\n .apply(ParDo.of(new TimeMonitor<>(NAMESPACE, \"write_time\")))\n .apply(\n JdbcIO.<TestRow>write()\n .withDataSourceConfiguration(JdbcIO.DataSourceConfiguration.create(dataSource))\n .withStatement(String.format(\"insert into %s values(?, ?)\", tableName))\n .withPreparedStatementSetter(new JdbcTestHelper.PrepareStatementFromTestRow()));\n\n return pipelineWrite.run();\n }", "@Override\n public Iterator<Space> iterator() {\n return row.iterator();\n }", "@Override\r\n public void run() {\r\n try {\r\n /* For each record, map it. */\r\n while (reader.hasNextRecord()) {\r\n Map.Entry<String, String> read = reader.readNextRecord();\r\n map(read.getKey(), read.getValue());\r\n }\r\n } catch (Exception e) {\r\n success = false;\r\n e.printStackTrace();\r\n } finally {\r\n reader.close();\r\n writer.close();\r\n }\r\n }", "@SuppressWarnings({ \"deprecation\", \"serial\" })\n\tprivate void doBatchCompute() {\n\t\tHConnection hConnection = null;\n\t\tHTableInterface hTableInterface = null;\n\t\tHBaseAdmin admin = null;\n\t\ttry {\n\t\t\t//scan the events table\n\t\t\thConnection = HConnectionManager.createConnection(conf);\n\t\t\thTableInterface = hConnection.getTable(DashboardUtils.curatedEvents);\n\t\t\tadmin = new HBaseAdmin(conf);\n\t\t\t\n\t\t\t//create an empty dataset here and do union or intersections in subsequent nested iterations\n\t\t\tList<DatasetBean> emptyFeed = new ArrayList<DatasetBean>();\n\t\t\tDatasetBean datasetBean = new DatasetBean();\n\t\t\t\n\t\t\t//start scanning through the table\n\t\t\tScan scan = new Scan();\n\t\t\tResultScanner scanner = hTableInterface.getScanner(scan);\n\t\t\tfor(Result r = scanner.next(); r != null; r = scanner.next()) {\n\t\t\t\t//to stop scanner from creating too many threads\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch(InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//cumulative set which is empty containing the DatasetBean class object\n\t\t\t\tDataset<Row> cumulativeSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\n\t\t\t\t//scan through every row of feedEvents table and process each corresponding event\n\t\t\t\tif(!r.isEmpty()) {\n\t\t\t\t\teventTable = Bytes.toString(r.getRow());\n\t\t\t\t\t\n\t\t\t\t\t//create table if it didn't already exist\n\t\t\t\t\tif(!admin.tableExists(eventTable)) {\n\t\t\t\t\t\tHTableDescriptor creator = new HTableDescriptor(eventTable);\n\t\t\t\t\t\tcreator.addFamily(new HColumnDescriptor(DashboardUtils.eventTab_cf));\n\t\t\t\t\t\tadmin.createTable(creator);\n\t\t\t\t\t\tlogger.info(\"**************** just created the following table in batch process since it didn't exist: \" + eventTable);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//declare the dataset storing the data from betaFeed\n\t\t\t\t\tDataset<Row> feedDataSet;\n\t\t\t\t\t//long eventdatacount = eventmap.get(eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcurrentStore = RSSFeedUtils.betatable;\n\t\t\t\t\t//this dataset is populated with betaFeed data\n\t\t\t\t\tfeedDataSet = loadbetaFeed();\n\t\t\t\t\t\n\t\t\t\t\t//store the data as a temporary table to process via sparkSQL\n\t\t\t\t\tfeedDataSet.createOrReplaceTempView(currentStore);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfeedevents = Job.getInstance(conf);\n\t\t\t\t\tfeedevents.getConfiguration().set(TableOutputFormat.OUTPUT_TABLE, eventTable);\n\t\t\t\t\tfeedevents.setOutputFormatClass(TableOutputFormat.class);\n\t\t\t\t\t\n\t\t\t\t\t//read the tags attribute of the event, and start reading it from left to right....tags are in format as in the documentation\n\t\t\t\t\t//break the OR tag, followed by breaking the AND tag, followed by processing each tag or event contained in it\n\t\t\t\t\tString tags = \"\";\n\t\t\t\t\tif(r.containsColumn(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags))) {\n\t\t\t\t\t\ttags = Bytes.toString(r.getValue(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString backupTagStr = tags;\n\t\t\t\t\t\n\t\t\t\t\twhile(tags.contains(\")\")) {\n\t\t\t\t\t\tString threstr=null;\n\t\t\t\t\t\tSystem.out.println(\"tags:\" + tags.trim());\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] ortagstrings = tags.trim().split(\"OR\");\n\t\t\t\t\t\tfor(String ortag : ortagstrings) {\n\t\t\t\t\t\t\tSystem.out.println(\"val of ortag:\" + ortag);\n\t\t\t\t\t\t\tthrestr = ortag.trim();\n\t\t\t\t\t\t\t//these are the parameters being fetched and populated in the events...i.e, feedname,totle,link,description,categories and date\n\t\t\t\t\t\t\tString qry =\"SELECT rssFeed, title, articleLink, description, categories, articleDate FROM \" + currentStore + \" WHERE \";\n\t\t\t\t\t\t\tStringBuilder querybuilder = new StringBuilder(qry);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"tag:\"+ortag.trim());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] andtagstrings = ortag.trim().split(\"AND\");\n\t\t\t\t\t\t\tDataset<Row> andSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString proctag=null;\n\t\t\t\t\t\t\tfor(int i=0; i<andtagstrings.length; i++) {\n\t\t\t\t\t\t\t\tproctag = andtagstrings[i];\n\t\t\t\t\t\t\t\tSystem.out.println(\"process tag:\" + proctag);\n\t\t\t\t\t\t\t\t//if the part of the tag being processed is an event, open up a second stream to load data from corresponding table\n\t\t\t\t\t\t\t\tif(proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"qwerty:\" + proctag.trim());\n\t\t\t\t\t\t\t\t\tString curatedevent = proctag.trim().substring(6, proctag.trim().length()).trim().replaceAll(\" \", \"__\").replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t\t\t\t\tlogger.info(\"################################################################################# event:\"+curatedevent);\n\t\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\t\tif(admin.tableExists(curatedevent)) {\n\t\t\t\t\t\t\t\t\t\tDataset<Row> eventdataset = loadcuratedEvent(curatedevent);\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"**************************************************** event:\" + curatedevent + \" while processing:\"+eventTable);\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\tif(i==0) {\n\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(andSet.count() == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t\t} else if(andSet.count() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.intersect(andSet);\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\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"*************************** event \" + curatedevent + \" does not exist *********************************\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//if it's a normal tag, make a sparkSQL query out of it\n\t\t\t\t\t\t\t\t} else if(!proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tquerybuilder.append(\"categories RLIKE '\" + proctag.trim().replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\") + \"' AND \");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\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\t//once the tag is fully processed, merge all data points and store in a resultant dataset\n\t\t\t\t\t\t\tif(querybuilder.toString().length() > qry.length()) {\n\t\t\t\t\t\t\t\t//logger.info(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inside query string ###############################\");\n\t\t\t\t\t\t\t\tquerybuilder = new StringBuilder(querybuilder.toString().substring(0, querybuilder.toString().length() -5));\n\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\tDataset<Row> queryset = sparkSession.sql(querybuilder.toString());\n\n\t\t\t\t\t\t\t\t//id the set it empty, fill it with the single data point\n\t\t\t\t\t\t\t\tif(andSet.count() == 0 && !backupTagStr.contains(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tandSet = queryset.union(andSet);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ doing query string with zero count:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\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\tlogger.info(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ doing intersect for query:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet.createOrReplaceTempView(\"andSet1\");\n\t\t\t\t\t\t\t\t\tqueryset.createOrReplaceTempView(\"querySet1\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tDataset<Row> fSet = sparkSession.sql(\"SELECT DISTINCT(a.*) FROM andSet1 a INNER JOIN querySet1 b ON a.title = b.title\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet = fSet;\n\t\t\t\t\t\t\t\t\tqueryset.unpersist();\n\t\t\t\t\t\t\t\t\tfSet.unpersist();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcumulativeSet = andSet.union(cumulativeSet);\n\t\t\t\t\t\t\tandSet.unpersist();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttags = tags.substring(threstr.length(), tags.length()).trim().replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"########################################################################################################### table:\"+eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcumulativeSet.createOrReplaceTempView(\"cumulativeEvent\");\n\t\t\t\t\n\t\t\t\t\t//as a double check, only fetch distinct records from all the merges...done via sparkSQL\n\t\t\t\t\tDataset<Row> finalSet = sparkSession.sql(\"SELECT DISTINCT(*) FROM cumulativeEvent\");\n\t\t\t\t\t\n\t\t\t\t\tJavaRDD<Row> eventRDD = finalSet.toJavaRDD();\n\t\t\t\t\tJavaPairRDD<ImmutableBytesWritable, Put> eventpairRDD = eventRDD.mapToPair(new PairFunction<Row, ImmutableBytesWritable, Put>() {\n\n\t\t\t\t\t\tpublic Tuple2<ImmutableBytesWritable, Put> call(Row arg0) throws Exception {\n\t\t\t\t\t\t\tObject link = arg0.getAs(\"articleLink\");\n\t\t\t\t\t\t\tif((String)link != null) {\n\t\t\t\t\t\t\t\t//parameters being populated into the events table\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), link, arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), \"link not available\", arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"******************************** going to dump curated events data in hbase for event: \" + eventTable);\n\t\t\t\t\teventpairRDD.saveAsNewAPIHadoopDataset(feedevents.getConfiguration());\n\t\t\t\t\t\n\t\t\t\t\teventRDD.unpersist();\n\t\t\t\t\tfinalSet.unpersist();\n\t\t\t\t\tcumulativeSet.unpersist();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tscanner.close();\n\t\t\thTableInterface.close();\n\t\t\thConnection.close();\n\t\t\t\n\t\t} catch(IOException e) {\n\t\t\tlogger.info(\"error while establishing Hbase connection...\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected abstract List<List<SearchResults>> processStream();", "public void run() {\n\t\t\n\t\ttry {\n\n\t\t\twhile(outputstream != null) {\n\t\t\t\tint num,i,j;\n\t\t\t\tint count = 0;\n\t\t\t\tString ID, Score;\n\t\t\t\toutputstream.writeUTF(user);\n\t\t\t\tnum = Integer.parseInt(inputstream.readUTF());\n\t\t\t\twhile(count < num) {\n\t\t\t\t\ti = Integer.parseInt(inputstream.readUTF());\n\t\t\t\t\tj = Integer.parseInt(inputstream.readUTF());\n\t\t\t\t\tID = inputstream.readUTF();\n\t\t\t\t\tScore = inputstream.readUTF();\n\t\t\t\t\tSystem.out.println(ID + \" \" + Score);\n\t\t\t\t\twv.getTable().setValueAt(i, j, 0);\n\t\t\t\t\twv.getTable().setValueAt(ID, j,1);\n\t\t\t\t\twv.getTable().setValueAt(Score, j, 2);\n\t\t\t\t\tcount ++;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}", "public RowDataCursor(MysqlIO ioChannel, ServerPreparedStatement creatingStatement, Field[] metadata) {\n/* 112 */ this.currentPositionInEntireResult = -1;\n/* 113 */ this.metadata = metadata;\n/* 114 */ this.mysql = ioChannel;\n/* 115 */ this.statementIdOnServer = creatingStatement.getServerStatementId();\n/* 116 */ this.prepStmt = creatingStatement;\n/* 117 */ this.useBufferRowExplicit = MysqlIO.useBufferRowExplicit(this.metadata);\n/* */ }", "@Override\n public Iterator<Row> iterator() {\n\n return new Iterator<Row>() {\n\n private final Row row = new Row(TableSlice.this);\n\n @Override\n public Row next() {\n return row.next();\n }\n\n @Override\n public boolean hasNext() {\n return row.hasNext();\n }\n };\n }", "@Override\n public Flowable<Row> streamMarcRecordIds(ParseLeaderResult parseLeaderResult, ParseFieldsResult parseFieldsResult, RecordSearchParameters searchParameters, String tenantId) {\n SelectJoinStep searchQuery = DSL.selectDistinct(RECORDS_LB.EXTERNAL_ID).from(RECORDS_LB);\n appendJoin(searchQuery, parseLeaderResult, parseFieldsResult);\n appendWhere(searchQuery, parseLeaderResult, parseFieldsResult, searchParameters);\n if (searchParameters.getOffset() != null) {\n searchQuery.offset(searchParameters.getOffset());\n }\n if (searchParameters.getLimit() != null) {\n searchQuery.limit(searchParameters.getLimit());\n }\n /* Building a count query */\n SelectJoinStep countQuery = DSL.select(countDistinct(RECORDS_LB.EXTERNAL_ID)).from(RECORDS_LB);\n appendJoin(countQuery, parseLeaderResult, parseFieldsResult);\n appendWhere(countQuery, parseLeaderResult, parseFieldsResult, searchParameters);\n /* Join both in one query */\n String sql = DSL.select().from(searchQuery).rightJoin(countQuery).on(DSL.trueCondition()).getSQL(ParamType.INLINED);\n\n return getCachedPool(tenantId)\n .rxGetConnection()\n .flatMapPublisher(conn -> conn.rxBegin()\n .flatMapPublisher(tx -> conn.rxPrepare(sql)\n .flatMapPublisher(pq -> pq.createStream(10000)\n .toFlowable()\n .filter(row -> !enableFallbackQuery || row.getInteger(COUNT) != 0)\n .switchIfEmpty(streamMarcRecordIdsWithoutIndexersVersionUsage(conn, parseLeaderResult, parseFieldsResult, searchParameters))\n .map(this::toRow))\n .doAfterTerminate(tx::commit)));\n }", "public void fetRowList() {\n try {\n data.clear();\n if (rsAllEntries != null) {\n ObservableList row = null;\n //Iterate Row\n while (rsAllEntries.next()) {\n row = FXCollections.observableArrayList();\n //Iterate Column\n for (int i = 1; i <= rsAllEntries.getMetaData().getColumnCount(); i++) {\n row.add(rsAllEntries.getString(i));\n }\n data.add(row);\n }\n //connects table with list\n table.setItems(data);\n // cell instances are generated for Order Status column and then colored\n customiseStatusCells();\n\n } else {\n warning.setText(\"No rows to display\");\n }\n } catch (SQLException ex) {\n System.out.println(\"Failure getting row data from SQL \");\n }\n }", "DataBaseReadStream createNewStream(Cursor beginCursor) throws SQLException;", "private void fillIncoming(int runId, long duration, long commitRows, long sleepMs, int payloadColumns) {\n long currentRows = 0;\n long startTime = System.currentTimeMillis();\n long durationMs = duration * 60000;\n\n String sql = buildInsertSql(STRESS_TEST_ROW_INCOMING, payloadColumns);\n while (System.currentTimeMillis() - startTime < durationMs) {\n for (long commitRow = 0; commitRow < commitRows; commitRow++) {\n insert(sql, currentRows + commitRow, runId, payloadColumns);\n }\n currentRows += commitRows;\n AppUtils.sleep(sleepMs);\n }\n }", "Iterator<TabularData> dataIterator();", "private void processRecords()\n {\n // This is the way to connect the file to an inputstream in android\n InputStream inputStream = getResources().openRawResource(R.raw.products);\n\n Scanner scanner = new Scanner(inputStream);\n\n\n // skipping first row by reading it before loop and displaying it as column names\n String[] tableRow = scanner.nextLine().split(\",\");\n\n //Log.e(\"COLUMN NAMES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN NAMES SIZE\", String.valueOf(tableRow.length));\n\n\n // --- Truncate table (delete all rows and reset auto increment --\n // this line of code will be useful because for now we are forced to read file\n // everytime we open app, this way we do not have duplicate data.\n db.resetTable();\n\n while (scanner.hasNextLine())\n {\n tableRow = scanner.nextLine().split(\",\");\n //Log.e(\"COLUMN VALUES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN VALUES SIZE\", String.valueOf(tableRow.length));\n\n /*\n * Possible Change:\n * On each iteration a new Product() can be created and call the setter to set\n * its fields to the elements of the String array, example\n * product = new Product();\n * product.setNumber(tableRow[0]);\n * product.setBusinessName(tableRow[1]);\n * ...\n * db.insertData(product); // because the new insertData method would expect a\n * Product object instead\n *\n */\n\n // insert data\n if (db.insertData(tableRow))\n {\n //Log.e(\"Insert\", \"SUCCESSFUL INSERT AT \" + tableRow[0]);\n }\n else\n {\n //Log.e(\"Insert\", \"UNSUCCESSFUL INSERT\");\n }\n\n }\n }", "public Row[] getRows() {return rows;}", "private void batchExecution(List<String[]> rowBatch, int columnCount, int[] mapcols, String chunkId, int noOfChunks,\n int maxRetryCount, int retryTimeout) throws SQLException {\n int k = 0; //retry count\n boolean retry = false;\n int rowBatchSize = rowBatch.size();\n do {\n k++;\n try {\n if (connection == null || connection.isClosed()) {\n getJdbcConnection(maxRetryCount, retryTimeout);\n }\n if (preparedStatement == null || preparedStatement.isClosed()) {\n preparedStatement = connection.prepareStatement(jdbcConfig.getJdbcQuery(),\n ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY);\n }\n for (int i = 0; i < rowBatchSize; i++) {\n psLineEndWithSeparator(mapcols, columnCount, rowBatch.get(i));\n preparedStatement.addBatch();\n }\n // ++batch_no;\n executeBatch(rowBatchSize, maxRetryCount, retryTimeout);\n batch_records = 0;\n k = 0;\n retry = false;\n datarowstransferred = datarowstransferred + update;\n update = 0;\n not_update = 0;\n } catch (AnaplanRetryableException ae) {\n retry = true;\n }\n } while (k < maxRetryCount && retry);\n // not successful\n if (retry) {\n throw new AnaplanAPIException(\"Could not connect to the database after \" + maxRetryCount + \" retries\");\n }\n }", "int cacheRowsWhenScan();", "public final void incrementRowsReadEvent() {\n rowsRead_++;\n }", "protected abstract Object mapRow(ResultSet rs) throws SQLException;", "public void run() {\n CsvParser parser = this.initializeParser();\n\n // Initialize data structures\n String[] firstLine = parser.parseNext();\n List<MutableRoaringBitmap> dataset = new ArrayList<>(firstLine.length);\n for (int i = 0; i < firstLine.length; i++) {\n dataset.add(new MutableRoaringBitmap());\n this.columnPlisMutable = ImmutableList.copyOf(dataset);\n }\n\n // Start parsing the file\n if (this.configuration.isNoHeader()) {\n this.addRow(firstLine);\n } else {\n this.columnIndexToNameMapping = firstLine;\n }\n\n String[] nextRow;\n while ((nextRow = parser.parseNext()) != null) {\n this.addRow(nextRow);\n this.nRows++;\n }\n\n this.transformRows();\n this.transformColumns();\n log.info(\"Deduplicated {} rows to {}, {} columns to {}\", this.nRows, this.nRowsDistinct,\n this.columnPlisMutable.size(), this.columnPlis.size());\n }", "@ProcessElement\n public void processElement(ProcessContext c) {\n // Get the JSON data as a string from our stream.\n String data = c.element();\n TableRow output;\n\n // Attempt to decode our JSON data into a TableRow.\n try {\n output = objectMapper.readValue(data, TableRow.class);\n } catch (Exception e) {\n // We were unable to decode the JSON, let's put this string\n // into a TableRow manually, without decoding it, so we can debug\n // it later, and output it as \"bad data\".\n c.output(badData, createBadRow(data));\n return;\n }\n\n // Incredibly simple validation of data -- we are simply making sure\n // the event key exists in our decoded JSON. If it doesn't, it's bad data.\n // If you need to validate your data stream, this would be the place to do it!\n if (!output.containsKey(\"Name\")) {\n c.output(badData, createBadRow(data)); \n return;\n }\n\n // Output our good data twice to two different streams. rawData will eventually\n // be directly inserted into BigQuery without any special processing, where as\n // our other output (the \"default\" output), outputs a KV of (event, TableRow), where\n // event is the name of our event. This allows us to do some easy rollups of our event\n // data a bit further down.\n c.output(rawData, output);\n c.output(KV.of((String)output.get(\"Name\"), output));\n }", "boolean onReadRow(int rowIndex, Map<String, String> rowData);", "protected abstract E handleRow(ResultSet rs) throws SQLException;", "public boolean next() throws SQLException {\n\n try {\n debugCodeCall(\"next\");\n checkClosed();\n return nextRow();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "@ParameterizedTest\n @MethodSource(\"randomRecord\")\n public void testRowsVisibleAfterFlush(Fixture fixture,\n Integer offset,\n Row row,\n SinkRecord record) {\n Map<String, String> props = fixture.props;\n props.put(ConnectorUtils.TABLE_FROM_TOPIC_CONFIG, \"true\");\n\n this.task.start(props);\n this.task.put(Collections.singletonList(record));\n this.task.flush(new HashMap<>());\n\n // Sleep 1 second, our flush interval\n try {\n Thread.sleep(1100);\n } catch (Exception e) {\n throw new Error(\"Unexpected exception\", e);\n }\n\n String tableName = record.topic();\n\n Timespec ts = new Timespec(record.timestamp());\n TimeRange[] ranges = { new TimeRange(ts, ts.plusNanos(1)) };\n\n Reader reader = Table.reader(TestUtils.createSession(), tableName, ranges);\n assertEquals(true, reader.hasNext());\n\n Row row2 = reader.next();\n assertEquals(row, row2);\n assertEquals(false, reader.hasNext());\n\n this.task.stop();\n }", "public Object fetchNext()\n {\n if (!isOpen) {\n isOpen = true;\n open();\n }\n for (;;) {\n if (leftObj == null) {\n Object next = inputIterator.fetchNext();\n if (next instanceof NoDataReason) {\n return next;\n }\n\n leftObj = next;\n }\n if (rightIterator == null) {\n rightIterator = getNextRightIterator();\n needNullRow = isLeftOuter;\n }\n if (rightIterator instanceof TupleIter) {\n TupleIter ri = (TupleIter) rightIterator;\n Object next = ri.fetchNext();\n if (next == NoDataReason.END_OF_DATA) {\n if (needNullRow) {\n needNullRow = false;\n return calcRightNullRow();\n }\n leftObj = null;\n rightObj = null;\n rightIterator = null;\n continue;\n }\n rightObj = next;\n } else {\n rightObj = rightIterator;\n rightIterator = TupleIter.EMPTY_ITERATOR;\n }\n Object row = calcJoinRow();\n if (row != null) {\n needNullRow = false;\n return row;\n }\n }\n }", "private PipelineResult runRead() {\n PCollection<TestRow> namesAndIds =\n pipelineRead\n .apply(\n JdbcIO.<TestRow>read()\n .withDataSourceConfiguration(JdbcIO.DataSourceConfiguration.create(dataSource))\n .withQuery(String.format(\"select name,id from %s;\", tableName))\n .withRowMapper(new JdbcTestHelper.CreateTestRowOfNameAndId())\n .withCoder(SerializableCoder.of(TestRow.class)))\n .apply(ParDo.of(new TimeMonitor<>(NAMESPACE, \"read_time\")));\n\n PAssert.thatSingleton(namesAndIds.apply(\"Count All\", Count.globally()))\n .isEqualTo((long) numberOfRows);\n\n PCollection<String> consolidatedHashcode =\n namesAndIds\n .apply(ParDo.of(new TestRow.SelectNameFn()))\n .apply(\"Hash row contents\", Combine.globally(new HashingFn()).withoutDefaults());\n PAssert.that(consolidatedHashcode)\n .containsInAnyOrder(TestRow.getExpectedHashForRowCount(numberOfRows));\n\n PCollection<List<TestRow>> frontOfList = namesAndIds.apply(Top.smallest(500));\n Iterable<TestRow> expectedFrontOfList = TestRow.getExpectedValues(0, 500);\n PAssert.thatSingletonIterable(frontOfList).containsInAnyOrder(expectedFrontOfList);\n\n PCollection<List<TestRow>> backOfList = namesAndIds.apply(Top.largest(500));\n Iterable<TestRow> expectedBackOfList =\n TestRow.getExpectedValues(numberOfRows - 500, numberOfRows);\n PAssert.thatSingletonIterable(backOfList).containsInAnyOrder(expectedBackOfList);\n\n return pipelineRead.run();\n }", "@Override\n\tpublic void process(StreamingInput<Tuple> stream, Tuple tuple)\n\t\t\tthrows Exception {\n\t\tHTableInterface myTable = connection.getTable(tableNameBytes);\n\t\tbyte row[] = getRow(tuple);\n\t\tDelete myDelete = new Delete(row);\n\n\t\tif (DeleteMode.COLUMN_FAMILY == deleteMode) {\n\t\t\tbyte colF[] = getColumnFamily(tuple);\n\t\t\tmyDelete.deleteFamily(colF);\n\t\t} else if (DeleteMode.COLUMN == deleteMode) {\n\t\t\tbyte colF[] = getColumnFamily(tuple);\n\t\t\tbyte colQ[] = getColumnQualifier(tuple);\n\t\t\tif (deleteAll) {\n\t\t\t\tmyDelete.deleteColumns(colF, colQ);\n\t\t\t} else {\n\t\t\t\tmyDelete.deleteColumn(colF, colQ);\n\t\t\t}\n\t\t}\n\n\t\tboolean success = false;\n\t\tif (checkAttr != null) {\n\t\t\tTuple checkTuple = tuple.getTuple(checkAttrIndex);\n\t\t\t// the check row and the row have to match, so don't use the\n\t\t\t// checkRow.\n\t\t\tbyte checkRow[] = getRow(tuple);\n\t\t\tbyte checkColF[] = getBytes(checkTuple, checkColFIndex,\n\t\t\t\t\tcheckColFType);\n\t\t\tbyte checkColQ[] = getBytes(checkTuple, checkColQIndex,\n\t\t\t\t\tcheckColQType);\n\t\t\tbyte checkValue[] = getCheckValue(checkTuple);\n\t\t\tsuccess = myTable.checkAndDelete(checkRow, checkColF, checkColQ,\n\t\t\t\t\tcheckValue, myDelete);\n\t\t} else if (batchSize == 0) {\n\t\t\tlogger.debug(\"Deleting \" + myDelete);\n\t\t\tmyTable.delete(myDelete);\n\t\t} else {\n\t\t\tsynchronized (listLock) {\n\t\t\t\tdeleteList.add(myDelete);\n\t\t\t\tif (deleteList.size() >= batchSize) {\n\t\t\t\t\tmyTable.delete(deleteList);\n\t\t\t\t\tdeleteList.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Checks to see if an output tuple is necessary, and if so,\n\t\t// submits it.\n\t\tsubmitOutputTuple(tuple, success);\n\t\tmyTable.close();\n\t}", "private CompletableFuture<Iterator<T>> batch() {\n return batch.thenCompose(iterator -> {\n if (iterator != null && !iterator.hasNext()) {\n batch = fetch(iterator.position());\n return batch.thenApply(Function.identity());\n }\n return CompletableFuture.completedFuture(iterator);\n });\n }", "public boolean onNextRecord(IDataTableRecord record) throws Exception;", "public ResultSetRow next() throws SQLException {\n/* 338 */ if (this.fetchedRows == null && this.currentPositionInEntireResult != -1) {\n/* 339 */ throw SQLError.createSQLException(Messages.getString(\"ResultSet.Operation_not_allowed_after_ResultSet_closed_144\"), \"S1000\", this.mysql.getExceptionInterceptor());\n/* */ }\n/* */ \n/* */ \n/* 343 */ if (!hasNext()) {\n/* 344 */ return null;\n/* */ }\n/* */ \n/* 347 */ this.currentPositionInEntireResult++;\n/* 348 */ this.currentPositionInFetchedRows++;\n/* */ \n/* */ \n/* 351 */ if (this.fetchedRows != null && this.fetchedRows.size() == 0) {\n/* 352 */ return null;\n/* */ }\n/* */ \n/* 355 */ if (this.fetchedRows == null || this.currentPositionInFetchedRows > this.fetchedRows.size() - 1) {\n/* 356 */ fetchMoreRows();\n/* 357 */ this.currentPositionInFetchedRows = 0;\n/* */ } \n/* */ \n/* 360 */ ResultSetRow row = this.fetchedRows.get(this.currentPositionInFetchedRows);\n/* */ \n/* 362 */ row.setMetadata(this.metadata);\n/* */ \n/* 364 */ return row;\n/* */ }", "protected final void collect(T row) {\n collector.collect(row);\n }", "@Override\n\tpublic boolean hasNext() {\n\t\tif (rowIterator == null) {\n\t\t\ttry {\n\t\t\t\trowIterator = createRangeRowIterator();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.error(\"Error starting RangeRowIterator.\", e);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tif (flattenIterator != null && flattenIterator.hasNext())\n\t\t\treturn true;\n\t\tflattenIterator = null;\n\n\t\tif (!rowIterator.hasNext())\n\t\t\treturn false;\n\n\t\t// there may be nothing in the row we can return (e.g. just\n\t\t// tombstones)\n\t\twhile (rowIterator.hasNext()) {\n\t\t\tRow row = rowIterator.next();\n\t\t\tflattenIterator = new FlattenIterator(row, keyAliasNames, columnAliasNames, metadata, columnNamesMap, key, value);\n\t\t\tif (flattenIterator.hasNext())\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public abstract void write(int rowCount) throws IOException;", "Row<K, C> execute();", "private void queryFlat(int columnCount, ResultTarget result, long limitRows) {\n if (limitRows > 0 && offsetExpr != null) {\r\n int offset = offsetExpr.getValue(session).getInt();\r\n if (offset > 0) {\r\n limitRows += offset;\r\n }\r\n }\r\n int rowNumber = 0;\r\n prepared.setCurrentRowNumber(0);\r\n int sampleSize = getSampleSizeValue(session);\r\n while (topTableFilter.next()) {\r\n prepared.setCurrentRowNumber(rowNumber + 1);\r\n if (condition == null ||\r\n Boolean.TRUE.equals(condition.getBooleanValue(session))) {\r\n Value[] row = new Value[columnCount];\r\n for (int i = 0; i < columnCount; i++) {\r\n Expression expr = expressions.get(i);\r\n row[i] = expr.getValue(session);\r\n }\r\n result.addRow(row);\r\n rowNumber++;\r\n if ((sort == null) && limitRows > 0 &&\r\n result.getRowCount() >= limitRows) {\r\n break;\r\n }\r\n if (sampleSize > 0 && rowNumber >= sampleSize) {\r\n break;\r\n }\r\n }\r\n }\r\n }", "public long rows() { return _rows; }", "static public void callForeachRDD (org.apache.spark.streaming.api.java.JavaDStream<byte[]> jdstream, org.apache.spark.streaming.api.python.PythonTransformFunction pfunc) { throw new RuntimeException(); }", "@Override\n public void tableRows_()\n {\n }", "public void flush(long offset) {\n if (offset < 0) {\n throw new IllegalArgumentException(\"Invalid offset: \" + offset);\n }\n // TODO: Once we persisted stream type, we should check the call can only be issued on BUFFERED\n // stream here.\n Storage.FlushRowsRequest request =\n Storage.FlushRowsRequest.newBuilder().setWriteStream(streamName).setOffset(offset).build();\n stub.flushRows(request);\n // TODO: We will verify if the returned offset is equal to requested offset.\n }", "public abstract void rowsUpdated(int firstRow, int endRow);", "public void run() {\n\t\tthis.setRunning(true);\n\t\tint iterationNumber = 0;\n\t\tstreamManager.setCounter(0);\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"************* ITERATION NUMBER: \" + iterationNumber + \" TRIPLES: \" + iterationNumber*number + \"*******************\");\n\t\t\t\n\t\t\t//Query to load all the information\n\t\t\tString query = \"SELECT DISTINCT*\"\n\t\t\t\t\t+ \"{ ?s ?p ?o }\"\n\t\t\t\t\t//+ \" ORDER BY ?s\" //If this order is made, then the SPARQL endpoint take to much time to respond.\n\t\t\t\t\t+ \" LIMIT \"+ number \n\t\t\t\t\t+ \" OFFSET \"+ number*iterationNumber;\n\t\t\titerationNumber++;\n\t\t\tQueryExecution qe = QueryExecutionFactory.sparqlService(this.serviceUrl,query);\n\t\t\ttry {\n\t\t\t\tResultSet rs = qe.execSelect();\n\t\t\t\n\t\t\t\tif(rs != null && rs.hasNext()){\n\t\t\t\t\tstreamManager.put(rs);\t//Put all the batch of answer into the streaming manager\n\t\t\t\t\tstreamManager.setCounter(streamManager.getCounter()+1); // Announced that the producer publish a result set\n\t\t\t\t\tSystem.out.println(\"Process the triples: \" + this.number);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t} catch (QueryExceptionHTTP e) {\n\t\t\t\tSystem.out.println(this.serviceUrl + \" is Not working or is DOWN\");\n\t\t\t\tbreak; //Close the cicle\n\t\t\t} \t\t\n\t\t}\n\t\tthis.setRunning(false);\n\t}", "public synchronized void getAllFromDbAndWriteIntoTempFiles() throws IOWrapperException, IOIteratorException{\r\n\r\n readFromDB = true;\r\n iow=new IOWrapper();\r\n iow.setupOutput(this.dbname,this.username,this.password,this.hostname,this.port);\r\n iow.setupInput(this.dbname,this.username,this.password,this.hostname,this.port);\r\n \r\n iter = iow.sendInputQuery(\"SELECT COUNT(*) FROM \"+nodetable);\r\n try {\r\n maxProgerss+=Integer.parseInt(((String[])iter.next())[0]); \r\n } catch (NullPointerException e) {maxProgerss+=100;}\r\n iter = iow.sendInputQuery(\"SELECT COUNT(*) FROM \"+edgetable);\r\n try {\r\n maxProgerss+=Integer.parseInt(((String[])iter.next())[0]);\r\n } catch (NullPointerException e) {maxProgerss+=100;}\r\n //iow.closeOutput();\r\n \r\n\r\n \r\n //nodelist\r\n iter = iow.select(nodetable,nodeCols);\r\n iow.setupOutput(Controller.NODES_TMP_FILENAME);\r\n while (iter.hasNext()) {\r\n singleProgress+=1;\r\n String[] data = (String[])iter.next();\r\n iow.writeLine(data[0]+\"\\t\"+data[1]);\r\n }\r\n iow.closeOutput();\r\n\t\r\n //edgelist\r\n iter=iow.select(edgetable,edgeCols);\r\n iow.setupOutput(Controller.EDGES_TMP_FILENAME);\r\n while (iter.hasNext()) {\r\n\t singleProgress+=1;\r\n String[] data = (String[])iter.next();\r\n iow.writeLine(data[0]+\"\\t\"+data[1]+\"\\t\"+data[2]);\r\n //System.out.println(\"wwsl: \"+data[0]+\"\\t\"+data[1]+\"\\t\"+data[2]);\r\n }\r\n iow.closeOutput();\r\n readFromDB=false;\r\n this.stillWorks=false;\r\n }", "public void nextTuple() {\n\t\tif(isFirst) {\n\t\t\ttry {\n\t\t\t\tFileReader in = new FileReader(\"query_stream_comp_\"+qSize);\n\t\t\t\tBufferedReader br = new BufferedReader(in);\t\n//\t\t\t\tbr.readLine();\n\t\t\t\tfor(int i=0; i<num; i++) {\n//\t\t\t\t\tUtils.sleep(100);\n\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\tint edges = Integer.valueOf(br.readLine());\n//\t\t\t\t\tsb.append(edges+\"\\n\");\n//\t\t\t\t\tint edges = br.read();\n\t\t\t\t\tfor(int j=0; j< edges; j++) {\n\t\t\t\t\t\t\n\t//\t\t\t\t\tString edge[] = br.readLine().split(\" \");\n\t\t\t\t\t\tsb.append(br.readLine()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\t_collector.emit(\"qstream\", new Values(sb.toString()));\n\t\t\t\t}\n\t\t\t\tisFirst = !isFirst;\n\t\t\t\tSystem.out.println(\"QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}else {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000000);\n\t\t\t\tSystem.exit(0);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "private void exportTableFromResultSet(String tableName, ResultSet rs, int rowNum) {\n\t\tMap<String, String> columnMetadataMap = sqlMetaExporter.getMetadataMap().get(tableName);\n\t\tList<Map<String, Object>> listData = new ArrayList<Map<String, Object>>();\n\t\tint counter = 0;\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tcounter++;\n\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\n\t\t\t\tfor (Map.Entry<String, String> columnMap : columnMetadataMap\n\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\tString columnLabel = columnMap.getKey();\n\t\t\t\t\tObject object = rs.getObject(columnLabel);\n\t\t\t\t\t//convert orcale timestamp to java date.\n\t\t\t\t\tif (object instanceof oracle.sql.TIMESTAMP) {\n\t\t\t\t\t\toracle.sql.TIMESTAMP timeStamp = (oracle.sql.TIMESTAMP) object;\n\t\t\t\t\t\tTimestamp tt = timeStamp.timestampValue();\n\t\t\t\t\t\tDate date = new Date(tt.getTime());\n\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t\t\tString timestamp = sdf.format(date);\n\t\t\t\t\t\tmap.put(columnLabel, timestamp);\n\t\t\t\t\t} else \n\t\t\t\t\t\tmap.put(columnLabel, object);\n\t\t\t\t}\n\t\t\t\tlistData.add(map);\n\t\t\t\tif (counter % rowNum == 0) {\n\t\t\t\t\tmigrateDataByBatch(tableName, listData);\n\t\t\t\t\tlistData.clear();\n\t\t\t\t} else continue;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmigrateDataByBatch(tableName, listData);\n\t\t\tlistData.clear();\n\t\t}\n\t}", "@Override\n public boolean hasNext() {\n return nextRowSet || setNextObject();\n }", "@Test\n public void testBatchSink() throws Exception {\n List<WALEntry> entries = new ArrayList<>(TestReplicationSink.BATCH_SIZE);\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < (TestReplicationSink.BATCH_SIZE); i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(TestReplicationSink.BATCH_SIZE, scanRes.next(TestReplicationSink.BATCH_SIZE).length);\n }", "@Override\n public void preSourceTasks () throws SQLException {\n chunkSize = 0L;\n\n // Only calculate the chunk size when parallel execution is active\n if (this.options.getJobs() != 1) {\n // Calculating the chunk size for parallel job processing\n Statement statement = this.getConnection().createStatement();\n String sql = \"SELECT \" + \" CEIL(count(*) / \" + options.getJobs() + \") chunk_size\" + \", count(*) total_rows\" + \" FROM \";\n\n // Source Query\n if (options.getSourceQuery() != null && !options.getSourceQuery().isEmpty()) {\n sql = sql + \"( \" + this.options.getSourceQuery() + \" ) as REPLICADB_TABLE\";\n\n } else {\n\n sql = sql + this.options.getSourceTable();\n // Source Where\n if (options.getSourceWhere() != null && !options.getSourceWhere().isEmpty()) {\n sql = sql + \" WHERE \" + options.getSourceWhere();\n }\n }\n\n LOG.debug(\"Calculating the chunks size with this sql: {}\", sql);\n ResultSet rs = statement.executeQuery(sql);\n rs.next();\n chunkSize = rs.getLong(1);\n long totalNumberRows = rs.getLong(2);\n LOG.debug(\"chunkSize: {} totalNumberRows: {}\", chunkSize, totalNumberRows);\n\n statement.close();\n this.getConnection().commit();\n }\n }", "@Override\n public void preSourceTasks () throws SQLException {\n chunkSize = 0L;\n\n // Only calculate the chunk size when parallel execution is active\n if (this.options.getJobs() != 1) {\n /*\n * Calculating the chunk size for parallel job processing\n */\n Statement statement = this.getConnection().createStatement();\n String sql = \"SELECT \" + \" CEIL(count(*) / \" + options.getJobs() + \") chunk_size\" + \", count(*) total_rows\" + \" FROM \";\n\n // Source Query\n if (options.getSourceQuery() != null && !options.getSourceQuery().isEmpty()) {\n sql = sql + \"( \" + this.options.getSourceQuery() + \" ) as REPLICADB_TABLE\";\n\n } else {\n\n sql = sql + this.options.getSourceTable();\n // Source Where\n if (options.getSourceWhere() != null && !options.getSourceWhere().isEmpty()) {\n sql = sql + \" WHERE \" + options.getSourceWhere();\n }\n }\n\n LOG.debug(\"Calculating the chunks size with this sql: {}\", sql);\n ResultSet rs = statement.executeQuery(sql);\n rs.next();\n chunkSize = rs.getLong(1);\n long totalNumberRows = rs.getLong(2);\n LOG.debug(\"chunkSize: {} totalNumberRows: {}\", chunkSize, totalNumberRows);\n\n statement.close();\n this.getConnection().commit();\n }\n }", "public boolean next()\n throws SQLException\n {\n boolean hasNext = m_rs.next();\n\n // special case for handling a filter for next\n if (m_filter != null)\n {\n // only execute if we are not currently at the\n // end of the result set\n while (hasNext && !m_filter.accept(m_data, getFilterVals()))\n {\n // since we are not accepting this row\n // move the position forward and keep\n // checking, if hasNext == false, that\n // means we are at the end\n hasNext = m_rs.next();\n }\n }\n return hasNext;\n }", "private void transformRows() {\n this.rowCounts = this.rowDeduplicator.values().toIntArray();\n }", "public ListIterator<T> getAllByRowsIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "@Override\r\n\t public void onEachRow(String rowID, O2GRow rowData) {\n\t O2GTableColumnCollection collection = rowData.getColumns();\r\n\t for (int i = 0; i < collection.size(); i++) {\r\n\t O2GTableColumn column = collection.get(i);\r\n\t System.out.println(column.getId() + \"=\" + rowData.getCell(i) + \";\");\r\n\t }\r\n\t\t}", "@Override\n public void listRecordsIterative(String query, Map<String, Object> params, AuditResultHandler handler) {\n final String operation = \"listRecordsIterative\";\n int attempt = 1;\n\n while (true) {\n try {\n listRecordsIterativeAttempt(query, params, handler);\n return;\n } catch (RuntimeException ex) {\n attempt = baseHelper.logOperationAttempt(null, operation, attempt, ex, null);\n }\n }\n }", "public void run() {\n\t\t\t//\t\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tint no = 0;\n\t\t\tdataSql = getSQL();\n\t\t\t//\tRow\n\t\t\tint row = 0;\n\t\t\t//\tDelete Row\n\t\t\tdetail.setRowCount(row);\n\t\t\ttry {\n\t\t\t\tm_pstmt = getStatement(dataSql);\n\t\t\t\tlog.fine(\"Start query - \"\n\t\t\t\t\t\t+ (System.currentTimeMillis() - start) + \"ms\");\n\t\t\t\tm_rs = m_pstmt.executeQuery();\n\t\t\t\tlog.fine(\"End query - \" + (System.currentTimeMillis() - start)\n\t\t\t\t\t\t+ \"ms\");\n\t\t\t\t//\tLoad Table\n\t\t\t\trow = detail.loadTable(m_rs);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, dataSql, e);\n\t\t\t}\n\t\t\tclose();\n\t\t\t//\n\t\t\t//no = detail.getRowCount();\n\t\t\tlog.fine(\"#\" + no + \" - \" + (System.currentTimeMillis() - start)\n\t\t\t\t\t+ \"ms\");\n\t\t\tdetail.autoSize();\n\t\t\t//\n\t\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\t\tsetStatusLine(\n\t\t\t\t\tInteger.toString(no) + \" \"\n\t\t\t\t\t\t\t+ Msg.getMsg(Env.getCtx(), \"SearchRows_EnterQuery\"),\n\t\t\t\t\tfalse);\n\t\t\tsetStatusDB(Integer.toString(no));\n\t\t\tif (no == 0)\n\t\t\t\tlog.fine(dataSql);\n\t\t\telse {\n\t\t\t\tdetail.getSelectionModel().setSelectionInterval(0, 0);\n\t\t\t\tdetail.requestFocus();\n\t\t\t}\n\t\t\tisAllSelected = isSelectedByDefault();\n\t\t\tselectedRows(detail);\n\t\t\t//\tSet Collapsed\n\t\t\tif(row > 0)\n\t\t\t\tcollapsibleSearch.setCollapsed(isCollapsibleByDefault());\n\t\t}", "List<String[]> consumeQueryResult(ExecutionContext context, int startRow, int endRow) throws ExecutorException;", "public void writeNext(ArrowRecordBatch recordBatch) throws IOException {\n wrapper.writeNext(parquetWriterHandler, recordBatch);\n }", "protected void readAllData() {\n \n String query = buildDataQuery();\n \n try {\n ResultSet rs = executeQuery(query);\n ResultSetMetaData md = rs.getMetaData();\n \n //Construct the internal data containers\n _dataMap = new LinkedHashMap<String,double[]>();\n _textDataMap = new LinkedHashMap<String,String[]>();\n \n //Make containers to collect data as we get it from the ResultSet\n int ncol = md.getColumnCount();\n ResizableDoubleArray[] dataArrays = new ResizableDoubleArray[ncol]; //tmp holder for numeric data\n List<String>[] textDataLists = new List[ncol]; //tmp holder for text data\n for (int i=0; i<ncol; i++) {\n dataArrays[i] = new ResizableDoubleArray();\n textDataLists[i] = new ArrayList<String>();\n }\n\n //Define a Calendar so we get our times in the GMT time zone.\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n \n //Read data from the result set into the ResizableDoubleArray-s which are already in the _dataArrayMap.\n while (rs.next()) { \n for (int i=0; i<ncol; i++) {\n double d = Double.NaN;\n //Check type and read as appropriate\n //TODO: check for other variation of time and text types\n int typeID = md.getColumnType(i+1); \n \n if (typeID == java.sql.Types.TIMESTAMP) { //TODO: test for DATE and TIME types?\n //We need to convert timestamps to numerical values.\n Timestamp ts = rs.getTimestamp(i+1, cal);\n d = ts.getTime();\n } else if (typeID == java.sql.Types.VARCHAR || typeID == java.sql.Types.CHAR) {\n //Text column. Save strings apart from other data.\n //They will appear as NaNs in the numeric data values.\n String s = rs.getString(i+1);\n textDataLists[i].add(s);\n } else d = rs.getDouble(i+1);\n \n dataArrays[i].addElement(d);\n }\n }\n \n //Extract the primitive arrays from the ResizableDoubleArray-s and put in data map.\n //Segregate the text data. Don't bother to save \"data\" (NaNs) for String types.\n for (int i=0; i<ncol; i++) {\n String name = md.getColumnName(i+1);\n int typeID = md.getColumnType(i+1);\n if (typeID == java.sql.Types.VARCHAR || typeID == java.sql.Types.CHAR) { \n String[] text = new String[1];\n text = (String[]) textDataLists[i].toArray(text);\n _textDataMap.put(name, text);\n } else {\n double[] data = dataArrays[i].getElements();\n _dataMap.put(name, data);\n }\n }\n \n } catch (SQLException e) {\n String msg = \"Unable to process database query: \" + query;\n _logger.error(msg, e);\n throw new TSSException(msg, e);\n } \n \n }", "public List<SSTableReader> finish()\n {\n super.finish();\n return finished();\n }", "protected void handleMultipleRowsFound()\r\n/* 44: */ throws DataAccessException\r\n/* 45: */ {\r\n/* 46:103 */ throw new IncorrectResultSizeDataAccessException(\r\n/* 47:104 */ \"LobStreamingResultSetExtractor found multiple rows in database\", 1);\r\n/* 48: */ }", "public void read(int rowId, GenericRow buffer) {\n if (_sortedRowIds != null) {\n rowId = _sortedRowIds[rowId];\n }\n _fileReader.read(rowId, buffer);\n }", "@Nullable\n\tprotected abstract T readCursor(ResultSet rs, int currentRow) throws SQLException;", "void getRowKeys(Iterable<ConsumerGroupConfig> consumerGroupConfigs, QueueEntry queueEntry, byte[] rowKeyPrefix,\n long writePointer, int counter, Collection<byte[]> rowKeys);", "private void iterateXlsRow(XSSFSheet sheet) {\n Iterator rowIterator;\n XSSFRow row;\n rowIterator = sheet.rowIterator();\n String time;\n String StudentName;\n String classNumber;\n String reason;\n DataFormatter formatter = new DataFormatter();\n\n while (rowIterator.hasNext()) {\n row = (XSSFRow) rowIterator.next();\n if (isEmptyCell(row.getCell(0))) {\n time = \"NINCS ADAT\";\n } else {\n time = formatter.formatCellValue(row.getCell(0)).trim();\n }\n if (isEmptyCell(row.getCell(1))) {\n StudentName = \"NINCS ADAT\";\n } else {\n StudentName = row.getCell(1).getStringCellValue().trim();\n }\n if (isEmptyCell(row.getCell(2))) {\n classNumber = \"NINCS ADAT\";\n } else {\n classNumber = row.getCell(2).getStringCellValue().trim();\n }\n if (isEmptyCell(row.getCell(3))) {\n reason = \"NINCS ADAT\";\n } else {\n reason = row.getCell(3).getStringCellValue().trim();\n }\n Student student = new Student(time, StudentName, classNumber, reason, classNumber + StudentName);\n xlsxDataList.add(student);\n }\n }", "private void evaluateData () {\n long rows = DatabaseUtils.longForQuery(sqliteDBHelper.openSqlDatabaseReadable(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME, null);\r\n // calculate the amount of tasks (thread) depending on the MaxBatchSize\r\n tasks = rows >= MaxBatchSize? (int)(rows/MaxBatchSize + 1):1;\r\n // set the amount of finished tasks to 0\r\n finished = 0;\r\n // send the amount of task to the main activity so it can be displayed in the progress dialog\r\n sendTaskAmount(tasks + 1);\r\n // create a thread pool with tasks amount of threads\r\n final ExecutorService executorService = Executors.newFixedThreadPool(tasks);\r\n // create a list which holds all the tasks to be executed\r\n final List<ProcessingDataHandler> taskList = new LinkedList<>();\r\n // for each task create a batch of MaxBatchSize rows to evaluate\r\n for (int i = 0; i < tasks; i++) {\r\n // pass the offset (where to start) and the limit (how many rows)\r\n taskList.add(new ProcessingDataHandler(i*MaxBatchSize, MaxBatchSize));\r\n }\r\n // invoke all the task at once\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n executorService.invokeAll(taskList);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }).start();\r\n\r\n updateProgressDialog();\r\n }", "protected abstract InputStream getTableInputStream() throws IOException;", "@Override\n public long readBatchData() throws SQLException {\n return (-1);\n }", "@Override\n\tpublic int doStartTag() throws JspTagException {\n\t\tApplicationContext aContext = WebApplicationContextUtils.getWebApplicationContext(this.pageContext.getServletContext());\n\t\tJdbcTemplate aTemplate = new JdbcTemplate((DataSource) aContext.getBean(\"dataSource\"));\n\t\tList rset = null;\n\n\t\tif (id == null) {\n\t\t\tid = \"\";\n\t\t}\n\n\t\tpageContext.setAttribute(\"__\" + id + \"_MaxRows\", maxRows);\n\n\t\ttry {\n\t\t\tgrabAll = false;\n\t\t\tif (maxRows == 0) {\n\t\t\t\trset = aTemplate.queryForList(sqlStatement);\n\t\t\t\tgrabAll = true;\n\t\t\t} else {\n\t\t\t\trset = aTemplate.queryForList(sqlStatement + \" LIMIT \" + startOffset + \",\" + maxRows);\n\t\t\t}\n\t\t\tif (rset != null && rset.size() > 0) {\n\t\t\t\tint rowc = getRowCount( aTemplate);\n\n\t\t\t\tListIterator aIt = rset.listIterator();\n\t\t\t\tpageContext.setAttribute(\"__\" + id + \"_data\", aIt);\n\t\t\t\tpageContext.setAttribute(\"__\" + id + \"_ShowTableRownum\", rowc);\n\t\t\t\treturn EVAL_BODY_BUFFERED;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error( \"doStartTag (sql: \" + sqlStatement + \")\", e);\n\t\t\tAgnUtils.sendExceptionMail(\"sql: \" + sqlStatement, e);\n\t\t\tthrow new JspTagException(\"Error: \" + e);\n\t\t}\n\t\treturn SKIP_BODY;\n\t}", "T getRowData(int rowNumber);", "@Override\n\t\t\t\tpublic void rowsUpdated(int firstRow, int endRow) {\n\n\t\t\t\t}", "@Override\n public Iterator<Iterable<T>> iterator() {\n return new TableIterator();\n }", "public DataRow mapRow(ResultSet rs, int rowNum) throws SQLException {\n\t\t\n\t\n\t\tDataRow row = new DataRow();\n\t\t//if (rs.isClosed()){return null;}\n\t\tint cols = rs.getMetaData().getColumnCount();\n\t\t\n\t\tfor (int i=1 ; i <= cols; i++){\n\t\t\tDefaultLobHandler blob = new DefaultLobHandler();\n\t\t\trow.setValue(rs.getMetaData().getColumnName(i), blob.getBlobAsBinaryStream(rs, i));\n\t\t}\n\t\n\t\treturn row;\n\t}", "protected boolean areResultSetRowsTransformedImmediately() {\n \t\treturn false;\n \t}", "void onNext(CorfuStreamEntries results);", "public final void nextRow() {\n this.line++;\n }", "public List getRows() \n {\n return rows;\n }", "@Override\n public boolean isOpen() {\n return rows != null;\n }", "@Override\n public ResultSet readTable (String tableName, String[] columns, int nThread) throws SQLException {\n tableName = tableName == null ? this.options.getSourceTable() : tableName;\n\n // If columns parameter is null, get it from options\n String allColumns = this.options.getSourceColumns() == null ? \"*\" : this.options.getSourceColumns();\n\n long offset = nThread * chunkSize;\n String sqlCmd;\n\n // Read table with source-query option specified\n if (options.getSourceQuery() != null && !options.getSourceQuery().isEmpty()) {\n sqlCmd = \"SELECT * FROM (\" +\n options.getSourceQuery() + \") as T1 \";\n } else {\n\n sqlCmd = \"SELECT \" +\n allColumns +\n \" FROM \" +\n escapeTableName(tableName);\n\n // Source Where\n if (options.getSourceWhere() != null && !options.getSourceWhere().isEmpty()) {\n sqlCmd = sqlCmd + \" WHERE \" + options.getSourceWhere();\n }\n\n }\n\n sqlCmd = sqlCmd + \" LIMIT ? OFFSET ? \";\n\n if (this.options.getJobs() == nThread + 1) {\n return super.execute(sqlCmd, \"-1\", offset);\n } else {\n return super.execute(sqlCmd, chunkSize, offset );\n }\n\n }", "@Override\n\t\t\tpublic void rowProcessed(Object[] row, ParsingContext context) {\n\t\t\t\tbar.update((int) context.currentRecord(),nrRows);\n\t\t\t\tif (context.currentRecord()==1) {\n\t\t\t\t\twriter.writeRow(context.headers());\n\t\t\t\t}\n\t\t\t\tif (!row.toString().isEmpty()) {\t\t\t\t\t\n\t\t\t\t\twriter.writeRow(row);\n\t\t\t\t}\n\t\t\t}", "@Override\n public boolean next(Void aVoid, ArrayWritable arrayWritable) throws IOException {\n boolean result = this.parquetReader.next(aVoid, arrayWritable);\n if(!result) {\n // if the result is false, then there are no more records\n return false;\n } else {\n // TODO(VC): Right now, we assume all records in log, have a matching base record. (which would be true until we have a way to index logs too)\n // return from delta records map if we have some match.\n String key = arrayWritable.get()[HoodieRealtimeInputFormat.HOODIE_RECORD_KEY_COL_POS].toString();\n if (LOG.isDebugEnabled()) {\n LOG.debug(String.format(\"key %s, base values: %s, log values: %s\",\n key, arrayWritableToString(arrayWritable), arrayWritableToString(deltaRecordMap.get(key))));\n }\n if (deltaRecordMap.containsKey(key)) {\n Writable[] replaceValue = deltaRecordMap.get(key).get();\n Writable[] originalValue = arrayWritable.get();\n System.arraycopy(replaceValue, 0, originalValue, 0, originalValue.length);\n arrayWritable.set(originalValue);\n }\n return true;\n }\n }", "Stream<DataFrameValue<R,C>> values();", "@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }" ]
[ "0.60364115", "0.5951553", "0.5836976", "0.5711142", "0.5710968", "0.57054967", "0.56997573", "0.5596684", "0.5550011", "0.55404896", "0.55373424", "0.546494", "0.5420948", "0.5414238", "0.5402152", "0.5367073", "0.53530264", "0.5344145", "0.5343114", "0.5333539", "0.53212965", "0.5300539", "0.5297352", "0.5273386", "0.5272054", "0.52542037", "0.5231226", "0.5218269", "0.5216849", "0.5200407", "0.5185753", "0.51808333", "0.516702", "0.5151917", "0.5090833", "0.5090041", "0.50656235", "0.50618464", "0.5061633", "0.5059393", "0.5052197", "0.5043533", "0.5040945", "0.50404996", "0.503716", "0.498471", "0.49842566", "0.49408516", "0.4931254", "0.4928808", "0.49273148", "0.4927137", "0.4924559", "0.49210444", "0.49120644", "0.49008647", "0.48799616", "0.48773792", "0.48662996", "0.48456562", "0.48276016", "0.48254073", "0.48195493", "0.4817972", "0.48016775", "0.47929707", "0.4788457", "0.47824448", "0.47795048", "0.47789702", "0.47765774", "0.4772014", "0.4771985", "0.47680122", "0.47665465", "0.4759399", "0.47557336", "0.47550964", "0.4754476", "0.47519913", "0.47484505", "0.47418836", "0.47416332", "0.4739723", "0.47381553", "0.47369653", "0.4731396", "0.4730701", "0.47249544", "0.47148493", "0.4710373", "0.47032842", "0.47006088", "0.4698626", "0.46980307", "0.469684", "0.4693333", "0.46896172", "0.46762538", "0.4674081" ]
0.5559776
8
Resolves an iterable collection of KijiRestEntityIds to EntityId object. This does not handle wildcards
private List<EntityId> getEntityIdsFromKijiRestEntityIds( List<KijiRestEntityId> kijiRestEntityIds, KijiTableLayout layout) throws IOException { Set<EntityId> entityIds = Sets.newHashSet(); for (KijiRestEntityId kijiRestEntityId : kijiRestEntityIds) { EntityId eid = kijiRestEntityId.resolve(layout); if (!entityIds.contains(eid)) { entityIds.add(eid); } } return Lists.newArrayList(entityIds); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<T> getEntitiesByIds(List<ID_TYPE> ids) throws NotImplementedException;", "public static List<Long> extractIds(Collection<? extends Entity<?>> entities) {\n if (entities == null) {\n return null;\n }\n List<Long> r = new ArrayList<Long>(entities.size());\n for (Entity<?> entity : entities) {\n r.add(entity.getId());\n }\n return r;\n }", "List<String> findAllIds();", "Set<II> getIds();", "List<T> findAllById(List<Object> ids) throws Exception;", "@Override\n public List<T> findAllById(Iterable<Integer> ids) {\n List<T> entities = new ArrayList<>();\n for (int id : ids) {\n entities\n .add(findById(id).orElseThrow(() -> new EntityNotFoundException(\"ID Not found:\" + id)));\n }\n return entities;\n }", "public static <T extends Entidad> List<Long> buildIdList(Collection<T> entityList) {\r\n\t\tList<Long> ids = new ArrayList<Long>();\r\n\t\tif (!ObjectUtils.isEmpty(entityList)) {\r\n\t\t\tfor (T entity: entityList) {\r\n\t\t\t\tids.add(entity.getId());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ids;\r\n\t}", "public List getAllIds();", "List<E> findAll(Iterable<ID> identifiers);", "public List<String> getIdList(RequestInfo requestInfo, String tenantId, String idName, String idformat, int count) {\n\t\t\n\t\tList<IdRequest> reqList = new ArrayList<>();\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\treqList.add(IdRequest.builder().idName(idName).format(idformat).tenantId(tenantId).build());\n\t\t}\n\n\t\tIdGenerationRequest request = IdGenerationRequest.builder().idRequests(reqList).requestInfo(requestInfo).build();\n\t\tStringBuilder uri = new StringBuilder(configs.getIdGenHost()).append(configs.getIdGenPath());\n\t\tIdGenerationResponse response = mapper.convertValue(restRepo.fetchResult(uri, request).get(), IdGenerationResponse.class);\n\t\t\n\t\tList<IdResponse> idResponses = response.getIdResponses();\n\t\t\n if (CollectionUtils.isEmpty(idResponses))\n throw new CustomException(\"IDGEN ERROR\", \"No ids returned from idgen Service\");\n \n\t\treturn idResponses.stream().map(IdResponse::getId).collect(Collectors.toList());\n\t}", "Collection<?> idValues();", "protected List<?> keysToIds (List<Key<T>> keys){\n \tArrayList ids = new ArrayList(keys.size()*2);\n \tfor(Key<T> key : keys)\n \t\tids.add(key.getId());\n \treturn ids;\n }", "java.util.List<java.lang.Long> getIdsList();", "public List<Produto> findByIdIn(Integer... ids);", "public static <T extends Entidad> List<Long> buildIdList(T... entityList) {\r\n\t\tList<Long> ids = new ArrayList<Long>();\r\n\t\tif (!ObjectUtils.isEmpty(entityList)) {\r\n\t\t\tfor (T entity: entityList) {\r\n\t\t\t\tids.add(entity.getId());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ids;\r\n\t}", "@Override\n public List<Service> findByIdIn(List<String> ids) {\n List<ObjectId> objIds = new ArrayList<ObjectId>();\n for (String id : ids){\n objIds.add(new ObjectId(id));\n }\n\n List<Service> results = template.find(\n new Query(Criteria.where(\"_id\").in(objIds)),\n Service.class);\n\n return results;\n }", "Collection<T> findAll(Iterable<I> ids);", "private void exposeIds(RepositoryRestConfiguration config) {\n /*\n * expose enttiy ids\n */\n // get a list of all entity classes from the entity manager\n Set<EntityType<?>> entities= this.entityManager.getMetamodel().getEntities();\n // create a array of entity types\n List<Class> entityClasses= new ArrayList<>();\n for(EntityType tempEnityType: entities){\n entityClasses.add(tempEnityType.getJavaType());\n }\n Class[] domainTypes = entityClasses.toArray(new Class[0]);\n config.exposeIdsFor(domainTypes);\n\n }", "public interface LazyIdExtractor\n{\n\t/**\n\t * Return the ID of the specified entity\n\t * @param entity The entity to get the ID from\n\t * @return The ID of the entity\n\t */\n\tSerializable extractId(Object entity);\n\n\t/**\n\t * Return the ID properties name of the entity\n\t * @param entity The entity to get the id property name from\n\t * @return the properties name that is the identifier of the specified entity\n\t */\n\tString[] extractIdPropertyNames(Object entity);\n}", "Enumeration getIds();", "public interface QuantitativeMultipleAnswerQuestionRepository extends JpaRepository<QuantitativeMultipleAnswerQuestion, Long>, JpaSpecificationExecutor<QuantitativeMultipleAnswerQuestion> {\n\n @Query(\"select q from QuantitativeMultipleAnswerQuestion q where q.id in :ids\")\n List<QuantitativeMultipleAnswerQuestion> findAll(@Param(\"ids\") List<Long> ids);\n\n}", "String[] extractIdPropertyNames(Object entity);", "List<E> mapToEntity(List<D> dto);", "Serializable extractId(Object entity);", "protected EntityList encodeList(Object object, MapEntity map) {\n\t\tif (map == null || object == null) {\n\t\t\treturn null;\n\t\t}\n\t\tEntityList target = (EntityList) map.getTarget();\n\t\tSimpleList<String> ignoreIds = new SimpleList<String>();\n\t\tif (object instanceof Collection<?>) {\n\t\t\tCollection<?> list = (Collection<?>) object;\n\t\t\tfor (Iterator<?> i = list.iterator(); i.hasNext();) {\n\t\t\t\tObject item = i.next();\n\t\t\t\t/* DEEP 0 */\n\t\t\t\tEntity ignore = encode(item, map);\n\t\t\t\tif (ignore != null) {\n\t\t\t\t\tignoreIds.add(ignore.getString(ID));\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (object.getClass().isArray()) {\n\t\t\tTokener tokener = map.getTokener();\n\t\t\tfor (Object item : ((Object[]) object)) {\n\t\t\t\tif (tokener.getKey(item) == null) {\n\t\t\t\t\t/* DEEP 0 */\n\t\t\t\t\tEntity ignore = encode(item, map);\n\t\t\t\t\tif (ignore != null) {\n\t\t\t\t\t\tignoreIds.add(ignore.getString(ID));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn target;\n\t\t} else {\n\t\t\tEntity ignore = encode(object, map);\n\t\t\tif (ignore != null) {\n\t\t\t\tignoreIds.add(ignore.getString(ID));\n\t\t\t}\n\t\t}\n\t\tif (target.isComparator() == false) {\n\t\t\tSimpleIterator<Entity> queueIterator = new SimpleIterator<Entity>(target);\n\t\t\twhile (queueIterator.hasNext()) {\n\t\t\t\tEntity json = queueIterator.next();\n\t\t\t\tString id = json.getString(ID);\n\t\t\t\tif (ignoreIds.contains(id) == false) {\n\t\t\t\t\tObject item = this.getObject(id);\n\t\t\t\t\tif (item != null) {\n\t\t\t\t\t\tString className = item.getClass().getName();\n\t\t\t\t\t\tencode(item, className, map, null);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn target;\n\t}", "public static List<ID> idListFromRows(List<IndexRow> indexRows) {\r\n\t\tif (indexRows == null) {\r\n\t\t\treturn Collections.emptyList();\r\n\t\t}\r\n\t\tList<ID> idList = new ArrayList<ID>(indexRows.size());\r\n\t\tfor (IndexRow indexRow : indexRows) {\r\n\t\t\tidList.add(indexRow.getArtifactID());\r\n\t\t}\r\n\t\treturn idList;\r\n\t}", "public List<Long> convertProjectCodesToIds(List<String> projectCodes, String schema);", "@GetMapping(\"/listInByIds\")\n public R<List<User>> listInByIds(@RequestParam(value = \"ids\") List<String> ids) {\n return R.ok(userService.selectBatchIds(ids));\n }", "List<Team> findByIds(List<Long> teamIds);", "protected void handleEntitiesIndividually() {\n\n\t\tfinal Set<Long> originalBatch = getUidsToLoad();\n\t\tfinal Set<Long> batchOfOne = new HashSet<Long>();\n\n\t\t/**\n\t\t * We replace the batch of all the uids with our own which we'll only put one uid at a time.\n\t\t */\n\t\tsetBatch(batchOfOne);\n\n\t\tLOG.info(\"Loading \" + originalBatch.size() + \" entities individually\");\n\n\t\tfor (final Long uid : originalBatch) {\n\n\t\t\ttry {\n\n\t\t\t\tbatchOfOne.clear();\n\t\t\t\tbatchOfOne.add(uid);\n\n\t\t\t\tfinal Collection<ENTITY> loadedEntity = loadBatch();\n\t\t\t\tgetPipelinePerformance().addCount(\"loader:entities_loaded_individually\", loadedEntity.size());\n\n\t\t\t\tfor (final ENTITY entity : loadedEntity) {\n\t\t\t\t\tgetNextStage().send(entity);\n\t\t\t\t\tgetPipelinePerformance().addCount(\"loader:entities_out\", 1);\n\n\t\t\t\t}\n\t\t\t} catch (final Exception e) {\n\t\t\t\tgetPipelinePerformance().addCount(\"loader:individual_entity_loading_failures\", 1);\n\n\t\t\t\tLOG.error(\"Could not load entity with uid \" + uid + \" for indexing, this entity will not be indexed. \", e);\n\t\t\t}\n\n\t\t}\n\n\t\t/** Put the original set of uids back. */\n\t\tsetBatch(originalBatch);\n\n\t}", "private static <T extends AbstractApiIdentifiableDTO> List<Long> generateIdList(List<T> idList) {\n List<Long> results = new ArrayList<>(idList.size());\n\n for (T idSingle : idList) {\n results.add(idSingle.getId());\n }\n\n return results;\n }", "private FederatedAuthenticatorConfig[] extractIdpEntityIdFromMetadata(IdentityProvider identityProvider)\n throws IdentityProviderManagementException {\n\n List<MetadataConverter> metadataConverters = IdpMgtServiceComponentHolder.getInstance().getMetadataConverters();\n if (metadataConverters.isEmpty()) {\n throw new IdentityProviderManagementException(\"Metadata Converter is not set\");\n }\n\n FederatedAuthenticatorConfig[] federatedAuthenticatorConfigs =\n identityProvider.getFederatedAuthenticatorConfigs();\n\n for (FederatedAuthenticatorConfig federatedAuthenticatorConfig : federatedAuthenticatorConfigs) {\n Property[] properties = federatedAuthenticatorConfig.getProperties();\n if (ArrayUtils.isEmpty(properties)) {\n return federatedAuthenticatorConfigs;\n }\n for (Property property : properties) {\n if (property == null) {\n continue;\n }\n // Searching for the metadata property to extract data.\n // Ignoring the properties with blank names and names not equal to meta_data.\n if (StringUtils.isBlank(property.getName()) ||\n !property.getName().contains((IdPManagementConstants.META_DATA))) {\n continue;\n }\n for (MetadataConverter metadataConverter : metadataConverters) {\n if (!metadataConverter.canHandle(property)) {\n continue;\n }\n // Extracting IdpEntityId property and adding to properties of federatedAuthenticatorConfig.\n Property idpEntityIdFromMetadata = extractPropertyFromMetadata(metadataConverter, properties,\n IdentityApplicationConstants.Authenticator.SAML2SSO.IDP_ENTITY_ID);\n if (idpEntityIdFromMetadata != null) {\n ArrayList<Property> propertiesList = new ArrayList<>(Arrays.asList(properties));\n propertiesList.add(idpEntityIdFromMetadata);\n properties = propertiesList.toArray(properties);\n federatedAuthenticatorConfig.setProperties(properties);\n break;\n }\n }\n }\n }\n return federatedAuthenticatorConfigs;\n }", "public List<Long> getIdList(String key) throws IdentifierException {\n Object value = get(key);\n if (!(value instanceof List) || ((List)value).isEmpty() || !(((List)value).get(0) instanceof String))\n return emptyLongList;\n List<String> stringList = (List<String>)value;\n List<Long> longList = new ArrayList<>(stringList.size());\n for (String longString : stringList)\n longList.add(Utils.stringToId(longString));\n return longList;\n }", "public interface DemoRepositoryCustom {\n\n List<Demo> findInSet(Collection<Long> ids);\n}", "private ArrayList<String> obtenerIds(ArrayList<String> values){\n\t\tArrayList<String> ids = new ArrayList<>();\n\t\tfor(String valor : values){\n\t\t\tids.add(postresId.get(valor));\n\t\t}\n\t\treturn ids;\n\t}", "public long getEntityId();", "public abstract List<T> convertToEntities(List<D> dtos);", "public interface EntityId {\r\n\r\n public static EntityId of(String entityName) {\r\n return Seid.of(entityName);\r\n }\r\n\r\n public static EntityId of(String propName, Object propValue) {\r\n return Seid.of(propName, propValue);\r\n }\r\n\r\n public static EntityId of(String propName1, Object propValue1, String propName2, Object propValue2) {\r\n return Seid.of(propName1, propValue1, propName2, propValue2);\r\n }\r\n\r\n public static EntityId of(String propName1, Object propValue1, String propName2, Object propValue2, String propName3, Object propValue3) {\r\n return Seid.of(propName1, propValue1, propName2, propValue2, propName3, propValue3);\r\n }\r\n\r\n public static EntityId of(Map<String, Object> nameValues) {\r\n return Seid.of(nameValues);\r\n }\r\n\r\n /**\r\n * Method entityName.\r\n * \r\n * @return String\r\n */\r\n String entityName();\r\n\r\n /**\r\n * Method get.\r\n * \r\n * @param propName\r\n * @return T\r\n * @throws NullPonterException\r\n * if the property is null and {@code T} is primitive type.\r\n */\r\n <T> T get(String propName);\r\n\r\n /**\r\n * Method get.\r\n * \r\n * @param clazz\r\n * @param propName\r\n * @return T\r\n */\r\n <T> T get(Class<T> clazz, String propName);\r\n\r\n /**\r\n * Method set.\r\n * \r\n * @param propName\r\n * @param propValue\r\n * @return\r\n */\r\n EntityId set(String propName, Object propValue);\r\n\r\n /**\r\n * \r\n * @param nameValues\r\n */\r\n void set(Map<String, Object> nameValues);\r\n\r\n /**\r\n * Method remove.\r\n * \r\n * @param propName\r\n * @return\r\n */\r\n Object remove(String propName);\r\n\r\n /**\r\n * \r\n * @param propNames\r\n */\r\n void removeAll(Collection<String> propNames);\r\n\r\n /**\r\n * \r\n * @param containsKey\r\n * @return\r\n */\r\n boolean containsKey(String propName);\r\n\r\n /**\r\n * Method keySet.\r\n * \r\n * @return Set<String>\r\n */\r\n Set<String> keySet();\r\n\r\n /**\r\n * \r\n * @return\r\n */\r\n Set<Map.Entry<String, Object>> entrySet();\r\n\r\n int size();\r\n\r\n /**\r\n * \r\n * @return\r\n */\r\n boolean isEmpty();\r\n\r\n /**\r\n */\r\n void clear();\r\n\r\n /**\r\n * \r\n * @return EntityId\r\n */\r\n EntityId copy();\r\n}", "@SuppressWarnings(\"unchecked\")\n private Revisions<Integer, T> getEntitiesForRevisions(Collection<Integer> revisionNumbers, ID id, AuditReader reader) {\n\n Class<T> type = entityInformation.getJavaType();\n Class<T> revisionEntityClass = (Class<T>) revisionEntityInformation.getRevisionEntityClass();\n Map<Number, T> revisionEntities = reader.findRevisions(revisionEntityClass, new HashSet<>(revisionNumbers));\n\n Map<Integer, T> revisions = revisionNumbers.stream()\n .collect(\n Collectors.toMap(\n number -> number,\n number -> reader.find(type, id, number),\n (a, b) -> b,\n () -> new HashMap<>(revisionNumbers.size())\n )\n );\n\n return Revisions.of(this.toRevisions(revisions, revisionEntities));\n }", "private List<Integer> parseIds(Document doc)\r\n {\n List<Element> els = doc.selectNodes(\"ids/id\");\r\n logger.debug(\"els: \" + els);\r\n \r\n if (els == null) {\r\n return null;\r\n }\r\n \r\n List<Integer> ids = new ArrayList<Integer>();\r\n for (Element el : els) {\r\n Integer id = XmlParser.parseIntElementData(el);\r\n if (id != null) {\r\n ids.add(id);\r\n }\r\n }\r\n logger.debug(\"ids: \" + ids);\r\n return ids;\r\n }", "Collection<Point> getCoordinates(int... ids);", "@Repository\npublic interface ITagMapper extends IBaseMapper<Tag>{\n\n List<Tag> queryByIds(@Param(\"array\")Integer[] ids)throws Exception;\n\n}", "private List<Integer> findAllId(EntityManager em) {\n TypedQuery<Permesso> permessoQuery = em.createQuery(\"SELECT c FROM com.hamid.entity.Permesso c\", Permesso.class);\n List<Permesso> permessoRes = permessoQuery.getResultList();\n List<Integer> p_id = new ArrayList<Integer>();\n for (Permesso p : permessoRes) {\n int p_id1 = p.getPermesso_id();\n p_id.add(p_id1);\n }\n return p_id;\n }", "<T> List<T> findByIds(String typeName, Class<T> clazz, String... ids);", "List<EssayQuestionDetail> findByIdIn(List<Long> detailIds);", "@Override\n public List<LineEntity> findAll(Iterable<Long> ids) {\n return null;\n }", "private String getIds(List<UserTO> userList) {\r\n\t\tSet<String> idSet = new HashSet<String>();\r\n\t\tfor (UserTO user : userList) {\r\n\t\t\tidSet.add(user.getOrgNodeId());\r\n\t\t\tif (null != user.getOrgNodeCodePath()) {\r\n\t\t\t\tString[] orgHierarchy = user.getOrgNodeCodePath().split(\"~\");\r\n\t\t\t\tSet<String> orgHierarchySet = new HashSet<String>(Arrays.asList(orgHierarchy));\r\n\t\t\t\tidSet.addAll(orgHierarchySet);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString ids = idSet.toString();\r\n\t\tids = ids.substring(1, ids.length() - 1);\r\n\t\treturn ids;\r\n\t}", "public StrColumn getEntityIdList() {\n return delegate.getColumn(\"entity_id_list\", DelegatingStrColumn::new);\n }", "@Override\n\tpublic Object[] getIds() {\n\t\treturn null;\n\t}", "@Query(\"SELECT e.stations FROM EmployeeEntity e where e.id in :employeeId\")\n List<StationEntity> getStationsOfEmployee(@Param(\"employeeId\") long employeeId);", "private static <T extends AbstractApiIdentifiableDTO> Map<Long, List<T>> generateIdMapList(List<T> idList) {\n Map<Long, List<T>> results = new HashMap<>();\n\n for (T idSingle : idList) {\n Long sourceId = idSingle.getId();\n if (results.containsKey(sourceId)) {\n results.get(sourceId).add(idSingle);\n } else {\n // ID didn't exist so add a new list\n List<T> list = new ArrayList<>(1);\n list.add(idSingle);\n results.put(sourceId, list);\n }\n }\n\n return results;\n }", "String[] _truncatable_ids();", "Collection<E> save(Iterable<E> entities);", "public List<cn.edu.kmust.flst.domain.flst.tables.pojos.Article> fetchByArticleId(Integer... values) {\n return fetch(Article.ARTICLE.ARTICLE_ID, values);\n }", "public static int[] msgSetToIds(final Set<DcMsg> dcMsgs) {\n int cnt = dcMsgs==null? 0 : dcMsgs.size();\n int[] ids = new int[cnt];\n int i = 0;\n for (DcMsg dcMsg : dcMsgs) {\n ids[i++] = dcMsg.getId();\n }\n return ids;\n }", "public List<Integer> getIdsByNames(List<String> names, int start, int numOfRows) throws MiddlewareQueryException {\r\n\r\n if (names == null || names.isEmpty()) {\r\n return new ArrayList<Integer>();\r\n }\r\n\r\n try {\r\n SQLQuery query = getSession().createSQLQuery(Marker.GET_IDS_BY_NAMES);\r\n query.setParameterList(\"markerNameList\", names);\r\n query.setFirstResult(start);\r\n query.setMaxResults(numOfRows);\r\n List<Integer> markerIds = query.list();\r\n return markerIds;\r\n } catch (HibernateException e) {\r\n \tlogAndThrowException(\"Error with getIdsByNames(names=\" + names + \") query from Marker: \" + e.getMessage(), e);\r\n }\r\n return new ArrayList<Integer>();\r\n }", "public void setIds(String ids) {\n this.ids = ids;\n }", "public Collection pesquisarIdsLocalidades() throws ErroRepositorioException;", "public List<String> searchForIds(String theQueryUrl) {\n\t\tIBundleProvider result = searchForBundleProvider(theQueryUrl);\n\n\t\t// getAllResources is not safe as size is not always set\n\t\treturn result.getResources(0, Integer.MAX_VALUE).stream()\n\t\t\t\t.map(resource -> resource.getIdElement().getIdPart())\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Override\n\tpublic <T extends BasePojo> List<T> queryByIds(String ids) {\n\t\treturn null;\n\t}", "public String getIds() {\n return this.ids;\n }", "public interface JpaQueryDao<ID, A> extends JpaRepository<A, Long> {\n\n CompletableFuture<A> getById(ID id);\n\n\n CompletableFuture<List<A>> getByIdIn(Collection<ID> ids);\n}", "Set<DimensionalItemId> getExpressionDimensionalItemIds(String expression, ParseType parseType);", "@Override\n public Iterable<Id> depthIdIterable() {\n return idDag.depthIdIterable();\n }", "private Integer getNewId(){\n List<Integer> allIds = new ArrayList<>();\n for (T entity : allEntities) {\n allIds.add(entity.getId());\n }\n return allIds.size() > 0 ? Collections.max(allIds) + 1 : 1;\n }", "private List<String> getToIds(Collection<XRef> xrefs){\n List<String> toIds = new ArrayList<String>();\n for (XRef xRef : xrefs) {\n toIds.add(xRef.getToEntry().getEntryId());\n }\n return toIds;\n }", "private Map<CollectionCacheableTestId, CollectionCacheableTestValue> findByIdsInternal(Collection<CollectionCacheableTestId> ids) {\n Map<CollectionCacheableTestId, CollectionCacheableTestValue> result = new HashMap<>();\n for (CollectionCacheableTestId id : ids) {\n CollectionCacheableTestValue value = myDbRepository.findById(id);\n // do not explicitly put null values into map\n if (value != null) {\n result.put(id, value);\n }\n }\n return result;\n }", "@Override\n public List<E> get(Long... ids) {\n // TODO Auto-generated method stub\n return null;\n }", "@Secured({ \"ROLE_ADMIN\", \"ROLE_TEACHER\" })\n\t@RequestMapping(method = RequestMethod.GET, value = \"/by_id/{ids}\")\n\tpublic ResponseEntity<?> getById(@PathVariable String ids) {\n\n\t\ttry {\n\t\t\tInteger id = Integer.valueOf(ids);\n\t\t\tif (markRepo.existsById(id)) {\n\t\t\t\treturn new ResponseEntity<MarkEntity>(markRepo.findById(id).get(), HttpStatus.OK);\n\n\t\t\t} else\n\t\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no mark with such ID\"),\n\t\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t} catch (Exception e) {\n\t\t\treturn new ResponseEntity<RestError>(new RestError(1, \"Error ocured: \" + e.getMessage()),\n\t\t\t\t\tHttpStatus.INTERNAL_SERVER_ERROR);\n\t\t}\n\t}", "long getIds(int index);", "List<UserContentFile> findContentFiles(@Param(\"ids\") List<Long> ids);", "java.util.List<java.lang.Integer> getOtherIdsList();", "public BeanIdList findIds() throws SQLException {\n/* 154 */ boolean useBackgroundToContinueFetch = false;\n/* */ \n/* 156 */ this.startNano = System.nanoTime();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 162 */ List<Object> idList = this.query.getIdList();\n/* 163 */ if (idList == null) {\n/* */ \n/* 165 */ idList = Collections.synchronizedList(new ArrayList());\n/* 166 */ this.query.setIdList(idList);\n/* */ } \n/* */ \n/* 169 */ BeanIdList result = new BeanIdList(idList);\n/* */ \n/* 171 */ SpiTransaction t = this.request.getTransaction();\n/* 172 */ Connection conn = t.getInternalConnection();\n/* 173 */ this.pstmt = conn.prepareStatement(this.sql);\n/* */ \n/* 175 */ if (this.query.getBufferFetchSizeHint() > 0) {\n/* 176 */ this.pstmt.setFetchSize(this.query.getBufferFetchSizeHint());\n/* */ }\n/* */ \n/* 179 */ if (this.query.getTimeout() > 0) {\n/* 180 */ this.pstmt.setQueryTimeout(this.query.getTimeout());\n/* */ }\n/* */ \n/* 183 */ this.bindLog = this.predicates.bind(new DataBind(this.pstmt));\n/* */ \n/* 185 */ ResultSet rset = this.pstmt.executeQuery();\n/* 186 */ this.dataReader = new RsetDataReader(rset);\n/* */ \n/* 188 */ boolean hitMaxRows = false;\n/* 189 */ boolean hasMoreRows = false;\n/* 190 */ this.rowCount = 0;\n/* */ \n/* 192 */ DbReadContext ctx = new DbContext();\n/* */ \n/* 194 */ while (rset.next()) {\n/* 195 */ Object idValue = this.desc.getIdBinder().read(ctx);\n/* 196 */ idList.add(idValue);\n/* */ \n/* 198 */ this.dataReader.resetColumnPosition();\n/* 199 */ this.rowCount++;\n/* */ \n/* 201 */ if (this.maxRows > 0 && this.rowCount == this.maxRows) {\n/* 202 */ hitMaxRows = true;\n/* 203 */ hasMoreRows = rset.next();\n/* */ break;\n/* */ } \n/* 206 */ if (this.bgFetchAfter > 0 && this.rowCount >= this.bgFetchAfter) {\n/* 207 */ useBackgroundToContinueFetch = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 212 */ if (hitMaxRows) {\n/* 213 */ result.setHasMore(hasMoreRows);\n/* */ }\n/* */ \n/* 216 */ if (useBackgroundToContinueFetch) {\n/* */ \n/* */ \n/* 219 */ this.request.setBackgroundFetching();\n/* */ \n/* */ \n/* 222 */ BackgroundIdFetch bgFetch = new BackgroundIdFetch(t, rset, this.pstmt, ctx, this.desc, result);\n/* 223 */ FutureTask<Integer> future = new FutureTask<Integer>(bgFetch);\n/* 224 */ this.backgroundExecutor.execute(future);\n/* */ \n/* */ \n/* 227 */ result.setBackgroundFetch(future);\n/* */ } \n/* */ \n/* 230 */ long exeNano = System.nanoTime() - this.startNano;\n/* 231 */ this.executionTimeMicros = (int)exeNano / 1000;\n/* */ \n/* 233 */ return result;\n/* */ } finally {\n/* */ \n/* 236 */ if (!useBackgroundToContinueFetch)\n/* */ {\n/* */ \n/* 239 */ close();\n/* */ }\n/* */ } \n/* */ }", "public abstract List<CustomerOrder> findAll(Iterable<Long> ids);", "public String getConvertToId();", "@Override\n public List<String> ipToIdLookup(List<String> ips)\n {\n log.info(\"Asked IPs -> IDs for: [%s]\", String.join(\",\", ips));\n\n if (ips.isEmpty()) {\n return new ArrayList<>();\n }\n\n // If the first one is not an IP, just assume all the other ones are not as well and just\n // return them as they are. This check is here because Druid does not check if IPs are\n // actually IPs and can send IDs to this function instead\n if (!InetAddresses.isInetAddress(ips.get(0))) {\n log.debug(\"Not IPs, doing nothing\");\n return ips;\n }\n\n final String project = envConfig.getProjectId();\n final String zone = envConfig.getZoneName();\n try {\n Compute computeService = createComputeService();\n Compute.Instances.List request = computeService.instances().list(project, zone);\n // Cannot filter by IP atm, see below\n // request.setFilter(GceUtils.buildFilter(ips, \"networkInterfaces[0].networkIP\"));\n\n List<String> instanceIds = new ArrayList<>();\n InstanceList response;\n do {\n response = request.execute();\n if (response.getItems() == null) {\n continue;\n }\n for (Instance instance : response.getItems()) {\n // This stupid look up is needed because atm it is not possible to filter\n // by IP, see https://issuetracker.google.com/issues/73455339\n for (NetworkInterface ni : instance.getNetworkInterfaces()) {\n if (ips.contains(ni.getNetworkIP())) {\n instanceIds.add(instance.getName());\n }\n }\n }\n request.setPageToken(response.getNextPageToken());\n } while (response.getNextPageToken() != null);\n\n log.debug(\"Converted to [%s]\", String.join(\",\", instanceIds));\n return instanceIds;\n }\n catch (Exception e) {\n log.error(e, \"Unable to convert IPs to IDs.\");\n }\n\n return new ArrayList<>();\n }", "@SuppressWarnings(\"unused\")\n private static <T extends AbstractApiIdentifiableDTO> Map<Long, T> generateIdMap(List<T> idList) {\n Map<Long, T> results = new HashMap<>(idList.size());\n\n for (T idSingle : idList) {\n results.put(idSingle.getId(), idSingle);\n }\n\n return results;\n }", "public interface TreeNodeIdsHandler<T extends BaseEntity> {\n\n //获取待处理根节点列表\n List<String> getRootNodeIds();\n\n //处理原始的根节点列表\n List<String> getRootNodeIdsForQueryTrees(List<String> rootNodeIds);\n\n List<T> getChildrenTree(String nodeId);\n\n TreeNodeGenerateStrategy<T> getTreeNodeGenerateStrategy();\n\n default TreeNodeIdsHandlerResult handle() {\n TreeNodeIdsHandlerResult treeNodeIdsHandlerResult = new TreeNodeIdsHandlerResult();\n List<String> rootNodeIds = getRootNodeIdsForQueryTrees(getRootNodeIds());\n treeNodeIdsHandlerResult.setRootNodeIds(rootNodeIds);\n treeNodeIdsHandlerResult.setAllTreeNodes(getTreeNodes(rootNodeIds));\n return treeNodeIdsHandlerResult;\n }\n\n default List<TreeUtil.TreeNode> getTreeNodes(List<String> rootNodeIds){\n List<T> entities = Lists.newArrayList();\n for (String nodeId : rootNodeIds) {\n entities.addAll(getChildrenTree(nodeId));\n }\n\n return TreeNodeConverter.buildTreeNodeConverter(getTreeNodeGenerateStrategy()).convert(entities);\n }\n}", "public interface IdConverter extends Closeable {\n\n /**\n * Converts an ID.\n * @param restRequest {@link RestRequest} representing the request.\n * @param input the ID that needs to be converted.\n * @param callback the {@link Callback} to invoke once the converted ID is available. Can be null.\n * @return a {@link Future} that will eventually contain the converted ID.\n */\n Future<String> convert(RestRequest restRequest, String input, Callback<String> callback);\n\n /**\n * Converts an ID.\n * @param restRequest {@link RestRequest} representing the request.\n * @param input the ID that needs to be converted.\n * @return a {@link CompletableFuture} that will eventually contain the converted ID.\n */\n default CompletableFuture<String> convert(RestRequest restRequest, String input) {\n CompletableFuture<String> future = new CompletableFuture<>();\n convert(restRequest, input, CallbackUtils.fromCompletableFuture(future));\n return future;\n }\n\n /**\n * Converts an ID.\n * @param restRequest {@link RestRequest} representing the request.\n * @param input the ID that needs to be converted.\n * @param blobInfo the {@link BlobInfo} for an uploaded blob. Can be null for non-upload use cases.\n * @param callback the {@link Callback} to invoke once the converted ID is available. Can be null.\n * @return a {@link Future} that will eventually contain the converted ID.\n */\n default Future<String> convert(RestRequest restRequest, String input, BlobInfo blobInfo, Callback<String> callback) {\n return convert(restRequest, input, callback);\n }\n\n /**\n * Converts an ID.\n * @param restRequest {@link RestRequest} representing the request.\n * @param input the ID that needs to be converted.\n * @param blobInfo the {@link BlobInfo} for an uploaded blob. Can be null for non-upload use cases.\n * @return a {@link CompletableFuture} that will eventually contain the converted ID.\n */\n default CompletableFuture<String> convert(RestRequest restRequest, String input, BlobInfo blobInfo) {\n return convert(restRequest, input);\n }\n}", "@Override\npublic Iterable<Formation> findAllById(Iterable<String> ids) {\n\treturn null;\n}", "public static ArrayList<Long> searchKeywordEntryId(ArrayList<String> queryKeywords) {\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n List<Keywords> idList = new ArrayList<>();\n\n for(String qk : queryKeywords){\n List<Keywords> idListt =\n Keywords.find()\n .select(\"keywordEntryId\")\n .where()\n //.in(\"keyword\", queryKeywords)\n .like(\"keyword\", \"%\"+qk+\"%\")\n .findList();\n idList.addAll(idListt);\n }\n\n for (Keywords keywords : idList) {\n keywordIdList.add(keywords.getKeywordEntryId());\n }\n System.out.println(\"keywordIdList---\" + keywordIdList);\n return keywordIdList;\n }", "@Override\n\tpublic Iterable<T> findAll(Iterable<ID> ids) {\n\t\treturn null;\n\t}", "public abstract ArrayList<Integer> getIdList();", "void getClusterIdsWithPrefix(Future<Set<String>> clusterIds, String baseDir, String appId, String clusterIdPrefix);", "List<IDiscussionUser> getUsersByIds(Collection<String> userIds);", "@Override\n\tpublic String[] getIds() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Object getEntityId() {\n\t\treturn null;\n\t}", "public static CompletionStage<Void> update(Iterable<?> entities) {\n List<Object> objects = new ArrayList<>();\n for (Object entity : entities) {\n objects.add(entity);\n }\n\n if (objects.size() > 0) {\n // get the first entity to be able to retrieve the collection with it\n Object firstEntity = objects.get(0);\n ReactiveMongoCollection collection = mongoCollection(firstEntity);\n return update(collection, objects);\n }\n return nullFuture();\n }", "@NotNull\r\n Entity[] getEntities();", "void getAppIdsWithPrefix(Future<Set<String>> appIds, String baseDir, String appIdPrefix);", "Set<String> getIdentifiers();", "public static void resolveIdents() {\n\t\tint i, j;\n\t\ton_i : for (i = 0; i < count; i++) {\n\t\t\tfor (j = 0; j < count; j++) {\n\t\t\t\tif (i != j\n\t\t\t\t\t&& ((IdentifierResolver) bIdents.get(i)).shortNameEquals(\n\t\t\t\t\t\t((IdentifierResolver) bIdents.get(j))))\n\t\t\t\t\t// An identifier with the same short name has been found\n\t\t\t\t\t// go to the next one\n\t\t\t\t\tcontinue on_i;\n\t\t\t}\n\t\t\t// No identifier with the same name has been found, so allows to\n\t\t\t// set the short name.\n\t\t\t ((IdentifierResolver) bIdents.get(i)).setShortName();\n\t\t}\n\t}", "public List<Integer> findAllPaintersId();", "public abstract String getEntityId();", "public String getIds() {\n return ids;\n }", "public String getIds() {\n return ids;\n }", "@Override\n\tpublic Object getId() {\n\t\treturn Arrays.asList(name, source);\n\t}", "public Map<String, Object> getIds() {\n return ids;\n }", "public ArrayList<String> intDayToEventIDs(int day){\n ArrayList<String> events = new ArrayList<>();\n for(Event event: this.eventList){\n if(event.getStartTime().getDayOfMonth() == day){\n events.add(event.getEventId());\n }\n }\n return events;\n }", "@Override\r\n public Set<String> getObjectIdList() throws HarvesterException {\r\n Set<String> objectIdList = new HashSet<String>();\r\n try {\r\n String[] row = null;\r\n int rowCount = 0;\r\n boolean done = false;\r\n while (!done && (row = csvReader.readNext()) != null) {\r\n rowCount++;\r\n currentRow++;\r\n objectIdList.add(createRecord(row));\r\n if (rowCount % batchSize == 0) {\r\n log.debug(\"Batch size reached at row {}\", currentRow);\r\n break;\r\n }\r\n done = (maxRows > 0) && (currentRow < maxRows);\r\n }\r\n hasMore = (row != null);\r\n } catch (IOException ioe) {\r\n throw new HarvesterException(ioe);\r\n }\r\n if (objectIdList.size() > 0) {\r\n log.debug(\"Created {} objects\", objectIdList.size());\r\n }\r\n return objectIdList;\r\n }" ]
[ "0.6430023", "0.6216429", "0.5910527", "0.57919866", "0.5791122", "0.5787124", "0.56765145", "0.5605931", "0.55958146", "0.5550949", "0.5532137", "0.549755", "0.5435619", "0.5394642", "0.5389668", "0.53334016", "0.53299403", "0.527706", "0.52611035", "0.525443", "0.5186995", "0.5127712", "0.51210415", "0.51156324", "0.51151043", "0.51127136", "0.5110847", "0.506158", "0.50381315", "0.5025141", "0.5024922", "0.49931785", "0.49462944", "0.4938135", "0.49326488", "0.49185723", "0.48920065", "0.4885116", "0.4884086", "0.4865857", "0.4853728", "0.48481348", "0.48446038", "0.48388255", "0.4833937", "0.48217916", "0.48154455", "0.48030233", "0.4788595", "0.47561333", "0.47531483", "0.47456837", "0.47380832", "0.4737395", "0.47355962", "0.4735348", "0.47344324", "0.47249675", "0.47125137", "0.47107926", "0.47088292", "0.47017482", "0.46987936", "0.46955478", "0.4688185", "0.46878305", "0.46840194", "0.46541545", "0.46389887", "0.46364778", "0.4635166", "0.46303123", "0.4626092", "0.4616896", "0.46152863", "0.4609658", "0.46071756", "0.46061456", "0.46033153", "0.4603128", "0.46021837", "0.45805034", "0.45754027", "0.45664954", "0.45554632", "0.45534283", "0.45489395", "0.45477188", "0.4546697", "0.45439202", "0.45385793", "0.4528663", "0.45280004", "0.45172745", "0.45114812", "0.45114812", "0.45034936", "0.44974276", "0.4496544", "0.4489835" ]
0.7224219
0
Returns the number of true parameters inputted.
private int countTrue(boolean... cases) { int result = 0; for (boolean c : cases) { if (c) { result++; } } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumParameters();", "int getParametersCount();", "int getParametersCount();", "public int getParameterCount();", "int getParameterCount();", "int getParamsCount();", "public int nbParameters() {\n\treturn getParameters().size();\n }", "public int countParameters() {\n return executable.getParameters().size();\n }", "int getInputsCount();", "int getInputsCount();", "int getInputsCount();", "public int getNbParameters() {\n\t\treturn prototype.getNbParameters();\n\t}", "public int getParametersCount() {\n return parameters_.size();\n }", "protected int paramCount() {\r\n return m_params==null ? 0 : m_params.size();\r\n }", "public int getParametersCount() {\n return parameters_.size();\n }", "public int getNumIndependentParameters();", "public int getParameterCount() {\n return parameterCount;\n }", "public int getNumberParameters() { return parameters.length; }", "public int getNumOfParams() { return params.length; }", "int countTypedParameters();", "protected int getParamCount() {\n return paramCount;\n }", "public int getNumberOfParameters() {\n\treturn parameters.length;\n }", "public int getParameterCount()\n {\n return m_parameters != null ? m_parameters.size() : 0;\n }", "@java.lang.Override\n public int getParametersCount() {\n return parameters_.size();\n }", "@java.lang.Override\n public int getParametersCount() {\n return parameters_.size();\n }", "public int getParamsCount() {\n return params_.size();\n }", "public int getParametersCount() {\n if (parametersBuilder_ == null) {\n return parameters_.size();\n } else {\n return parametersBuilder_.getCount();\n }\n }", "public int getParametersCount() {\n if (parametersBuilder_ == null) {\n return parameters_.size();\n } else {\n return parametersBuilder_.getCount();\n }\n }", "@Override\n\tpublic int parametersCount() {\n\t\treturn 0;\n\t}", "public int sizeOfParamArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PARAM$14);\r\n }\r\n }", "public int getNumberOfInputs()\n {\n return numberOfInputs;\n }", "public int numInputs() {\r\n\t\treturn numInputs;\r\n\t}", "public int sizeOfParametersArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PARAMETERS$16);\n }\n }", "public int getParamsCount() {\n if (paramsBuilder_ == null) {\n return params_.size();\n } else {\n return paramsBuilder_.getCount();\n }\n }", "int getVarsCount();", "int getNumberOfArguments();", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "public int getParameterSize();", "public boolean isExpectedNumberOfParameters(long numberOfParameters);", "public int getInputsCount() {\n return inputs_.size();\n }", "public int getInputsCount() {\n return inputs_.size();\n }", "public int getInputsCount() {\n return inputs_.size();\n }", "int getArgumentsCount();", "int getSetParameterActionsCount();", "@Override\n public long numParams(boolean backwards) {\n long numParams = super.numParams(backwards);\n for (GraphVertex vertex : getVertices()) {\n numParams += vertex.numParams();\n }\n return numParams;\n }", "private void countParams() {\n if( paramCount >= 0 ) {\n return;\n }\n Iterator<AnyType> parser = name.getSignature( types );\n paramCount = needThisParameter ? 1 : 0;\n while( parser.next() != null ) {\n paramCount++;\n }\n valueType = parser.next();\n while( parser.hasNext() ) {\n valueType = parser.next();\n paramCount--;\n }\n }", "public int getNumParams(Value params) {\n return m_Par.length*m_Par[0].length;\n }", "int nParametricStates();", "int getRegisterParametersCount();", "public int getParamsCount() throws ACBrException {\n int ret = ACBrAACInterop.INSTANCE.AAC_GetParamsCount(getHandle());\n return ret;\n }", "int getRequestedValuesCount();", "public int sizeOfRParametersArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(RPARAMETERS$20);\n }\n }", "@Override \n\t\tprotected int getNumParam() {\n\t\t\treturn 1;\n\t\t}", "public int getArgCount() {\r\n return scope != null? scope.getArgCount() : 0;\r\n }", "@java.lang.Override\n public boolean hasInputsCount() {\n return inputsCount_ != null;\n }", "public abstract int nVars();", "static int numParamsPerQuery(Query query) {\n return Util.parametersCount(query.sql());\n }", "@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }", "public int getNumArgs() {\n return argTypes.size();\n }", "public synchronized int size() {\n return\n this.oPreprocessingParams.size() +\n this.oFeatureExtractionParams.size() +\n this.oClassificationParams.size();\n }", "public int length() {\n return (parameters == null) ? 0 : parameters.length;\n }", "public int getInputsCount() {\n if (inputsBuilder_ == null) {\n return inputs_.size();\n } else {\n return inputsBuilder_.getCount();\n }\n }", "public int getInputsCount() {\n if (inputsBuilder_ == null) {\n return inputs_.size();\n } else {\n return inputsBuilder_.getCount();\n }\n }", "public int getInputsCount() {\n if (inputsBuilder_ == null) {\n return inputs_.size();\n } else {\n return inputsBuilder_.getCount();\n }\n }", "boolean hasParameters();", "public boolean hasInputsCount() {\n return inputsCountBuilder_ != null || inputsCount_ != null;\n }", "public int getNumArgs()\n {\n return numArgs;\n }", "@Override\n public int getTestCaseTotal() {\n return parameters.length;\n }", "public int getNbParameterAnnotations() {\n\t\treturn annotatedParameterSetRefList.getNbAnnotationSetItemsUsed();\n\t}", "public Integer getInputCnt() {\r\n return inputCnt;\r\n }", "int getNumKeys();", "public int getRequiredParamsNumber() {\n\t\treturn requiredParamsNumber;\n\t}", "private int getNumberOfInputFeatures(final Collection<TrainingEntry<Login>> trainingDataSet) {\n return trainingDataSet.iterator().next().getEntity().getKeystrokeTimestamps().size();\n }", "@Override\n\tpublic int numOfCondition() {\n\t\tint sum=0;\n\t\t\n\t\tfor(Cond cond:this.conditions)\n\t\t{\n\t\t\tint sum0 = 1;\n\t\t\tif(cond.params.size()>0)\n\t\t\t{\n\t\t\t\tfor(Param param:cond.params)\n\t\t\t\t{\n\t\t\t\t\tsum0 *= param.numOfCondition();\n\t\t\t\t}\n\t\t\t\tsum = sum + sum0;\n\t\t\t}\n\t\t\telse sum++;\n\t\t}\n\t\t\n\t\treturn sum;\n\t}", "@Override\n protected boolean hasValidNumberOfArguments(int numberOfParametersEntered) {\n return numberOfParametersEntered == 3;\n }", "public static void setNumberOfInputs(int _n)\r\n {\r\n numberOfInputs = _n;\r\n }", "public int countTrueCheckBox() {\r\n\t\tint ret = 0;\r\n\t\tif(attributs != null) {\r\n\t\t\tfor(AttributDescribe item : attributs) {\r\n\t\t\t\tif(item.getPk() == true) {\r\n\t\t\t\t\tret++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ret;\r\n\t}", "public int getArgumentCount() {\n return arguments.length;\n }", "public static int getNparams(int fitType){\n\t\tint ret=0;\n\t\tswitch(fitType) {\n\t\tcase T1_MONO:ret=2;break;\n\t\tcase T1_MONO_BIAS:ret=3;break;\n\t\tcase T1_MONO_RICE:ret=2;break;\n\n\t\tcase T2_MONO:ret=2;break;\n\t\tcase T2_MONO_BIAS:ret=3;break;\n\t\tcase T2_MONO_RICE:ret=2;break;\n\n\t\tcase T2_MULTI:ret=4;break;\n\t\tcase T2_MULTI_BIAS:ret=5;break;\n\t\tcase T2_MULTI_RICE:ret=4;break;\n\n\t\tcase T1T2_MONO:ret=3;break;\n\t\tcase T1T2_MONO_BIAS:ret=4;break;\n\t\tcase T1T2_MONO_RICE:ret=3;break;\n\n\t\tcase T1T2_MULTI:ret=5;break;\n\t\tcase T1T2_MULTI_BIAS:ret=6;break;\n\t\tcase T1T2_MULTI_RICE:ret=5;break;\n\n\t\tcase T1T2_DEFAULT_T2_MONO_RICE:ret=4;break;\n\t\tcase T1T2_DEFAULT_T2_MULTI_RICE:ret=6;break;\n\t\tdefault:IJ.showMessage(\"In MRUtils.getNParams, unexpected fit type : \"+fitType+\" . \\nBrutal stop now.\");ret=1/0;\n\t\t}\n\t\treturn ret;\n\t}", "public int getArgumentsCount() {\n return arguments_.size();\n }", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "public int getRequestedValuesCount() {\n return requestedValues_.size();\n }", "@java.lang.Override\n public com.google.protobuf.UInt64Value getInputsCount() {\n return inputsCount_ == null ? com.google.protobuf.UInt64Value.getDefaultInstance() : inputsCount_;\n }", "int getValuesCount();", "int getNumberOfNecessaryAttributes();", "public int getArgumentsCount() {\n return arguments_.size();\n }", "public int getCardinality() {\n\t\tif (m_parameters == null) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn m_parameters.size();\n\t}", "public int getInputTensorCount() {\n checkNotClosed();\n return wrapper.getInputTensorCount();\n }", "public int getNrOfVariables(){\n\t\treturn sqlVariables.length;\n\t}", "public int getRequestedValuesCount() {\n return requestedValues_.size();\n }", "public String getParamLength() {\n return paramLength;\n }", "@java.lang.Override\n public int getArgsCount() {\n return args_.size();\n }", "public int getArgsCount() {\n return args_.size();\n }", "public int getArgsCount() {\n return args_.size();\n }", "public int getArgsCount() {\n\t\t\treturn args_.size();\n\t\t}", "int getOptionsCount();", "int getOptionsCount();" ]
[ "0.8183959", "0.80734307", "0.80734307", "0.7920575", "0.7918435", "0.790328", "0.7682935", "0.764645", "0.7617495", "0.7617495", "0.7617495", "0.75897074", "0.748415", "0.7481901", "0.74728715", "0.74713516", "0.7447016", "0.7443944", "0.74376774", "0.74105656", "0.74050677", "0.74028796", "0.7392946", "0.7382518", "0.7382518", "0.7282566", "0.72387004", "0.72387004", "0.7206486", "0.71851826", "0.71488434", "0.7139858", "0.7033166", "0.6987623", "0.6893453", "0.6882176", "0.6871748", "0.6871748", "0.6871748", "0.6871748", "0.6871748", "0.68302625", "0.6809208", "0.67212", "0.67212", "0.67212", "0.6718984", "0.67143536", "0.6680152", "0.666734", "0.6650054", "0.6597742", "0.65976906", "0.6559549", "0.6534703", "0.65255004", "0.6517584", "0.64997715", "0.6495819", "0.64858514", "0.64548117", "0.6438532", "0.64380604", "0.6394406", "0.63908285", "0.63482594", "0.63482594", "0.63482594", "0.6343553", "0.6338455", "0.6333268", "0.6309982", "0.6302932", "0.62914115", "0.62906617", "0.62795305", "0.6276993", "0.62528366", "0.6223926", "0.621925", "0.62023044", "0.6172333", "0.61513543", "0.61436737", "0.6121374", "0.61197466", "0.6113017", "0.61088365", "0.6106521", "0.60936755", "0.6085236", "0.60746014", "0.60601705", "0.60597456", "0.6059412", "0.605743", "0.60471594", "0.60471594", "0.6035505", "0.60320073", "0.60320073" ]
0.0
-1
GETs a list of Kiji rows.
@GET @Timed @ApiStability.Experimental // CSOFF: ParameterNumberCheck - There are a bunch of query param options public Response getRows(@PathParam(INSTANCE_PARAMETER) String instance, @PathParam(TABLE_PARAMETER) String table, @QueryParam("eid") String jsonEntityId, @QueryParam("eids") String jsonEntityIds, @QueryParam("start_eid") String startEidString, @QueryParam("end_eid") String endEidString, @QueryParam("limit") @DefaultValue("100") int limit, @QueryParam("cols") @DefaultValue(ALL_COLS) String columns, @QueryParam("versions") @DefaultValue("1") String maxVersionsString, @QueryParam("timerange") String timeRange, @Context UriInfo uriInfo) { // CSON: ParameterNumberCheck - There are a bunch of query param options long[] timeRanges = null; KijiTable kijiTable = mKijiClient.getKijiTable(instance, table); KijiTableLayout layout = kijiTable.getLayout(); Iterable<KijiRowData> scanner = null; int maxVersions; KijiDataRequestBuilder dataBuilder = KijiDataRequest.builder(); if (timeRange != null) { timeRanges = getTimestamps(timeRange); } try { if (UNLIMITED_VERSIONS.equalsIgnoreCase(maxVersionsString)) { maxVersions = HConstants.ALL_VERSIONS; } else { maxVersions = Integer.parseInt(maxVersionsString); } } catch (NumberFormatException nfe) { throw new WebApplicationException(nfe, Status.BAD_REQUEST); } if (timeRange != null) { dataBuilder.withTimeRange(timeRanges[0], timeRanges[1]); } ColumnsDef colsRequested = dataBuilder.newColumnsDef().withMaxVersions(maxVersions); List<KijiColumnName> requestedColumns = addColumnDefs(layout, colsRequested, columns); /* Check that the row retrieval method is valid, only one of the following may be true: * @eid has a value for single gets, * @eids has a value for bulk gets, * @start_eid or @end_eid has a value for scanned gets. */ if (countTrue(jsonEntityId != null, (startEidString != null || endEidString != null), jsonEntityIds != null) > 1) { throw new WebApplicationException(new IllegalArgumentException("Ambiguous request. " + "Specified more than one entity Id search method."), Status.BAD_REQUEST); } KijiTableReader reader = null; try { if (jsonEntityId != null) { final KijiRestEntityId kijiRestEntityId = KijiRestEntityId.createFromUrl(jsonEntityId, layout); if (kijiRestEntityId.isWildcarded()) { // Wildcards were found, continue with FormattedEntityIdRowFilter. final KijiRowFilter entityIdRowFilter = new FormattedEntityIdRowFilter( (RowKeyFormat2) layout.getDesc().getKeysFormat(), kijiRestEntityId.getComponents()); reader = kijiTable.openTableReader(); final KijiScannerOptions scanOptions = new KijiScannerOptions(); scanOptions.setKijiRowFilter(entityIdRowFilter); scanner = reader.getScanner(dataBuilder.build(), scanOptions); } else { // No wildcards found, but potentially valid entity id. // Continue scanning point row. final EntityId eid = kijiRestEntityId.resolve(layout); final KijiDataRequest request = dataBuilder.build(); scanner = ImmutableList.of(RowResourceUtil.getKijiRowData(kijiTable, eid, request)); } } else if (jsonEntityIds != null) { // If there are wildcards in the json array, creating and entity id list will // throw and exception. final List<KijiRestEntityId> kijiRestEntityIds = KijiRestEntityId.createListFromUrl(jsonEntityIds, layout); reader = kijiTable.openTableReader(); scanner = reader.bulkGet( getEntityIdsFromKijiRestEntityIds(kijiRestEntityIds, layout), dataBuilder.build()); } else { // Single eid not provided. Continue with a range scan. final KijiScannerOptions scanOptions = new KijiScannerOptions(); if (startEidString != null) { final EntityId eid = KijiRestEntityId.createFromUrl(startEidString, null).resolve(layout); scanOptions.setStartRow(eid); } if (endEidString != null) { final EntityId eid = KijiRestEntityId.createFromUrl(endEidString, null).resolve(layout); scanOptions.setStopRow(eid); } reader = kijiTable.openTableReader(); scanner = reader.getScanner(dataBuilder.build(), scanOptions); } } catch (KijiIOException kioe) { mKijiClient.invalidateTable(instance, table); throw new WebApplicationException(kioe, Status.BAD_REQUEST); } catch (JsonProcessingException jpe) { throw new WebApplicationException(jpe, Status.BAD_REQUEST); } catch (Exception e) { throw new WebApplicationException(e, Status.INTERNAL_SERVER_ERROR); } finally { // If reader was used, close it. if (null != reader) { ResourceUtils.closeOrLog(reader); } } KijiSchemaTable schemaTable = mKijiClient.getKijiSchemaTable(instance); return Response.ok(new RowStreamer(scanner, kijiTable, limit, requestedColumns, schemaTable)).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<String> getRows();", "java.util.List<String>\n getRowsList();", "String getRows(int index);", "java.util.List<io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row> \n getRowList();", "java.util.List<io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row> \n getRowList();", "List<C> getRow() throws Exception;", "java.util.List<io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row> \n getRowList();", "public List getRows() \n {\n return rows;\n }", "java.util.List<io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row> \n getRowList();", "public List<Kurssi> haeKurssit() {\n\n\t\tString sql = \"SELECT tunnus, nimi, koulutusohjelma_tunnus, laajuus, \"\n\t\t\t\t+ \"ajoitus, kuvaus FROM kurssi\";\n\t\t\n\t\tRowMapper<Kurssi> mapper = new KurssiRowMapper();\n\t\tList<Kurssi> kurssit = jdbcTemplate.query(sql, mapper);\n\n\t\treturn kurssit;\n\t}", "@GET\n\t\t\t@Path(\"/rows\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getChannelRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new ChannelDao(uriInfo,header).getChannelRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getChannelRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public Row[] getRows() {return rows;}", "private List<List<String>> getAllRows() {\n List<List<String>> rowLst = new ArrayList<List<String>>();\n int rowIndex = 1;\n String xpathRow = xpathTableRow.replace(\"*row*\", String.valueOf(rowIndex));\n while (isElementPresent(xpathRow) && isElementVisible(xpathRow)) {\n List<String> row = new ArrayList<String>();\n for (int i = 1; i <= 3; i++) {\n String xpathCell = xpathTableCell.replace(\"*row*\", String.valueOf(rowIndex))\n .replace(\"*col*\",\n String.valueOf(i));\n waitForElementVisibility(xpathCell);\n row.add(assertAndGetText(xpathCell));\n }\n logger.info(\"# Row \" + rowIndex + \": \" + row);\n rowLst.add(row);\n xpathRow = xpathTableRow.replace(\"*row*\", String.valueOf(++rowIndex));\n }\n logger.info(\"# List of rows: \" + rowLst);\n return rowLst;\n }", "int getRows();", "int getRows();", "java.util.List<io.dstore.engine.procedures.OmModifyCampaignsAd.Response.Row> \n getRowList();", "java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row> \n getRowList();", "public List<List<Object>> rows() {\n return this.rows;\n }", "public Set<LinkedHashMap<String, String>> getRows() {\n return rows;\n }", "public String getRows(int index) {\n return rows_.get(index);\n }", "public List getRowKeys() { return this.underlying.getRowKeys(); }", "@Override\r\n\tpublic Map<String, Object> readAll() {\n\t\tsimpleJdbcCall = new SimpleJdbcCall(jdbcTemplate).withCatalogName(\"PKG_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .withProcedureName(\"PR_LIS_ESTADO_CIVIL\")\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .declareParameters(new SqlOutParameter(\"CUR_ESTADO_CIVIL\", OracleTypes.CURSOR,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t new ColumnMapRowMapper()));\r\n\t\treturn simpleJdbcCall.execute();\r\n\t}", "public String[] get(String k) throws RemoteException, Error;", "public ArrayList[] getRows() {\r\n return rows;\r\n }", "public List<Row> getAllRows() {\n return this.allRows;\n }", "public abstract String[] getRowValues(Cursor c);", "io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row getRow(int index);", "public String getRows(int index) {\n return rows_.get(index);\n }", "public int getRows();", "public int getRows();", "public GetProductoSrvRow[] getRows() {\n\t\tGetProductoSrvRow[] rows = new GetProductoSrvRow[select.getRowCount()];\n\t\tfor (int i = 0; i <= select.getRowCount() - 1; i++) {\n\t\t\trows[i] = new GetProductoSrvRow(select, i + 1);\n\t\t};\n\t\treturn rows;\n\t}", "public static List<SqlRow> findAll() {\n\n try{\n List<SqlRow> queryFindAll = Ebean.createSqlQuery(\"SELECT * FROM pub_infoapi;\")\n .findList();\n return queryFindAll;\n }catch(Exception e){\n e.printStackTrace();\n return null;\n }\n }", "T getRowData(int rowNumber);", "public ArrayList<ArrayList<Object>> getRows() {\n\t\treturn m_data.rows;\n\t}", "public static List<Record> getRecords(String tableName, String rowKey)\n\t\t\tthrows IOException {\n\t\tHTable table = connectTable(tableName);\n\t\tScan s = new Scan(rowKey.getBytes());\n\n\t\tResultScanner ss = table.getScanner(s);\n\t\tRecord rec;\n\t\tList<Record> list = new ArrayList<Record>();\n\t\tfor (Result r : ss) {\n\t\t\tfor (KeyValue kv : r.raw()) {\n\t\t\t\trec = new Record();\n\t\t\t\trec.setTable(tableName);\n\t\t\t\trec.setRowKey(new String(kv.getRow()));\n\t\t\t\trec.setFamily(new String(kv.getFamily()));\n\t\t\t\trec.setQualifier(new String(kv.getQualifier()));\n\t\t\t\trec.setTimestamp(kv.getTimestamp());\n\t\t\t\trec.setValue(new String(kv.getValue()));\n\t\t\t\tlist.add(rec);\n\t\t\t}\n\t\t}\n\t\treleaseTable(table);\n\t\treturn list;\n\t}", "public static Result getRow(HTable table, String rowKey) throws Exception {\n\t\tGet get = new Get(Bytes.toBytes(rowKey));\n\t\tResult result = table.get(get);\n\t\tSystem.out.println(\"Get: \" + result);\n\t\treturn result;\n\t}", "public java.util.List<io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row> getRowList() {\n return row_;\n }", "public java.util.List<com.randioo.tiger_server.protocol.Entity.RowData> getRowDataList() {\n return java.util.Collections.unmodifiableList(result.rowData_);\n }", "public List<String> GetKeywords()\n\t{\n\t\tList<String> words = new ArrayList<String>(); \n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t \n\t String query = \"SELECT keyword_kid FROM HasKeywords WHERE keyword_hid = '\"+hid+\"'\"; \n\t ResultSet rs = con.stmt.executeQuery(query); \n\t \n\t List<Integer> k_ids = new ArrayList<Integer>(); \n\t while(rs.next())\n\t {\n\t \tint new_id = rs.getInt(\"keyword_kid\"); \n\t \tk_ids.add(new_id); \n\t }\n\t \n\t for(int i = 0; i < k_ids.size(); i++)\n\t {\n\t \tquery = \"SELECT word FROM Keywords WHERE k_id = '\"+k_ids.get(i)+\"'\"; \n\t \trs = con.stmt.executeQuery(query); \n\t \twhile(rs.next())\n\t \t{\n\t \t\tString kw = rs.getString(\"word\"); \n\t \t\twords.add(kw); \n\t \t}\n\t }\n\t \n\t con.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\tkeywords = words; \n\t\treturn keywords; \n\t}", "public List getList() throws HibException;", "@SneakyThrows\n public List<Map<String, String>> getTable(String tableName, int page, int pageSize) {\n try (CloseableHttpClient client = HttpClientBuilder.create()\n .setDefaultRequestConfig(getRequestConfig())\n .build()) {\n String url = KodexaPlatform.getUrl() + \"/api/stores/\" + ref.replace(\":\", \"/\") + \"/rows\";\n log.info(\"Connecting to [\" + url + \"]\");\n\n URIBuilder builder = new URIBuilder(url);\n builder.setParameter(\"page\", String.valueOf(page)).setParameter(\"pageSize\", String.valueOf(pageSize)).setParameter(\"table\", tableName);\n\n HttpGet httpGet = new HttpGet(builder.build());\n httpGet.addHeader(\"x-access-token\", KodexaPlatform.getAccessToken());\n\n HttpResponse response = client.execute(httpGet);\n\n if (response.getStatusLine().getStatusCode() != 200) {\n throw new KodexaException(\"Unable to create a session, check your access token and URL [\" + response.getStatusLine().getStatusCode() + \"]\");\n }\n\n String responseJson = IOUtils.toString(response.getEntity().getContent(), StandardCharsets.UTF_8);\n Page<StoredRow> rowPage = jsonOm.readValue(responseJson, new TypeReference<Page<StoredRow>>() {\n });\n\n return rowPage.getContent().stream().map(StoredRow::getData).collect(Collectors.toList());\n\n\n } catch (IOException e) {\n throw new KodexaException(\"Unable to create a session on Kodexa\", e);\n }\n }", "public java.util.List<io.dstore.engine.procedures.MiCheckPerformanceAd.Response.Row> getRowList() {\n if (rowBuilder_ == null) {\n return java.util.Collections.unmodifiableList(row_);\n } else {\n return rowBuilder_.getMessageList();\n }\n }", "List<List<Object>> getTableValues();", "public Clientedim getRowData(String rowKey) {\n \r\n List<Clientedim> clienti = (List<Clientedim>) getWrappedData();\r\n \r\n for(Clientedim cli : clienti) {\r\n if(cli.getGestore().getCod_gestore().equals(rowKey))\r\n return cli;\r\n }\r\n \r\n return null;\r\n }", "public static List<PolovniAutomobili> readAll() {\n List<PolovniAutomobili> listaUsera = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT * FROM polovni WHERE 1\";\n try (Statement st = (Statement) CONNECTION.createStatement()) {\n ResultSet rs = st.executeQuery(query);\n while (rs.next()) {\n String imgUrl = rs.getString(\"imgUrl\");\n String naziv = rs.getString(\"naziv\");\n int godiste = rs.getInt(\"godiste\");\n int cena = rs.getInt(\"cena\");\n String url = rs.getString(\"url\");\n listaUsera.add(new PolovniAutomobili(imgUrl, naziv, godiste,cena,url));\n }\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n System.out.println(\"MySql Connection error...\");\n ex.printStackTrace();\n }\n return listaUsera;\n }", "public com.google.protobuf.ProtocolStringList\n getRowsList() {\n return rows_;\n }", "@GET\n\t\t\t@Path(\"/rows\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getWarehouseRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new WarehouseDao(uriInfo,header).getWarehouseRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getWarehouseRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public java.util.List<io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row> getRowList() {\n return row_;\n }", "private ArrayList<String[]> getTableRowData() \n {\n int numRow, numCol;\n ArrayList<String[]> data = new ArrayList<>();\n numRow = jtModel.getRowCount(); \n numCol = jtModel.getColumnCount();\n String[] row;\n for(int i = 0; i< numRow; i++)\n {\n row = new String[numCol];\n for(int j = 0; j< numCol; j++)\n {\n row[j] = jtModel.getValueAt(i, j).toString();\n } \n data.add(row);\n } \n return data;\n }", "public String[] fetchAllKeys();", "public com.google.protobuf.ProtocolStringList\n getRowsList() {\n return rows_.getUnmodifiableView();\n }", "public java.util.List<io.dstore.engine.procedures.ImModifyNodeCharacsAd.Response.Row> getRowList() {\n if (rowBuilder_ == null) {\n return java.util.Collections.unmodifiableList(row_);\n } else {\n return rowBuilder_.getMessageList();\n }\n }", "Object[] getDataRow(final int index);", "DataFrameRows<R,C> rows();", "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 Object[] retrieveRowFromCache(int rowIndex) {\n\t ensureRowCached(rowIndex);\n\t return (Object[])data[getIndexOfRowInCache(rowIndex)];\n }", "@GET\n\t\t\t@Path(\"/rows\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getAttachmentRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new AttachmentDao(uriInfo,header).getAttachmentRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getAttachmentRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row getRow(int index);", "public java.util.List<io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row> getRowList() {\n if (rowBuilder_ == null) {\n return java.util.Collections.unmodifiableList(row_);\n } else {\n return rowBuilder_.getMessageList();\n }\n }", "public java.util.List<io.dstore.engine.procedures.StGetPageVisitsAd.Response.Row> getRowList() {\n return row_;\n }", "@Override\n\tpublic List<KomponenNilai> get(String where, String order, int limit, int offset) {\n\t\tString dbWhere = \"\";\n\t\tString dbOrder = \"\";\n\t\tif(where != \"\")\n\t\t\tdbWhere += \" WHERE \" + where;\n\t\tif(order != \"\")\n\t\t\tdbOrder += \" ORDER BY \" + order;\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"FROM KomponenNilai\" + dbWhere + dbOrder);\n\t\treturn query.list();\n\t}", "public long rows() { return _rows; }", "public java.util.List<io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row> getRowList() {\n return row_;\n }", "@Override public int numRows() {\n return listOfKeys.size();\n }", "public static List<JSONObject> getJSONObject(String SQL){\r\n\r\n //final String SQL = \"select * from articles\";\r\n Connection con = null;\r\n PreparedStatement pst = null;\r\n ResultSet rs = null;\r\n \r\n try{\r\n\r\n con = getConnection();\r\n pst = con.prepareStatement(SQL);\r\n rs = pst.executeQuery();\r\n\r\n }catch(SQLException ex){\r\n\r\n System.out.println(\"Error:\" + ex.getMessage());\r\n\r\n }\r\n\r\n List<JSONObject> resList = JsonService.getFormattedResultSet(rs);\r\n return resList;\r\n\r\n }", "List<String[]> readAll();", "@GET\n\t\t\t@Path(\"/filter\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getChannelRowsByFilter() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new ChannelDao(uriInfo,header).getChannelByFilter();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getChannelRowsByFilter()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public List<List<Object>> rows() {\n List<List<Object>> rows = new ArrayList<List<Object>>();\n for (List<String> rawRow : getRawRows()) {\n List<Object> newRow = new ArrayList<Object>();\n for (int i = 0; i < rawRow.size(); i++) {\n newRow.add(transformCellValue(i, rawRow.get(i)));\n }\n rows.add(newRow);\n }\n return rows;\n }", "public List<Customer> read() {\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n ResultSet rest = null;\n List<Customer> customers = new ArrayList<>();\n try {\n ppst = conn.prepareStatement(\"SELECT * FROM customer\");\n rest = ppst.executeQuery();\n while (rest.next()) {\n Customer c = new Customer(\n rest.getInt(\"customer_key\"),\n rest.getString(\"name\"),\n rest.getString(\"id\"),\n rest.getString(\"phone\")\n );\n customers.add(c);\n }\n } catch (SQLException e) {\n throw new RuntimeException(\"Query error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst, rest);\n }\n return customers;\n }", "public Object [][] getRubrosPresupuesto(String presupuesto) throws SQLException \r\n {\n\r\n Statement stmt = con.createStatement();\r\n String strSQL = \"SELECT * FROM RUBROS WHERE IDPRESUPUESTO=\"+ presupuesto+\" ORDER BY TIPO_PAGO\";\r\n\r\n ResultSet rs = stmt.executeQuery(strSQL); \r\n \r\n String registro[];\r\n ArrayList arrayList = new ArrayList();\r\n\r\n int index=0;\r\n Utilities utils = new Utilities();\r\n while (rs.next())\r\n { \r\n registro = new String[5];\r\n registro [0] = rs.getString(\"IDRUBRO\");\r\n registro [1] = rs.getString(\"TIPO_PAGO\");\r\n registro [2] = rs.getString(\"NOMBRE\").trim();\r\n registro [3] = utils.priceWithDecimal(rs.getDouble(\"MONTO\")); \r\n registro [4] = utils.priceWithDecimal(rs.getDouble(\"SALDO\")); \r\n arrayList.add(registro);\r\n \r\n index++;\r\n } \r\n \r\n Object[][] rowData = new Object[index][5]; \r\n int j=0;\r\n while (j<index)\r\n {\r\n arrayList.iterator().hasNext();\r\n String reg[] = (String[]) arrayList.get(j);\r\n rowData [j][0] = reg[0] ;\r\n rowData [j][1] = reg[1] ;\r\n rowData [j][2] = reg[2] ;\r\n rowData [j][3] = reg[3] ;\r\n rowData [j][4] = reg[4] ; \r\n j++;\r\n }\r\n rs.close();\r\n stmt.close();\r\n \r\n return rowData; \r\n }", "@Override\n public byte[][] getAll(byte keys[][]) throws Exception{\n byte[][] results = new byte[keys.length][];\n Table table = getNextConnection().getTable(this.dataTableName);\n ArrayList<Get> gets = new ArrayList<>(keys.length);\n for (int i = 0; i < keys.length; i++) {\n byte[] actualKey = transformKey(keys[i]);\n Get get = new Get(actualKey);\n gets.add(get);\n }\n Result[] hbaseResults = table.get(gets);\n for (int i = 0; i < hbaseResults.length; i++) {\n Result result = hbaseResults[i];\n byte[] value = result.getValue(this.columnFamily, this.columnName);\n results[i] = value;\n }\n table.close();\n return results;\n }", "protected List<Map<String, Object>> show() {\n List<Map<String, Object>> output = new ArrayList<>();\n try {\n ResultSet rs;\n try (PreparedStatement stmt = DBConnect.getConnection()\n .prepareStatement(String.format(\"SELECT * FROM %s WHERE userID = ?\", table))) {\n stmt.setLong(1, userId);\n rs = stmt.executeQuery();\n }\n output = DBConnect.resultsList(rs);\n rs.close();\n DBConnect.close();\n } catch (SQLException e) {\n Logger.getLogger(DBConnect.class.getName()).log(Level.SEVERE, \"Failed select\", e);\n }\n return output;\n }", "io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row getRow(int index);", "public ListIterator<T> getAllByRowsIterator() {\n\t\tAllByRowsIterator it = new AllByRowsIterator();\n\t\treturn it;\n\t}", "@Override\n public com.gensym.util.Sequence getTableRows() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.TABLE_ROWS_);\n return (com.gensym.util.Sequence)retnValue;\n }", "@Override\n\t@RequestMapping(value=\"/item/list\")\n\tpublic EasyUIDatagrid<TbItem> getItemsByPage(@RequestParam(value = \"page\", defaultValue=\"1\") Integer page,\n\t\t\t@RequestParam(value = \"rows\" ,defaultValue=\"30\") Integer rows) {\n\t\treturn service.getItemsByPage(page, rows);\n\t}", "public static KhachHang GetKHByMaKH(String MaKH){\n \r\n try {\r\n Connection conn = ConnectToSQL.getConnection();\r\n String sql = \"Select * from tb_KhachHang where MaKH = \" + MaKH;\r\n List<KhachHang> list = new ArrayList<>();\r\n Statement ps = conn.createStatement();\r\n ResultSet rs = ps.executeQuery(sql);\r\n while (rs.next()) {\r\n KhachHang kh = new KhachHang();\r\n kh.setMaKH(rs.getString(\"MaKH\"));\r\n kh.setHoTenKH(rs.getString(\"HoTenKH\"));\r\n kh.setNgaySinh(rs.getDate(\"NgaySinh\"));\r\n kh.setGioiTinh(rs.getBoolean(\"GioiTinh\"));\r\n kh.setDiaChi(rs.getString(\"DiaChi\"));\r\n kh.setSDT(rs.getString(\"SDT\"));\r\n \r\n list.add(kh);\r\n }\r\n ps.close();\r\n conn.close();\r\n rs.close();\r\n } catch (SQLException ex) {\r\n \r\n }\r\n return null;\r\n }", "com.rpg.framework.database.Protocol.Item getItems(int index);", "public java.util.List<io.dstore.engine.procedures.FoModifyForumsInCategoriesAd.Response.Row> getRowList() {\n if (rowBuilder_ == null) {\n return java.util.Collections.unmodifiableList(row_);\n } else {\n return rowBuilder_.getMessageList();\n }\n }", "@GET\n\t\t\t@Path(\"/rows\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getIndentRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new IndentDao(uriInfo,header).getIndentRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getIndentRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "public MrnWoatlas5[] get (String where) {\n return doGet(db.select(TABLE, where));\n }", "private static List<Integer> getRow(int rowIndex, int[][] m) {\r\n int[] rowArray = m[rowIndex];\r\n List<Integer> row = new ArrayList<Integer>(rowArray.length);\r\n for (int i : rowArray)\r\n row.add(i);\r\n\r\n return row;\r\n }", "public List<quanhuyen> getAllQuanHuyen() {\n List<quanhuyen> qhlists1 = new ArrayList<>();\n // Step 1: Establishing a Connection\n try (Connection connection = DBConnection.createConnection();\n PreparedStatement statement = connection.prepareStatement(getAll);) {\n\n ResultSet resultSet = statement.executeQuery();\n\n while (resultSet.next()) {\n int id = resultSet.getInt(\"id\");\n String tenQH = resultSet.getString(\"ten\");\n int tpid = resultSet.getInt(\"ThanhPhoid\");\n int trangthai = resultSet.getInt(\"trangthai\");\n qhlists1.add(new quanhuyen(id, tenQH, tpid, trangthai));\n }\n } catch (SQLException e) {\n printSQLException(e);\n }\n return qhlists1;\n }", "public abstract String [] listTables();", "public List<TimesheetRow> getAllTimesheetRows(){\n\t\treturn service.getAllTimesheetRows();\n\t}", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row> getRowList() {\n return row_;\n }", "public List<DataRow> getRows() {\n return Collections.unmodifiableList(dataRows);\n }", "@SuppressLint(\"NewApi\")\n private ObjectNode getRowsResultFromQuery(Cursor cur) {\n ObjectNode rowsResult = objectMapper.createObjectNode();\n\n ArrayNode rowsArrayResult = rowsResult.putArray(\"rows\");\n\n if (cur.moveToFirst()) {\n // query result has rows\n int colCount = cur.getColumnCount();\n \n // Build up JSON result object for each row\n do {\n ObjectNode row = objectMapper.createObjectNode();\n for (int i = 0; i < colCount; ++i) {\n String key = cur.getColumnName(i);\n \n // for old Android SDK remove lines from HERE:\n if (android.os.Build.VERSION.SDK_INT >= 11) {\n putValueBasedOnType(cur, row, key, i);\n // to HERE.\n } else {\n row.put(key, cur.getString(i));\n }\n }\n \n rowsArrayResult.add(row);\n \n } while (cur.moveToNext());\n }\n\n return rowsResult;\n }", "@NonNull\n Collection<TObj> getRowItems(int row) {\n Collection<TObj> result = new LinkedList<>();\n SparseArrayCompat<TObj> array = mData.get(row);\n for (int count = array.size(), i = 0; i < count; i++) {\n int key = array.keyAt(i);\n TObj columnObj = array.get(key);\n if (columnObj != null) {\n result.add(columnObj);\n }\n\n }\n return result;\n }", "public static ArrayList<Object[]> getData(String query){\n ArrayList<Object[]> resultList = new ArrayList<Object[]>();\n ResultSet result;\n ResultSetMetaData rsmd;\n connect();\n try{\n Statement stm = conn.createStatement();\n result = stm.executeQuery(query);\n rsmd = result.getMetaData();\n Object[] obj = new Object[rsmd.getColumnCount()];\n while(result.next()){\n for(int col = 1; col < rsmd.getColumnCount(); col++){\n obj[col-1] = result.getObject(col);\n }\n resultList.add(obj);\n }\n }catch(Exception e) {\n System.out.println(e.getMessage());\n }\n disconnect();\n return resultList;\n }", "public java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Row> getRowList() {\n if (rowBuilder_ == null) {\n return java.util.Collections.unmodifiableList(row_);\n } else {\n return rowBuilder_.getMessageList();\n }\n }", "int[] retrieveAllData();", "public Future<List<T>> get(String k) {\n return getPrefix(k).compose(res -> {\n if (res == null) {\n return Future.succeededFuture(null);\n }\n LinkedList<T> t = new LinkedList<>();\n for (String s : res) {\n t.add(Json.decodeValue(s, clazz));\n }\n return Future.succeededFuture(t);\n });\n }", "public List<Map<String,String>> getLoginByUsername(String username) {\n List<Map<String,String>> data = new ArrayList<>();\n try {\n PreparedStatement q = connection.prepareStatement(\"SELECT * FROM login WHERE username = ?\");\n q.setString(1, username);\n \n ResultSet results = q.executeQuery();\n ResultSetMetaData md = results.getMetaData();\n \n // get list with names of columns\n List<String> columns = new ArrayList<>(md.getColumnCount());\n for(int i = 1; i <= md.getColumnCount(); i++){\n columns.add(md.getColumnName(i));\n }\n\n while(results.next() ) {\n Map<String,String> row = new HashMap<>(columns.size());\n for(String col : columns) {\n System.out.println(results.getString(col));\n row.put(col, results.getString(col));\n }\n data.add(row);\n }\n } catch(SQLException ex) {\n ex.printStackTrace();\n }\n return data;\n }", "public List<Getable> data() {\n assertVisible();\n String[] headings = headings();\n List<List<String>> rowsWithTdStrings = get().findElements(By.tagName(\"tr\")).stream()\n // Ignore rows without TD elements\n .filter(e -> !e.findElements(By.tagName(\"td\")).isEmpty())\n // Then turn each row of TDs into a list of their string-contents\n .map(row -> row.findElements(By.tagName(\"td\")).stream().map(e -> e.getText()).collect(toList()))\n .collect(toList());\n\n List<Getable> result = new ArrayList<>();\n for (List<String> rowWithTdStrings : rowsWithTdStrings) {\n GetableMap aResult = new GetableMap();\n assertEquals(\"Different number of headings and columns\",\n headings.length, rowWithTdStrings.size());\n for (int i = 0; i < headings.length; i++) {\n aResult.put(headings[i], rowWithTdStrings.get(i));\n }\n result.add(aResult);\n }\n return result;\n }", "public ArrayList<Bike> getAllBikes (){\n bikelist = new ArrayList<>();\n \n try(\n Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(ALL_BIKES);\n ResultSet rs = ps.executeQuery()){\n \n while(rs.next()){\n \n \tBike bike = getBikeFromRS(rs);\n bikelist.add(bike);\n }\n \n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n return bikelist;\n }", "private Status batchGet(\n String table, String key, Set<String> fields,\n Map<String, ByteIterator> result) {\n try {\n List<Pair<byte[], byte[]>> batchKeys = new ArrayList<>();\n List<byte[]> values = new ArrayList<>();\n byte[] hashKey = key.getBytes();\n for (byte[] sortKey : sortKeys) {\n batchKeys.add(Pair.of(hashKey, sortKey));\n }\n client.batchGet(table, batchKeys, values);\n if (!values.isEmpty()) {\n for (byte[] value : values) {\n fromJson(value, fields, result);\n }\n }\n return Status.OK;\n } catch (Exception e) {\n logger.error(\"Error batch reading value from table[\" + table + \"] with key: \" + key, e);\n return Status.ERROR;\n }\n }", "public void fetRowList() {\n try {\n data.clear();\n if (rsAllEntries != null) {\n ObservableList row = null;\n //Iterate Row\n while (rsAllEntries.next()) {\n row = FXCollections.observableArrayList();\n //Iterate Column\n for (int i = 1; i <= rsAllEntries.getMetaData().getColumnCount(); i++) {\n row.add(rsAllEntries.getString(i));\n }\n data.add(row);\n }\n //connects table with list\n table.setItems(data);\n // cell instances are generated for Order Status column and then colored\n customiseStatusCells();\n\n } else {\n warning.setText(\"No rows to display\");\n }\n } catch (SQLException ex) {\n System.out.println(\"Failure getting row data from SQL \");\n }\n }", "java.util.List<? extends io.dstore.engine.procedures.MiCheckPerformanceAd.Response.RowOrBuilder> \n getRowOrBuilderList();", "@GET\n\t\t\t@Path(\"/rows\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getEquipserviceRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new EquipserviceDao(uriInfo,header).getEquipserviceRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getEquipserviceRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}" ]
[ "0.72116995", "0.66691494", "0.66259223", "0.6419794", "0.63122594", "0.62990165", "0.6276544", "0.62681353", "0.6243388", "0.6142209", "0.5921952", "0.59198236", "0.5918982", "0.5894924", "0.5894924", "0.5885223", "0.5792085", "0.5755124", "0.5711617", "0.570747", "0.5701951", "0.5667543", "0.5660491", "0.56599736", "0.56569016", "0.564383", "0.55971557", "0.5595826", "0.55781305", "0.55781305", "0.55550736", "0.5540705", "0.5524909", "0.5512981", "0.55024916", "0.54944247", "0.5487955", "0.54872984", "0.54866594", "0.54861164", "0.5460158", "0.54591155", "0.5458525", "0.54575896", "0.54503345", "0.5447618", "0.54461163", "0.5423968", "0.542235", "0.54101634", "0.54064286", "0.53900653", "0.5385334", "0.53805023", "0.536878", "0.53613716", "0.5346142", "0.5343489", "0.53425837", "0.53423923", "0.5340873", "0.5336872", "0.53349763", "0.5332748", "0.53297246", "0.53293866", "0.5307645", "0.5300592", "0.52951306", "0.52896893", "0.52798456", "0.52743113", "0.5273209", "0.52651703", "0.526319", "0.5262356", "0.52558553", "0.5255259", "0.52510804", "0.5246468", "0.52402985", "0.52310467", "0.522945", "0.52248317", "0.52126306", "0.5207364", "0.5203259", "0.5201865", "0.5195048", "0.51945543", "0.5194165", "0.51906973", "0.51886725", "0.51858526", "0.51817006", "0.51797783", "0.51708233", "0.5163365", "0.5157633", "0.51523083" ]
0.59451413
10
Commits a KijiRestRow representation to the kiji table: performs create and update. Note that the userformatted entityId is required. Also note that writer schema is not considered as of the latest version.
private Map<String, String> postRow(final String instance, final String table, final KijiRestRow kijiRestRow) throws IOException { final KijiTable kijiTable = mKijiClient.getKijiTable(instance, table); final EntityId entityId; if (null != kijiRestRow.getEntityId()) { entityId = kijiRestRow.getEntityId().resolve(kijiTable.getLayout()); } else { throw new WebApplicationException( new IllegalArgumentException("EntityId was not specified."), Status.BAD_REQUEST); } // Open writer and write. RowResourceUtil.writeRow(kijiTable, entityId, kijiRestRow, mKijiClient.getKijiSchemaTable(instance)); // Better output? Map<String, String> returnedTarget = Maps.newHashMap(); URI targetResource = UriBuilder.fromResource(RowsResource.class).build(instance, table); String eidString = URLEncoder.encode(kijiRestRow.getEntityId().toString(), "UTF-8"); returnedTarget.put("target", targetResource.toString() + "?eid=" + eidString); return returnedTarget; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete, Integer lockId) throws IOException;", "public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete) throws IOException;", "public void writeFromObjectIntoRowForUpdate(WriteObjectQuery writeQuery, AbstractRecord row) throws DescriptorException {\n AbstractSession session = writeQuery.getSession();\n\n //Helper.toDo(\"bjv: need to figure out how to handle read-only elements...\");\n if (session.isClassReadOnly(this.getReferenceClass())) {\n return;\n }\n\n if (session.isUnitOfWork()) {\n if (this.compareObjects(writeQuery.getObject(), writeQuery.getBackupClone(), session)) {\n return;// nothing has changed - don't put anything in the row\n }\n }\n this.writeFromObjectIntoRow(writeQuery.getObject(), row, session);\n }", "public void commitEntity();", "void commit() throws StorageException, ValidationException, KeyValueStoreException;", "public void commit();", "@Writer\n int updateByPrimaryKey(LuckyBag record);", "@Override\n\t\t\tpublic void CommitHandle(JTable table) {\n\t\t\t}", "@Override\n\t\t\tpublic void CommitHandle(JTable table) {\n\t\t\t}", "@Override\n public void commit() {\n }", "@Writer\n int updateByPrimaryKeyWithBLOBs(ProductSellerGoods record);", "public void commit() {\n\t\tif (commit) {\n\t\t\t// Récupérer le path du JSON\n\t\t\tSystem.out.println(ClassLoader.getSystemResource(jsonFile));\n\t\t\tURL url = ClassLoader.getSystemResource(jsonFile);\n\t\t\t// On ouvre un flux d'écriture vers le fichier JSON\n\t\t\ttry (OutputStream ops = new FileOutputStream(Paths.get(url.toURI()).toFile())) {\n\t\t\t\t// Ecriture du fichier JSON avec formatage\n\t\t\t\t// (WithDefaultPrettyPrinter)\n\t\t\t\tobjectMapper.writerWithDefaultPrettyPrinter().writeValue(ops, database);\n\t\t\t\tlogger.info(\"OK - fichier JSON mis à jour \" + jsonFile);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tlogger.info(\"KO - FILE_NOT_FOUND\" + jsonFile);\n\t\t\t\tthrow new DataRepositoryException(\"KO - FILE_NOT_FOUND\", e);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.info(\"KO - I/O ERROR\" + jsonFile);\n\t\t\t\tthrow new DataRepositoryException(\"KO - I/O ERROR\", e);\n\t\t\t} catch (URISyntaxException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void commit() throws ResourceException;", "public void commitRow(Vector<Object> rowData)\n\t\t\tthrows SQLException\n\t{\n\t\tObject id = rowData.get(0);\n\t\t\n\t\tString statement = null;\n\t\tlong querytime = 0;\n\t\t\n\t\tif( id == null \n\t\t\t\t|| !TableHelper.idExists(id.toString(), getDBTableName())\n\t\t\t)\n\t\t{\n\t\t\t// insert\n\t\t\tstatement = prepareInsertStatement(rowData);\n\t\t} else {\n\t\t\t// update\n\t\t\tstatement = prepareUpdateStatement(rowData);\n\t\t}\n\n\t\tDBConnector.getInstance().executeUpdate(statement);\n\t\tquerytime = DBConnector.getInstance().getQueryTime();\n\t\t\n\t\tupdateReferencesFor((String)id,rowData);\n\t\tquerytime += DBConnector.getInstance().getQueryTime();\n\t\t\t\n\t\tApplicationLogger.logDebug(\n\t\t\t\tthis.getClass().getSimpleName()\n\t\t\t\t\t+ \".commitRow time: \"+querytime+ \" ms\"\n\t\t\t);\n\t}", "int updateByPrimaryKey(ResourcePojo record);", "int updateByPrimaryKey(AccountBankStatementImportJournalCreationEntity record);", "int updateByPrimaryKey(Body record);", "int updateByPrimaryKey(AccessKeyRecordEntity record);", "public void commit() {\n }", "public abstract void commit();", "public HrJBorrowcontract update(HrJBorrowcontract entity);", "@Override\n\tpublic void commit() {\n\n\t}", "void commit() throws CommitException;", "int insert(ResourcePojo record);", "int updateByPrimaryKey(JzAct record);", "void commit();", "void commit();", "int updateByPrimaryKey(ResPartnerBankEntity record);", "int updateByPrimaryKey(Engine record);", "int updateByPrimaryKey(Storage record);", "int updateByPrimaryKey(Storage record);", "int updateByPrimaryKey(Kmffb record);", "public void writeFromObjectIntoRowWithChangeRecord(ChangeRecord changeRecord, AbstractRecord row, AbstractSession session) throws DescriptorException {\n Object object = ((ObjectChangeSet)changeRecord.getOwner()).getUnitOfWorkClone();\n this.writeFromObjectIntoRow(object, row, session);\n }", "public void save(HrJBorrowcontract entity);", "@Override\n public void executeQuery() {\n try {\n Put put = new Put(this.userId.getBytes());\n put.add(\"cf\".getBytes(), Bytes.toBytes(this.poi.getTimestamp()), this.poi.getBytes());\n this.table.put(put);\n \n } catch (IOException ex) {\n Logger.getLogger(InsertPOIVisitClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected abstract E modifyRow(E rowObject);", "@Override\n\tpublic int commit() {\n\t\treturn 0;\n\t}", "int updateByPrimaryKey(UserEntity record);", "int updateByPrimaryKey(Kaiwa record);", "@Writer\n int updateByPrimaryKey(ProductSellerGoods record);", "void commit() {\n }", "public void commitWriter () {\n try {\n writer.commit();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "int updateByPrimaryKey(HomeWork record);", "public final void writeRow(RowSetterIfc rowSetter) {\n Row row = (Row) rowSetter;\n myLoadArray[myRowCount] = row.getElements();\n myRowCount++;\n if (myRowCount == (myMaxRowsInBatch)) {\n loadArray(myLoadArray);\n myRowCount = 0;\n }\n }", "int addRow(RowData row_data) throws IOException;", "public void commit() {\n doCommit();\n }", "int updateByPrimaryKey(ResultDto record);", "@Override\n public void commitTx() {\n \n }", "public RecordWriter<ImmutableBytesWritable, KeyValue> getRecordWriter(TaskAttemptContext context)\n throws IOException, InterruptedException {\n final Path outputPath = FileOutputFormat.getOutputPath(context);\n final Path outputdir = new FileOutputCommitter(outputPath, context).getWorkPath();\n Configuration conf = context.getConfiguration();\n final FileSystem fs = outputdir.getFileSystem(conf);\n // These configs. are from hbase-*.xml\n final long maxsize = conf.getLong(\"hbase.hregion.max.filesize\", 268435456);\n final int blocksize = conf.getInt(\"hfile.min.blocksize.size\", 65536);\n // Invented config. Add to hbase-*.xml if other than default compression.\n final String compression = conf.get(\"hfile.compression\",\n Compression.Algorithm.NONE.getName());\n\n return new RecordWriter<ImmutableBytesWritable, KeyValue>() {\n // Map of families to writers and how much has been output on the writer.\n private final Map<byte [], WriterLength> writers =\n new TreeMap<byte [], WriterLength>(Bytes.BYTES_COMPARATOR);\n private byte [] previousRow = HConstants.EMPTY_BYTE_ARRAY;\n private final byte [] now = Bytes.toBytes(System.currentTimeMillis());\n\n public void write(ImmutableBytesWritable row, KeyValue kv)\n throws IOException {\n long length = kv.getLength();\n byte [] family = kv.getFamily();\n WriterLength wl = this.writers.get(family);\n if (wl == null || ((length + wl.written) >= maxsize) &&\n Bytes.compareTo(this.previousRow, 0, this.previousRow.length,\n kv.getBuffer(), kv.getRowOffset(), kv.getRowLength()) != 0) {\n // Get a new writer.\n Path basedir = new Path(outputdir, Bytes.toString(family));\n if (wl == null) {\n wl = new WriterLength();\n this.writers.put(family, wl);\n if (this.writers.size() > 1) throw new IOException(\"One family only\");\n // If wl == null, first file in family. Ensure family dir exits.\n if (!fs.exists(basedir)) fs.mkdirs(basedir);\n }\n wl.writer = getNewWriter(wl.writer, basedir);\n Log.info(\"Writer=\" + wl.writer.getPath() +\n ((wl.written == 0)? \"\": \", wrote=\" + wl.written));\n wl.written = 0;\n }\n kv.updateLatestStamp(this.now);\n wl.writer.append(kv);\n wl.written += length;\n // Copy the row so we know when a row transition.\n this.previousRow = kv.getRow();\n }\n\n /* Create a new HFile.Writer. Close current if there is one.\n * @param writer\n * @param familydir\n * @return A new HFile.Writer.\n * @throws IOException\n */\n private HFile.Writer getNewWriter(final HFile.Writer writer,\n final Path familydir)\n throws IOException {\n close(writer);\n return new HFile.Writer(fs, StoreFile.getUniqueFile(fs, familydir),\n blocksize, compression, KeyValue.KEY_COMPARATOR);\n }\n\n private void close(final HFile.Writer w) throws IOException {\n if (w != null) {\n StoreFile.appendMetadata(w, System.currentTimeMillis(), true);\n w.close();\n }\n }\n\n public void close(TaskAttemptContext c)\n throws IOException, InterruptedException {\n for (Map.Entry<byte [], WriterLength> e: this.writers.entrySet()) {\n close(e.getValue().writer);\n }\n }\n };\n }", "int updateByPrimaryKey(IceApp record);", "public void commit(){\n \n }", "@Override\r\n\tpublic void commit(String tableName) {\n\t}", "int updateByPrimaryKey(BnesBrowsingHis record) throws SQLException;", "@Test\n\tpublic void testAddRowCommit() {\n\t}", "public void rollbackRow(byte[] row, long startId) throws IOException;", "int updateByPrimaryKey(Factory record);", "int updateByPrimaryKey(BPBatchBean record);", "int updateByPrimaryKey(Resource record);", "int updateByPrimaryKey(NjOrderWork2 record);", "public Document commitEditableInstance()\n throws WorkflowException, MappingException, RepositoryException, RemoteException;", "@Override\r\n\t\tpublic void commit() throws SQLException {\n\t\t\t\r\n\t\t}", "int updateByPrimaryKey(Yqbd record);", "int updateByPrimaryKey(OcCustContract record);", "int updateByPrimaryKey(TBBearPer record);", "int updateByPrimaryKey(Caiwu record);", "Row createRow();", "@Writer\n int insert(ProductSellerGoods record);", "public GlBuffer commit(){\n return commit(true);\n }", "int updateByPrimaryKey(TDwBzzxBzflb record);", "int updateByPrimaryKey(TbComEqpModel record);", "int updateByPrimaryKey(ChannelAli record);", "int updateByPrimaryKey(TestEntity record);", "int updateByPrimaryKey(OfUserWechat record);", "void write(IdWriter writer) throws IOException {\n cellRevision.write(writer);\n writer.writeBoolean(modified);\n }", "int updateByPrimaryKey(Drug_OutWarehouse record);", "int updateByPrimaryKey(Commet record);", "int updateByPrimaryKeyWithBLOBs(CCustomer record);", "int updateByPrimaryKey(BaseReturn record);", "int updateByPrimaryKey(Clazz record);", "int updateByPrimaryKey(Assist_table record);", "int updateByPrimaryKey(FormatOriginRecord record);", "int updateByPrimaryKey(DebtsRecordEntity record);", "@Override\n\tpublic int storeRow(java.sql.Connection conn, com.vaadin.data.Item row) throws UnsupportedOperationException, java.sql.SQLException { \n\t String newid = null;\n\t int retval = 0;\n\t try ( java.sql.CallableStatement call = conn.prepareCall(\"{ ? = call EMAIL.EMAILTEMPLATE (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) }\")) {\n\n\t int i = 1;\n\t call.registerOutParameter(i++, java.sql.Types.VARCHAR); \n\t \n\t \t\t\n\t setString(call, i++, getString(row,\"ID\"));\n\t setString(call, i++, getString(row,\"ROWSTAMP\"));\n\n\t setString(call, i++, getString(row, \"EMAILNAME\"));\n\t setString(call, i++, getString(row, \"EMAILSUBJECT\"));\n\t setString(call, i++, getString(row, \"CONTENT\"));\n\t setString(call, i++, getString(row, \"HELPTEXT\"));\n\t setBoolean(call, i++, getOracleBoolean(row, \"ISACTIVE\"));\n\t setString(call, i++, getString(row, \"CREATEDBY\"));\n\t setTimestamp(call, i++, getOracleTimestamp(row, \"CREATED\"));\n\t setString(call, i++, User.getUser().getUserId());\n\t setTimestamp(call, i++, OracleTimestamp.now());\n\t \n\t retval = call.executeUpdate();\n\t newid = call.getString(1);\n\t if(logger.isDebugEnabled()) {\n\t logger.debug(\"newid = {} retval = {}\",newid, retval);\n\t }\n\t }\n\t setLastId(newid);\n\t return retval;\n\t}", "void committed() {\n\t\t\tfor (Entry<Integer, Object> entry : newData.entrySet())\n\t\t\t\toriginalData.put(entry.getKey(), entry.getValue());\n\t\t\treset();\n\t\t\taction = RowAction.UPDATE;\n\t\t}", "int updateByPrimaryKeyWithBLOBs(ResourceWithBLOBs record);", "int updateByPrimaryKey(Forumpost record);", "int updateByPrimaryKey(YzStiveExplosion record);", "public void commit() {\n tryCommit(true);\n }", "int updateByPrimaryKey(RecordLike record);", "protected void commit()\n\t{\n\t\t_Status = DBRowStatus.Unchanged;\n\t}", "@Override\n protected final Void updateKeyAfterInsert(FarmField entity, long rowId) {\n return null;\n }", "int updateByPrimaryKey(ToolsOutIn record);", "public int updateByPrimaryKey(ActorDto record) {\n int rows = getSqlMapClientTemplate().update(\"HR_ACTOR.ibatorgenerated_updateByPrimaryKey\", record);\n return rows;\n }", "int updateByPrimaryKey(WbUser record);", "public void update(IEntity entity) throws SQLException;", "int updateByPrimaryKey(AccessModelEntity record);", "public RevCommit commit(\n MetaDataUpdate update, ObjectInserter objInserter, ObjectReader objReader, RevWalk revWalk)\n throws IOException {\n try (BatchMetaDataUpdate batch = openUpdate(update, objInserter, objReader, revWalk)) {\n batch.write(update.getCommitBuilder());\n return batch.commit();\n }\n }", "int updateByPrimaryKey(BehaveLog record);", "int updateByPrimaryKey(CCustomer record);", "int updateByPrimaryKey(TRepairs record);" ]
[ "0.59497315", "0.59051573", "0.56215525", "0.55801684", "0.5330484", "0.5325794", "0.52885413", "0.52816063", "0.52816063", "0.52585953", "0.5231631", "0.5225651", "0.52228254", "0.52188414", "0.51995414", "0.51993257", "0.51977557", "0.5187958", "0.51693803", "0.51668286", "0.51652443", "0.516443", "0.51062393", "0.50895756", "0.5081681", "0.50728923", "0.50728923", "0.50722694", "0.50636435", "0.50623655", "0.50623655", "0.50611246", "0.50522155", "0.5051376", "0.5050935", "0.50349057", "0.5030398", "0.4998856", "0.4997477", "0.4983806", "0.49765432", "0.49724445", "0.4968327", "0.49661565", "0.49547085", "0.4949096", "0.49397796", "0.49318194", "0.49109104", "0.49060684", "0.48998788", "0.48987243", "0.48968324", "0.48956418", "0.48913494", "0.48878682", "0.48848835", "0.48778245", "0.4870282", "0.48677298", "0.4865435", "0.48601636", "0.48469895", "0.48451093", "0.48422915", "0.4839622", "0.4835516", "0.48139098", "0.4813362", "0.48089042", "0.48025185", "0.48015088", "0.48010275", "0.4798152", "0.47959876", "0.479535", "0.47938338", "0.47932386", "0.47871", "0.47869837", "0.47858012", "0.47847724", "0.4783996", "0.47819743", "0.47792727", "0.477819", "0.4774468", "0.47744426", "0.47726285", "0.4770084", "0.47672802", "0.4762649", "0.4761767", "0.4760284", "0.47587782", "0.47501618", "0.47443685", "0.47439578", "0.4743178", "0.47380802" ]
0.6321086
0
DELETEs a Kiji row, a list of columns in a row, a list of rows, or a list of columns in a list of rows using a buffered write. This method does not support wildcards.
@DELETE @Timed @ApiStability.Experimental public boolean deleteRows( @PathParam(INSTANCE_PARAMETER) String instance, @PathParam(TABLE_PARAMETER) String table, @QueryParam("eid") String jsonEntityId, @QueryParam("eids") String jsonEntityIds, @QueryParam("cols") @DefaultValue(ALL_COLS) String columns, @QueryParam("timestamp") @DefaultValue("-1") Long timestamp) { KijiTable kijiTable = mKijiClient.getKijiTable(instance, table); KijiTableLayout layout = kijiTable.getLayout(); if (jsonEntityId != null && jsonEntityIds != null) { throw new WebApplicationException(new IllegalArgumentException("Ambiguous request. " + "Specified both jsonEntityId and jsonEntityIds."), Status.BAD_REQUEST); } else if (jsonEntityId == null && jsonEntityIds == null) { throw new WebApplicationException(new IllegalArgumentException("Ambiguous request. " + "Specified neither jsonEntityId or jsonEntityIds."), Status.BAD_REQUEST); } try { List<KijiRestEntityId> kijiRestEntityIds = Lists.newArrayList(); if (jsonEntityId != null) { kijiRestEntityIds.add(KijiRestEntityId.createFromUrl(jsonEntityId, layout)); } else { kijiRestEntityIds.addAll(KijiRestEntityId.createListFromUrl(jsonEntityIds, layout)); } List<EntityId> entityIds = getEntityIdsFromKijiRestEntityIds(kijiRestEntityIds, layout); final KijiBufferedWriter writer = kijiTable.getWriterFactory().openBufferedWriter(); for (EntityId eid : entityIds) { if (columns.equals(ALL_COLS)) { if (timestamp >= 0) { writer.deleteRow(eid, timestamp); } else { writer.deleteRow(eid); } } else { String[] requestedColumnArray = columns.split(","); for (String s : requestedColumnArray) { KijiColumnName columnName = new KijiColumnName(s); if (timestamp >= 0) { writer.deleteColumn( eid, columnName.getFamily(), columnName.getQualifier(), timestamp); } else { writer.deleteColumn(eid, columnName.getFamily(), columnName.getQualifier()); } } } } writer.flush(); writer.close(); } catch (IOException ioe) { throw new WebApplicationException(ioe, Status.BAD_REQUEST); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeRow(int row_index) throws IOException;", "private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n WriteContext ctx,\n long nowInSec)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, cell),\n DeletionTime.build(cell.timestamp(), nowInSec),\n ctx);\n }", "public DResult delete(byte[] row, long startId) throws IOException;", "private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n DeletionTime deletion,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n null));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, null),\n deletion,\n ctx);\n }", "public native void deleteRow(int row) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;", "public void deleteAll(final byte [] regionName, final byte [] row,\n final byte [] column, final long timestamp, final long lockId) \n throws IOException {\n HRegion region = getRegion(regionName);\n region.deleteAll(row, column, timestamp, getLockFromId(lockId));\n }", "public void deleteRow(Row _deleteThis){\r\n if(!validTable()){\r\n System.out.println(\"Error:Table:deleteRow: table invalid, nothing done\");\r\n return;\r\n }\r\n Set<String> keys = rows.keySet();\r\n //Searches for row to delete and then removes it\r\n for(String k : keys) {\r\n if(_deleteThis.getData() == rows.get(k).getData()){\r\n rows.remove(k);\r\n return;\r\n }\r\n }\r\n System.out.println(\"Error:Table:deleteRow: Unable to find passed row, no row deleted\");\r\n }", "public void removeRow(String rowName);", "public void deleteRows(int[] rows) throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n LinkedList data_to_remove = new LinkedList();\r\n for (int i=0; i<rows.length; i++){\r\n data_to_remove.add(data.get(rows[i]));\r\n }\r\n for (int i=0; i<data_to_remove.size(); i++){\r\n data.remove(data_to_remove.get(i)); \r\n }\r\n this.fireTableRowsDeleted(rows[0], rows[rows.length -1]);\r\n }\r\n }", "public void removeRow(int ind) throws SQLException {\n/* 417 */ notSupported();\n/* */ }", "@Kroll.method\n\tpublic void deleteRow(Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (rowObj instanceof Integer) {\n\t\t\tfinal int index = ((Integer) rowObj).intValue();\n\n\t\t\tdeleteRow(getRowByIndex(index), null);\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\tif (row == null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TiViewProxy parent = row.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.remove(row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void delRecord(String tableName, String rowKey)\n\t\t\tthrows IOException {\n\t\tHTable table = connectTable(tableName);\n\t\tDelete del = new Delete(Bytes.toBytes(rowKey));\n\t\ttable.delete(del);\n\t\treleaseTable(table);\n\t\tLOG.info(\"delete recored \" + rowKey + \" from table[\" + tableName\n\t\t\t\t+ \"] ok.\");\n\t}", "void removeRowsLock();", "public abstract void rowsDeleted(int firstRow, int endRow);", "public int deleteList(String[] deleteRows, User user) throws Exception;", "public void deleteRow(String row) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + row, null);\n }", "public native void deleteRow(int row, TableViewAnimation animation) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso\n\t\t\t\t.deleteRow(\n\t\t\t\t\t\trow,\n\t\t\t\t\t\[email protected]::getJsObj()());\n }-*/;", "public abstract void Delete(WriteOptions options, Slice key) throws IOException, BadFormatException, DecodeFailedException;", "@Override\n\tpublic void process(StreamingInput<Tuple> stream, Tuple tuple)\n\t\t\tthrows Exception {\n\t\tHTableInterface myTable = connection.getTable(tableNameBytes);\n\t\tbyte row[] = getRow(tuple);\n\t\tDelete myDelete = new Delete(row);\n\n\t\tif (DeleteMode.COLUMN_FAMILY == deleteMode) {\n\t\t\tbyte colF[] = getColumnFamily(tuple);\n\t\t\tmyDelete.deleteFamily(colF);\n\t\t} else if (DeleteMode.COLUMN == deleteMode) {\n\t\t\tbyte colF[] = getColumnFamily(tuple);\n\t\t\tbyte colQ[] = getColumnQualifier(tuple);\n\t\t\tif (deleteAll) {\n\t\t\t\tmyDelete.deleteColumns(colF, colQ);\n\t\t\t} else {\n\t\t\t\tmyDelete.deleteColumn(colF, colQ);\n\t\t\t}\n\t\t}\n\n\t\tboolean success = false;\n\t\tif (checkAttr != null) {\n\t\t\tTuple checkTuple = tuple.getTuple(checkAttrIndex);\n\t\t\t// the check row and the row have to match, so don't use the\n\t\t\t// checkRow.\n\t\t\tbyte checkRow[] = getRow(tuple);\n\t\t\tbyte checkColF[] = getBytes(checkTuple, checkColFIndex,\n\t\t\t\t\tcheckColFType);\n\t\t\tbyte checkColQ[] = getBytes(checkTuple, checkColQIndex,\n\t\t\t\t\tcheckColQType);\n\t\t\tbyte checkValue[] = getCheckValue(checkTuple);\n\t\t\tsuccess = myTable.checkAndDelete(checkRow, checkColF, checkColQ,\n\t\t\t\t\tcheckValue, myDelete);\n\t\t} else if (batchSize == 0) {\n\t\t\tlogger.debug(\"Deleting \" + myDelete);\n\t\t\tmyTable.delete(myDelete);\n\t\t} else {\n\t\t\tsynchronized (listLock) {\n\t\t\t\tdeleteList.add(myDelete);\n\t\t\t\tif (deleteList.size() >= batchSize) {\n\t\t\t\t\tmyTable.delete(deleteList);\n\t\t\t\t\tdeleteList.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Checks to see if an output tuple is necessary, and if so,\n\t\t// submits it.\n\t\tsubmitOutputTuple(tuple, success);\n\t\tmyTable.close();\n\t}", "public void deleteRow(int row)\n throws JPARSECException {\n \tif (row >= m || row < 0)\n \t\tthrow new JPARSECException(\"invalid row.\");\n double newData[][] = new double[m-1][n];\n\n \tint iindex = -1;\n for (int i=0; i<m; i++)\n {\n \tif (i != row) {\n \t\tiindex ++;\n\t for (int j=0; j<n; j++)\n\t {\n\t \tnewData[iindex][j] = this.data[i][j];\n\t }\n \t}\n }\n Matrix m = new Matrix(newData);\n this.m = m.m;\n this.data = m.data;\n }", "public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete) throws IOException;", "@Override\n\tpublic void delete(String key) throws SQLException {\n\t\t\n\t}", "public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete, Integer lockId) throws IOException;", "@Override\n\tprotected void flushBuffer() throws IOException {\n\t\tif (connection != null && !connection.isClosed()) {\n\t\t\tHTableInterface myTable = connection.getTable(tableNameBytes);\n\t\t\tif (myTable != null && deleteList != null && deleteList.size() > 0) {\n\t\t\t\tsynchronized (listLock) {\n\t\t\t\t\tif (deleteList != null && deleteList.size() > 0) {\n\t\t\t\t\t\tmyTable.delete(deleteList);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public synchronized void freeRow(CharacterEntryRow row) {\n }", "public abstract boolean delete(long arg, Connection conn) throws DeleteException;", "public void delete(String path, Expression filterExpression)\n throws IOException, InterruptedException {\n CarbonReader reader = CarbonReader.builder(path)\n .projection(new String[] { CarbonCommonConstants.CARBON_IMPLICIT_COLUMN_TUPLEID })\n .withHadoopConf(configuration)\n .filter(filterExpression).build();\n\n RecordWriter<NullWritable, ObjectArrayWritable> deleteDeltaWriter =\n CarbonTableOutputFormat.getDeleteDeltaRecordWriter(path);\n ObjectArrayWritable writable = new ObjectArrayWritable();\n while (reader.hasNext()) {\n Object[] row = (Object[]) reader.readNextRow();\n writable.set(row);\n deleteDeltaWriter.write(NullWritable.get(), writable);\n }\n deleteDeltaWriter.close(null);\n reader.close();\n }", "public void deleteRow(int row) throws IndexOutOfBoundsException{\r\n data.remove(row);\r\n fireTableRowsDeleted(row,row);\r\n }", "@Override\n\tpublic boolean delete(Item obj) {\n\t\ttry{\n\t\t\tString query=\"DELETE FROM items WHERE id = ?\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setInt(1, obj.getIndex());\n\t\t\tint nb_rows = state.executeUpdate();\n\t\t\tSystem.out.println(\"Deleted \"+nb_rows+\" lines\");\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.delete -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\t\n\t}", "void row_delete(int id){\n\t\t//Delete tuple by executing SQL command\n\t\tStatement stm=null;\n\t\tString sql=\"delete from \"+tableName+\" where id=\"+id;\n\t\ttry{\n\t \t stm=con.createStatement(); \n\t \t System.out.println(\"sql: \"+sql); \n\t \t stm.executeUpdate(sql);\n\t \t \n\t \t //Append SQL command and time stamp on log file\n\t \t outfile.write(\"TIMESTAMP: \"+getTimestamp());\n\t\t\t outfile.newLine();\n\t\t\t outfile.write(sql);\n\t\t\t outfile.newLine();\n\t\t\t outfile.newLine();\n\t\t \n\t\t //Catch SQL exception\t \t \n\t }catch (SQLException e ) {\n\t \t e.printStackTrace();\n\t //Catch I/O exception\n\t } catch(IOException ioe){ \n\t \t ioe.printStackTrace();\n\t }finally {\n\t \t try{\n\t if (stm != null) stm.close(); \n\t }\n\t \t catch (SQLException e ) {\n\t \t\t e.printStackTrace();\n\t\t }\n\t }\t\n\t\t \n\t }", "public void removeRow(int row) {\r\n\t\tdata.remove(row);\r\n\t}", "public void deleteRow(MyItem row) {\n\n\t\tif (MyItemAdapter.rows.contains(row)) {\n\t\t\tMyItemAdapter.rows.remove(row);\n\t\t}\n\n\t}", "@Override\r\n\tpublic void delete(int r_idx) throws Exception {\n\r\n\t}", "@Override\n\tpublic String deleteBatch() throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic void delete(Iterable<? extends Pessoa> arg0) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "public static void deleteRow(HTable table, String rowKey) throws Exception {\n\t\tDelete delete = new Delete(Bytes.toBytes(rowKey));\n\t\ttable.delete(delete);\n\t\tSystem.out.println(\"Delete row: \" + rowKey);\n\t}", "public void removeRow(T obj) {\r\n\t\t\r\n\t\tlogger.trace(\"Enter removeRow - T obj\");\r\n\t\t\r\n\t\tint row = data.indexOf(obj);\r\n\t\tif (row >= 0) {\r\n\t\t\tdata.remove(row);\r\n\t\t\tfireTableRowsDeleted(row, row);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"Exit removeRow - T obj\");\r\n\t}", "public void deleteSelectedFile(int row) {\n\t\tArrayList<File> files = currConfig.getSelectedFiles();\n\t\tfiles.remove(row);\n\t}", "@Override\r\n\tpublic void removeRow(int row) {\r\n\t\tsuper.removeRow(row);\r\n\t\telenco = lista.getElenco();\r\n\t\tPersona removable = new Persona();\r\n\t\tremovable.setNome(elenco.elementAt(row).getNome());\r\n\t\tremovable.setCognome(elenco.elementAt(row).getCognome());\r\n\t\tremovable.setTelefono(elenco.elementAt(row).getTelefono());\r\n\t\tremovable.setIndirizzo(elenco.elementAt(row).getIndirizzo());\r\n\t\tremovable.setEta(elenco.elementAt(row).getEta());\r\n\t\ttry {\r\n\t\t\tlista.delete(removable, row);\r\n\t\t\t}\r\n\t\t\tcatch (ArrayIndexOutOfBoundsException aioe) {\r\n\t\t\t\tString message = AIOE_MESSAGE\r\n\t\t\t\t\t\t+row + \" on table \"\r\n\t\t\t\t\t\t+lista.getElenco().indexOf(removable)\r\n\t\t\t\t\t\t+ \" on Lista \";\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message);\r\n\t\t\t}\r\n\t}", "public abstract void write(int rowCount) throws IOException;", "public void removeRowAt(int row)\r\n throws IllegalStateException {\r\n if(!(Integer.parseInt(((Vector)data.elementAt(row)).elementAt\r\n (numberOfcolumns).toString()) == IS_INSERTED)){\r\n ( (Vector) data.elementAt(row)).\r\n setElementAt(new Integer(IS_DELETED), numberOfcolumns);\r\n dataDeleted.add((Vector)data.elementAt(row));\r\n }\r\n data.removeElementAt(row);\r\n this.deletedStatus = true;\r\n }", "public void deleteEntry(long row) {\n database.delete(ORDER_MASTER, ROW_ID + \"=\" + row, null);\n }", "void deleteRow(int rowPos)\n {\n System.out.println(\n \"@deleteRow rowPos: \" + rowPos + \", vs stackSize: \" + compositeRowStack.size());\n if(rowPos > 0) transferChildren(rowPos, rowPos - 1);\n if(rowPos < compositeRowStack.size())\n {\n compositeRowStack.remove(rowPos);\n }\n }", "public int deleteDBrow(Long rowId) {\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n // Define 'where' part of query.\n String selection = FeedEntry._ID + \" LIKE ?\";\n // Specify arguments in placeholder order.\n String[] selectionArgs = {rowId.toString()};\n // Issue SQL statement.\n return db.delete(FeedEntry.TABLE_NAME, selection, selectionArgs);\n }", "public void deleteCertainRow(String itemname1,String itemname2, String tableName, String columnName1,String columnName2) throws SQLException\n {\n\n String deletetStr = \"DELETE FROM \"+tableName+\" WHERE \"+columnName1+\" = \"+quotate(itemname1)+\"AND \"+columnName2+\" = \"+quotate(itemname2);\n stmt.executeUpdate(deletetStr);\n return;\n\n }", "void delete(SpCharInSeq spCharInSeq);", "@Override\n public void delete(Integer key) throws SQLException {\n //Ei toteutettu\n }", "public void delete(Iterable<? extends T> arg0) {\n\t\t\n\t}", "WriteRequest delete(PiHandle handle);", "@Override\n public void delete(UltraSearchSessions.Session session, UltraSearchBackendEntry.Row entry) {\n List<Object> idParts = this.idColumnValue(entry.id());\n if (idParts.size() > 1 || entry.columns().size() > 0) {\n super.delete(session, entry);\n return;\n }\n\n // The only element is label\n this.deleteEdgesByLabel(session, entry.id());\n }", "void remove(int row, int column) {\n SparseArrayCompat<TObj> array = mData.get(row);\n if (array != null) {\n array.remove(column);\n }\n }", "public void deleteRow(int row) {\n\t\tif (row == -1) return;\n\t\t\n\t\tdata.remove(row);\n\t\tfireTableRowsDeleted(row, row);\n\t}", "@Test\n public void testMixedDeletes() throws Exception {\n List<WALEntry> entries = new ArrayList<>(3);\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < 3; i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n entries = new ArrayList(3);\n cells = new ArrayList();\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 0, DeleteColumn, cells));\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 1, DeleteFamily, cells));\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, 2, DeleteColumn, cells));\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(0, scanRes.next(3).length);\n }", "public void deleteIscrizione() throws SQLException {\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tpstmt = con.prepareStatement(STATEMENTDEL);\r\n\t\t\t\r\n\t\t\tpstmt.setString(1, i.getGiocatore());\r\n\t\t\tpstmt.setInt(2, i.getTorneo());\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tpstmt.execute();\r\n\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\tpstmt.close();\r\n\t\t\t}\r\n\r\n\t\t\tcon.close();\r\n\t\t}\r\n\r\n\t}", "@Writer\n int deleteByExample(LuckyBagExample example);", "public void doDelete(T objectToDelete) throws SQLException;", "private void deleteWildcard(StringBuilder charSeq, String wildcard) {\n int startIndex = charSeq.indexOf(wildcard);\n if (startIndex >= 0) {\n charSeq.delete(startIndex, startIndex + wildcard.length());\n }\n }", "int delete(T data) throws SQLException, DaoException;", "public boolean delete(long rowId) {\n\t\treturn db.delete(tableName, fields[0] + \" = \" + String.valueOf(rowId), null) > 0;\t\t\n\t}", "@Test\n public void testMixedPutDelete() throws Exception {\n List<WALEntry> entries = new ArrayList<>(((TestReplicationSink.BATCH_SIZE) / 2));\n List<Cell> cells = new ArrayList<>();\n for (int i = 0; i < ((TestReplicationSink.BATCH_SIZE) / 2); i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, Put, cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n entries = new ArrayList(TestReplicationSink.BATCH_SIZE);\n cells = new ArrayList();\n for (int i = 0; i < (TestReplicationSink.BATCH_SIZE); i++) {\n entries.add(createEntry(TestReplicationSink.TABLE_NAME1, i, ((i % 2) != 0 ? Type.Put : Type.DeleteColumn), cells));\n }\n TestReplicationSink.SINK.replicateEntries(entries, CellUtil.createCellScanner(cells.iterator()), TestReplicationSink.replicationClusterId, TestReplicationSink.baseNamespaceDir, TestReplicationSink.hfileArchiveDir);\n Scan scan = new Scan();\n ResultScanner scanRes = TestReplicationSink.table1.getScanner(scan);\n Assert.assertEquals(((TestReplicationSink.BATCH_SIZE) / 2), scanRes.next(TestReplicationSink.BATCH_SIZE).length);\n }", "@Override\n\t\t\t\tpublic void rowsDeleted(int firstRow, int endRow) {\n\n\t\t\t\t}", "int delete(String tableName, String selectionCriteria, String[] selectionArgs);", "public void clearBatch() throws SQLException {\n\r\n }", "@Override\n\tpublic void delete(Iterable<? extends ComplitedOrderInfo> arg0) {\n\t\t\n\t}", "public native void deselectRow(int row) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.deselectRow(row);\n }-*/;", "@Override\n public void clearBatch() throws SQLException {\n throw new SQLException(\"tinySQL does not support clearBatch.\");\n }", "public java.util.List<Long> deleteByHoppyIds(java.util.List<Long> hoppyIds) throws DataAccessException;", "@Override\n\tpublic void delete(Iterable<? extends Map<String, Object>> arg0) {\n\t\t\n\t}", "SpCharInSeq delete(Integer spcharinseqId);", "@Override\n\tpublic String deleteBatch(List<Map<String, Object>> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}", "public synchronized void putMultiple(List<kelondroRow.Entry> rows) throws IOException {\n Iterator<kelondroRow.Entry> i = rows.iterator();\r\n kelondroRow.Entry row;\r\n int pos;\r\n byte[] key;\r\n TreeMap<Integer, kelondroRow.Entry> old_rows_ordered = new TreeMap<Integer, kelondroRow.Entry>();\r\n ArrayList<kelondroRow.Entry> new_rows_sequential = new ArrayList<kelondroRow.Entry>();\r\n assert this.size() == index.size() : \"content.size() = \" + this.size() + \", index.size() = \" + index.size();\r\n while (i.hasNext()) {\r\n row = i.next();\r\n key = row.getColBytes(0);\r\n pos = index.geti(key);\r\n if (pos < 0) {\r\n new_rows_sequential.add(row);\r\n } else {\r\n old_rows_ordered.put(new Integer(pos), row);\r\n }\r\n }\r\n // overwrite existing entries in index\r\n super.setMultiple(old_rows_ordered);\r\n \r\n // write new entries to index\r\n addUniqueMultiple(new_rows_sequential);\r\n assert this.size() == index.size() : \"content.size() = \" + this.size() + \", index.size() = \" + index.size();\r\n }", "public FeatureCollection removeRows(int[] rows){\n if (debug) logger.info(\"Removing multiple rows\");\n fcLastEdits.clear();\n for (int row : rows){\n Feature f = fc.get(row);\n fcLastEdits.add(f);\n }\n fc.removeAll(fcLastEdits);\n lastEditType = EDIT_REMOVE;\n fireTableDataChanged();//TODO: need to fire something else here to return removed feature to listeners?\n return fcLastEdits;\n }", "@Override\r\n\tpublic void deleteInBatch(Iterable<Employee> arg0) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void deleteRawitem(int rid) {\n\t\t\tString sql=\"DELETE FROM rawitem WHERE rid=:rid\";\n\t\t\tnamedParameterJdbcTemplate.update(sql,getSqlParameterByModel(new Rawitem(rid)));\n\t\t\t\n\t\t}", "public boolean deleteRow(int row) {\n try {\n resultSet.absolute(row + 1);\n resultSet.deleteRow();\n //tell table to redraw itself\n fireTableDataChanged();\n return true;\n } catch (SQLException se) {\n System.out.println(\"Delete row error \" + se);\n return false;\n }\n }", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "@Override\n\tpublic List<T> removeRow(long rowIndex) throws IndexOutOfBoundsException {\n\t\tMatrixValidator.throwIfBadIndex(this, rowIndex, Plane.Y);\n\t\t\n\t\tList<T> removedItems = this.getRow(rowIndex);\n\t\t\n\t\tthis.numRows--;\n\t\tif(this.numRows == 0){\n\t\t\tthis.numCols = 0;\n\t\t\tthis.valueMap.clear();\n\t\t}else {\n\t\t\tList<MatrixCoordinate> coordsToMove = new LongLinkedList<>();\n\t\t\tList<MatrixCoordinate> coordsToRemove = new LongLinkedList<>();\n\t\t\t\n\t\t\tfor(Map.Entry<MatrixCoordinate, T> curEntry : this.valueMap.entrySet()){\n\t\t\t\tif(curEntry.getKey().getRow() > rowIndex){\n\t\t\t\t\tcoordsToMove.add(curEntry.getKey());\n\t\t\t\t}else if(curEntry.getKey().getRow() == rowIndex){\n\t\t\t\t\tcoordsToRemove.add(curEntry.getKey());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(MatrixCoordinate curCoord : coordsToRemove) {\n\t\t\t\tthis.valueMap.remove(curCoord);\n\t\t\t}\n\t\t\t\n\t\t\tfor(MatrixCoordinate curCoord : coordsToMove){\n\t\t\t\tT curVal = this.valueMap.remove(curCoord);\n\t\t\t\t\n\t\t\t\tcurCoord.setY(curCoord.getRow() - 1);\n\t\t\t\tthis.valueMap.put(curCoord, curVal);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn removedItems;\n\t}", "WriteRequest delete(Iterable<? extends PiHandle> handles);", "public int deleteById(long inputId) throws DataAccessException;", "public boolean deleteRowData(long rowId) {\n String where = KEY_ROWID + \"=\" + rowId;\n return db.delete(DATA_TABLE, where, null) != 0;\n }", "public void delete(final boolean currentTarget) {\n\n // Check if there is buffer data to delete \n if((!this.buffer.get(lineT).isEmpty())) {\n if(!currentTarget && this.columnT > 0) // Deletes data on left from current target position\n this.buffer.get(lineT).remove(columnT - 1);\n else // Deletes data on current target position\n this.buffer.get(lineT).remove(columnT);\n\n if(this.columnT > 0)\n this.columnT--; // Decrease one unit target column position\n }\n\n // Check for empty line\n if(this.buffer.get(lineT).isEmpty() && this.buffer.size() > 1) { \n this.buffer.remove(lineT); // Remove empty line\n this.lineT--; // Decrease one unit target line position\n this.columnT = this.buffer.get(lineT).size(); // Set target to last position\n }\n }", "public interface DeleteHelper {\n /**\n * 通过list中的主键id删除数据\n * @param list\n * @return\n */\n int[] delete(List<?> list) throws SQLException, IllegalAccessException;\n\n /**\n * 通过sql删除数据\n * @param sql\n * @param param\n * @throws SQLException\n */\n void delete(String sql,Object... param) throws SQLException;\n}", "@Override\n\tpublic int boardLikeDelete(Map param) {\n\t\treturn dao.boardLikeDelete(session, param);\n\t}", "public void deleteCertainRow(String itemname, String tableName, String columnName) throws SQLException\n {\n\n String deletetStr=\"DELETE FROM \"+tableName+\" WHERE \"+columnName+\" = \"+quotate(itemname);\n stmt.executeUpdate(deletetStr);\n return;\n\n }", "public void deleteRow() throws SQLException {\n\n try {\n debugCodeCall(\"deleteRow\");\n checkClosed();\n if (insertRow != null) { throw Message.getSQLException(ErrorCode.NOT_ON_UPDATABLE_ROW); }\n checkOnValidRow();\n getUpdatableRow().deleteRow(result.currentRow());\n updateRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }", "public boolean deleteRow(long rowId, String tableName) {\n String row_ID = KEY_ROWID + \"=\" + rowId;\n return db.delete(tableName.replaceAll(\"\\\\s\", \"_\"), row_ID, null) != 0;\n }", "public void delete(String sql, int[] keys) throws SQLException {\n try (Connection connection = getConnection()) {\n\n PreparedStatement preparedStatement = connection.prepareStatement(sql);\n\n for (int i = 0; i < keys.length; i++) {\n preparedStatement.setInt(i + 1, keys[i]);\n }\n\n preparedStatement.executeUpdate();\n\n preparedStatement.close();\n }\n }", "@Override\r\n\tpublic int deleteOne(int idx) throws SQLException {\n\t\treturn 0;\r\n\t}", "@Override\n public Object handleQueryWithArgs(Connection connection, Object... whereArgs) throws SQLException {\n Object object = whereArgs[0];\n Class<?> obj = object.getClass();\n int i = 1;\n if (!AnnotationProcessor.isEntity(obj))\n throw new IllegalArgumentException(obj + \"is not an Entity, the first element in the array must be an Entity\");\n Entity entityAnnot = obj.getAnnotation(Entity.class);\n\n String delete = QueryBuilder.deleteQuery(entityAnnot.name(), keys);\n Object[] values = new Object[whereArgs.length - 1];\n System.arraycopy(whereArgs, 1, values, 0, values.length);\n\n try (PreparedStatement preparedStatement = connection.prepareStatement(delete)) {\n for (Object p : values) {\n preparedStatement.setObject(i, p);\n i++;\n }\n i = preparedStatement.executeUpdate();\n }\n\n if (returnType.isPrimitive()) {\n return i;\n }\n\n return object;\n }", "public boolean BorrarDato(long rowId)\n {\n return db.delete(DATABASE_TABLE, KEY_ROWID + \"=\" + rowId, null) > 0;\n }", "void deleteCachedLocation(final byte [] tableName, final byte [] row) {\n synchronized (this.cachedRegionLocations) {\n Map<byte[], HRegionLocation> tableLocations = getTableLocations(tableName);\n if (!tableLocations.isEmpty()) {\n // start to examine the cache. we can only do cache actions\n // if there's something in the cache for this table.\n HRegionLocation rl = getCachedLocation(tableName, row);\n if (rl != null) {\n tableLocations.remove(rl.getRegionInfo().getStartKey());\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Removed \" +\n rl.getRegionInfo().getRegionNameAsString() +\n \" for tableName=\" + Bytes.toString(tableName) +\n \" from cache \" + \"because of \" + Bytes.toStringBinary(row));\n }\n }\n }\n }\n }", "public void deleteRow() throws SQLException\n {\n m_rs.deleteRow();\n }", "public boolean deletePreg(long rowId) {\n\n return mDb.delete(DATABASE_TABLE, KEY_ROWID + \"=\" + rowId, null) > 0;\n }", "public synchronized void delete(long entry) throws IOException {\n long startOfEntry = IDX_START_OF_CONTENT + (entry * bytesPerSlot);\n \n // Remove the entry by writing a '\\n' to the first byte\n idx.seek(startOfEntry);\n idx.writeChar('\\n');\n idx.write(new byte[bytesPerSlot - 2]);\n \n // Update the file header\n entries--;\n idx.seek(IDX_HEADER_ENTRIES);\n idx.writeLong(entries);\n \n logger.debug(\"Removed uri at address '{}' from index\", entry);\n }", "public boolean deleteItem(int index);", "public void deleteRowforNull(String row, String qty) {\n database.delete(ORDER_DETAILS, ORDER_ID + \" = ? AND \" + ORDER_QTY + \" = ?\", new String[]{row, qty});\n }", "@Override\n public void write(OutputStream os) {\n int numRows = 0;\n Writer writer = new BufferedWriter(new OutputStreamWriter(os, Charset.forName(\"UTF-8\")));\n Iterator<KijiRowData> it = mScanner.iterator();\n boolean clientClosed = false;\n\n try {\n while (it.hasNext() && (numRows < mNumRows || mNumRows == UNLIMITED_ROWS)\n && !clientClosed) {\n KijiRowData row = it.next();\n KijiRestRow restRow = getKijiRestRow(row, mTable.getLayout(), mColsRequested,\n mSchemaTable);\n String jsonResult = mJsonObjectMapper.writeValueAsString(restRow);\n // Let's strip out any carriage return + line feeds and replace them with just\n // line feeds. Therefore we can safely delimit individual json messages on the\n // carriage return + line feed for clients to parse properly.\n jsonResult = jsonResult.replaceAll(\"\\r\\n\", \"\\n\");\n writer.write(jsonResult + \"\\r\\n\");\n writer.flush();\n numRows++;\n }\n } catch (IOException e) {\n clientClosed = true;\n } finally {\n if (mScanner instanceof KijiRowScanner) {\n try {\n ((KijiRowScanner) mScanner).close();\n } catch (IOException e1) {\n throw new WebApplicationException(e1, Status.INTERNAL_SERVER_ERROR);\n }\n }\n }\n\n if (!clientClosed) {\n try {\n writer.flush();\n writer.close();\n } catch (IOException e) {\n throw new WebApplicationException(e, Status.INTERNAL_SERVER_ERROR);\n }\n }\n }", "private void deleteRow(int selectedRow){\r\n BudgetSubAwardBean budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n if(budgetSubAwardBean.getAcType() == null || budgetSubAwardBean.getAcType().equals(TypeConstants.UPDATE_RECORD)){\r\n budgetSubAwardBean.setAcType(TypeConstants.DELETE_RECORD);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n if(deletedData ==null) {\r\n deletedData = new ArrayList();\r\n }\r\n deletedData.add(budgetSubAwardBean);\r\n }\r\n data.remove(selectedRow);\r\n \r\n //If Last Row nothing to do\r\n //else Update Sub Award Number for rest of the Rows\r\n /*int size = data.size();\r\n if(selectedRow != size) {\r\n for(int index = selectedRow; index < size; index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n budgetSubAwardBean.setSubAwardNumber(index + 1);\r\n if(budgetSubAwardBean.getAcType() == null) {\r\n budgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End For\r\n }//End If\r\n */\r\n \r\n subAwardBudgetTableModel.fireTableRowsDeleted(selectedRow, selectedRow);\r\n }", "@Override\n public void delete(Iterable<? extends LineEntity> entities) {\n\n }" ]
[ "0.6493597", "0.63846445", "0.6254589", "0.5942863", "0.5925439", "0.58643913", "0.5844511", "0.57847416", "0.5610898", "0.55816185", "0.55514896", "0.5544201", "0.54796064", "0.54216146", "0.54142857", "0.5397287", "0.5380076", "0.53285736", "0.5317764", "0.5316209", "0.53096735", "0.5308119", "0.52947724", "0.52917296", "0.5254335", "0.5254038", "0.5211806", "0.5205212", "0.52009064", "0.5190719", "0.5157806", "0.51255083", "0.5114424", "0.510134", "0.5098642", "0.5096065", "0.5089241", "0.5085867", "0.5073473", "0.507291", "0.5050489", "0.5050332", "0.5049774", "0.5042275", "0.50399625", "0.5016929", "0.5015318", "0.50075364", "0.50053763", "0.50041395", "0.49993297", "0.49904048", "0.49632442", "0.49487478", "0.49453324", "0.4942898", "0.4940058", "0.4937968", "0.49320063", "0.49131125", "0.49111363", "0.49079472", "0.49027836", "0.48980755", "0.4890232", "0.48763415", "0.4873239", "0.48702708", "0.48690534", "0.48671544", "0.4864713", "0.48454663", "0.48425478", "0.4840715", "0.48392302", "0.48388627", "0.4832898", "0.48243827", "0.48224276", "0.48102242", "0.48071182", "0.48009068", "0.480012", "0.47972265", "0.47950897", "0.47926167", "0.4781362", "0.4779043", "0.47789904", "0.47748867", "0.47711462", "0.47658244", "0.4754039", "0.4752593", "0.47519776", "0.47518837", "0.47422442", "0.47405395", "0.473615", "0.4729824" ]
0.5378785
17
/Category category0 = new Category(); category0.setId(5L); category0.setName("changed"); entityManager.merge(category0); System.out.println("=======1====="); Category category = new Category(); category.setId(6L); category.setName("tmptmp"); entityManager.merge(category); System.out.println("======2======"); Category category1 = new Category(); category1.setId(7L); category1.setName("persist"); categoryRepository.save(category1); System.out.println("======3======"); Category category2 = new Category(); category2.setId(7L); category2.setName("updated??"); entityManager.merge(category2); System.out.println("======4======");
@Test @Transactional //@Rollback(value = false) void getCategoryList() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateCategory(Category c) {\n\t\tem.merge(c);\r\n\t\t\r\n\t}", "@Test\n public void test5() throws Exception {\n String jpql = \"SELECT c FROM Course c where c.name = :name\";\n TypedQuery<Course> q = em.createQuery(jpql, Course.class);\n em.createNativeQuery(\"\",Course.class);\n q.setParameter(\"name\", \"Second one\");\n Course course = q.getSingleResult();\n CourseMapped courseMapped = course.getCourseMapped();\n course.setName(\"Edited one\");\n em.merge(course);\n em.flush();\n\n courseMapped.setName(\"Edited one\");\n courseMapped.getLevels().remove(0); // and remove one level\n // commit current transaction, we gonna test results in another one\n Assert.assertTrue(true);\n }", "@Rollback(false)\r\n @Test\r\n public void testEntityMerge_Insert()\r\n {\n PersonDAO person = personFactory.blank();\r\n //Populate\r\n person.setName(\"New Person\");//a NON EXISTING person!\r\n //Add an EXISTING parent person\r\n PersonDAO parent = personFactory.blank();\r\n parent.setId(5);\r\n person.setParent(parent);\r\n\r\n //persist\r\n personFactory.merge(person);\r\n System.out.println(\"Person:\"+person);\r\n\r\n newId = person.getId();\r\n\r\n //-------------------------------------------------------------------------------------\r\n\r\n //dissect\r\n GenericDaoProxy<PersonDAO> dao = GenericDaoProxy.getDaoFromProxiedEntity(person);\r\n\r\n assertThat(dao.getCommonName(), is(\"person\"));\r\n assertThat(person.__identity(), is(dao.getIdentity()));\r\n\r\n //verify that modified fields are detected correctly and not cleared before transaction commit\r\n Set<String> modifiedFields = dao.getModifiedFields();\r\n assertThat(modifiedFields.size(),is(2));\r\n assertThat(modifiedFields.contains(\"name\"),is(true));\r\n assertThat(modifiedFields.contains(\"parent\"),is(true));\r\n\r\n assertThat(person.__revision(), is(-1L));//the default value (not yet updated to the new value (1))\r\n assertThat(dao.getData().get(\"__revision$new\"), is(0L));//verify the new entity revision is 0 (after merge)\r\n\r\n //verify raw data\r\n assertThat(dao.getData().get(\"name\"), is(\"New Person\"));\r\n assertThat(dao.getData().get(\"id$new\"), is(newId));\r\n }", "public E saveUpdate(E entity){\n EntityTransaction transaction = entityManager.getTransaction();\n transaction.begin();\n E e = entityManager.merge(entity);\n transaction.commit();\n return e;\n }", "@Override\n\tpublic void update(Category entity) {\n\n\t}", "@Test\n void updateSuccess() {\n RunCategory categoryToUpdate = (RunCategory) dao.getById(2);\n categoryToUpdate.setCategoryName(\"New Name\");\n dao.saveOrUpdate(categoryToUpdate);\n RunCategory categoryAfterUpdate = (RunCategory) dao.getById(2);\n assertEquals(categoryToUpdate, categoryAfterUpdate);\n }", "@Test\n public void testSave() throws Exception {\n ProductCategory productCategory = categoryServiceImpl.findOne(1);\n productCategory.setCategoryName(\"Lego\");\n ProductCategory category = categoryServiceImpl.save(productCategory);\n System.out.println(\"category:\" + category);\n }", "@Override\n\tpublic boolean saveorupdate(Category category) {\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(category);\n\t\treturn true;\n\t}", "@Test\n\tpublic void testUpdateByMerge() throws SQLException {\n\t\tStatement statement = jdbcConnection.createStatement();\n\t\tstatement.executeUpdate(\n\t\t\t\t\"INSERT INTO Vehiculo(tipo_vehiculo, articulado, anhos, maniobra, impacto, volante_izq, combustible) values('Camión', 'Doble remolque', 25, 'Giro', 'Frontal', true, 'Diesel')\",\n\t\t\t\tStatement.RETURN_GENERATED_KEYS);\n\t\tint id = getLastInsertedId(statement);\n\n\t\tdoTransaction(emf, em -> {\n\t\t\taDetachedVehiculo = em.find(Vehiculo.class, id);\n\t\t});\n\n\t\taDetachedVehiculo.setAnhos(12);\n\t\taDetachedVehiculo.setArticulado(\"Sin remolque\");\n\t\taDetachedVehiculo.setCombustible(\"Gasolina\");\n\t\taDetachedVehiculo.setImpacto(\"Lateral\");\n\t\taDetachedVehiculo.setManiobra(\"Adelantamiento\");\n\t\taDetachedVehiculo.setTipo_vehiculo(\"Coche\");\n\t\taDetachedVehiculo.setVolante_izq(true);\n\n\t\tdoTransaction(emf, em -> {\n\t\t\tem.merge(aDetachedVehiculo);\n\t\t});\n\n\t\t// check\n\t\tstatement = jdbcConnection.createStatement();\n\t\tResultSet rs = statement.executeQuery(\"SELECT * FROM Vehiculo WHERE id = \" + id);\n\t\trs.next();\n\n\t\tassertEquals(12, rs.getInt(\"anhos\"));\n\t\tassertEquals(\"Sin remolque\", rs.getString(\"articulado\"));\n\t\tassertEquals(\"Gasolina\", rs.getString(\"combustible\"));\n\t\tassertEquals(\"Lateral\", rs.getString(\"impacto\"));\n\t\tassertEquals(\"Adelantamiento\", rs.getString(\"maniobra\"));\n\t\tassertEquals(\"Coche\", rs.getString(\"tipo_vehiculo\"));\n\t\tassertEquals(true, rs.getBoolean(\"volante_izq\"));\n\t\tassertEquals(id, rs.getInt(\"id\"));\n\t}", "@Override\n public E update(E entity) {\n LOG.info(\"[update] Start: entity = \" + entity.getClass().getSimpleName());\n entityManager.merge(entity);\n LOG.info(\"[update] End\");\n return entity;\n }", "public void saveOrUpdate(Category entity) {\n\t\tthis.getCurrentSession().saveOrUpdate(entity);\r\n\t}", "protected Object update(Object entity) {\r\n\r\n try {\r\n entityManager.getTransaction().begin();\r\n Object o = entityManager.merge(entity);\r\n entityManager.getTransaction().commit();\r\n return o;\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao atualizar Entidade \" + e.getMessage());\r\n }\r\n\r\n return null;\r\n }", "public T update(T entity) {\n\t \t getEntityManager().getTransaction().begin();\n\t \t System.out.print(\"casito: \" + ((CamposModel)entity).getClase());\n\t \t T entityN = getEntityManager().merge(entity);\n\t\t getEntityManager().getTransaction().commit();\n\t return entityN;\n\t }", "public void persist(Category entity) {\n\t\tthis.getCurrentSession().persist(entity);\r\n\t}", "public void saveCategory(Category category){\r\n\t\temf = DbHelper.provideFactory();\r\n\t\tem = emf.createEntityManager();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(category);\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}", "@Override\n\tpublic void saveOrUpdateCategory(Category v) {\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(v);\n\t\tsessionFactory.getCurrentSession().flush();\n\t}", "@Test\r\n public void testSalvar() throws Exception {\r\n tx.begin();\r\n Categoria categoria = new Categoria(\"Teste de update de categoria\");\r\n dao.persiste(categoria);\r\n tx.commit();\r\n em.refresh(categoria);\r\n tx.begin();\r\n categoria.setNome(\"Update\");\r\n categoria = dao.salvar(categoria);\r\n tx.commit();\r\n em.refresh(categoria);\r\n assertEquals(\"Update\", categoria.getNome());\r\n }", "@Override\n public void updateUser(EntityManager entityManager,User user) {\n entityManager.merge(user);\n //entityManager.getTransaction().commit();\n }", "@PostPersist\n\t@PostUpdate\n\tprivate void storeChangesToDw() {\n\t}", "@Override\n public void save(Employee employee) {\n Employee dbEmployee = entityManager.merge(employee);\n \n //update with id from database so we can generate id for save/insert\n employee.setId(dbEmployee.getId());\n \n }", "@Test\r\n public void testPersiste() throws Exception {\r\n Categoria categoria = new Categoria(\"Teste de categoria\");\r\n tx.begin();\r\n dao.persiste(categoria);\r\n tx.commit();\r\n em.refresh(categoria);\r\n assertTrue(\"O objeto não foi persistido\", categoria.getId() != null);\r\n }", "@Test(expected = RollbackException.class)\n public void testOptimisticLocking()\n {\n Employee employee = new EmployeeBuilder().withAge(30).withName(\"Hans\").withSurename(\"Mueller\").build();\n\n // saving Employee\n em.getTransaction().begin();\n em.persist(employee);\n em.getTransaction().commit();\n\n // fresh start\n em = emf.createEntityManager();\n EntityManager em2 = emf.createEntityManager();\n\n\n Employee reloadedEmployeInstance1 = em.find(Employee.class, employee.getId());\n Employee reloadedEmployeInstance2 = em2.find(Employee.class, employee.getId());\n\n // --- client 1 ---\n // saving employee1\n reloadedEmployeInstance1.setAge(100);\n em.getTransaction().begin();\n em.persist(reloadedEmployeInstance1);\n em.getTransaction().commit();\n\n // --- client 2 ---\n // saving employe2\n reloadedEmployeInstance2.setAge(99);\n em2.getTransaction().begin();\n em2.persist(reloadedEmployeInstance2);\n em2.getTransaction().commit();\n }", "public T save(T entity) throws Exception{\n\t\tentity = em.merge(entity);\n\t\treturn entity;\n\t}", "public void update(Category category) {\n category_dao.update(category);\n }", "public void lifeCycle(){\r\n\t\tSystem.out.println(\"\\nLife cycle of a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\t\r\n\t\t//c1 simdi new durumunda, VT'de henuz kalici degil.\r\n\t\tCustomer2 c1 = new Customer2(\"Life\", \"Cycle\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\t\r\n\t\t//c1 simdi managed durumunda, VT'de kalici ve durum degisiklikleri em tarafından takip ediliyor.\r\n\t\t// Ilk commit'te degisen durum VT'ye yansitilacaktir.\r\n\t\tc1.setLastName(\"YYY\");\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t\t\r\n\t\t// c1 simdi detached. yapilan degisiklikler takip edilmiyor cunku em kapandi.\r\n\t\tc1.setLastName(\"Detached\");\r\n\t\t// Degisiklikleri kalici kilmak icin merge cagrilmali\r\n\t\tem = emf.createEntityManager();\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 c2 = em.merge(c1);\r\n\t\ttx.commit();\r\n\t\t// Simdi c2 managed durumda, VT'de kalici hale getirilen yeni durum c2'de cunku.\r\n\t\t//c1 halen detached ve degisiklikleri takip edilmiyor, dolayisiyla onu kullanmayin.\r\n\t\tem.close();\r\n\t\t\r\n\t\tem = emf.createEntityManager();\r\n\t\tCustomer2 c3 = em.find(Customer2.class, c2.getCustId());\r\n\t\tif(c3 == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + c2.getCustId());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t//c3 burada da managed durumda, degisiklikler takip ediliyor.\r\n\t\tc3.setLastName(\"Detached3\");\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\ttx.commit();\r\n\t\t//Degisiklikler VT'de\r\n\t\t\r\n\t\ttx = em.getTransaction();\r\n\t\tSystem.out.println(\"Removing: \" + c3);\r\n\t\tem.remove(c3);\r\n\t\t//c3 simdi removed durumunda\r\n\t\t// rollback ya da persist cagrisiyla tekrar VT'ye yazilir.\r\n\t\ttx.begin();\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t\t//c3 simdi new durumunda.\r\n\t\t//VT'e tekrar yazmak icin persist'e ihtiyac var.\r\n\t\t\r\n\t\t// Yeni bir em ve tx olusturalim\r\n\t\tem = emf.createEntityManager();\r\n\t\ttx = em.getTransaction();\r\n\t\t//Yeni bir Customer2 entity nesnesi, c4 ve persist'i cagirip DB'ye yazalim.\r\n\t\tCustomer2 c4 = new Customer2(\"C4Life\", \"Cycle\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c4);\r\n\t\ttx.commit();\r\n\t\t\r\n\t\t//Simdi em'i clear edelim\r\n\t\tem.clear();\r\n\t\t//c4 simdi detached hale geldi\r\n\t\tc4.setLastName(\"Detached4\");\r\n\t\tSystem.out.println(c4);\r\n\t\t// c4'un son halini VT'ye yazmak icin merge edilmeli\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tem.merge(c4);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "@Override\n\tpublic ImageEntity update(Object entity) {\n\t\tDatabaseContext.merge(entity);\n\t\treturn (ImageEntity) entity;\n\t}", "public void flush(){\r\n\t\tSystem.out.println(\"\\nCreating a customer by flush:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Selim\", \"Aslan\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\tlong id = c1.getCustId();\r\n\t\tSystem.out.println(\"Its id is : \" + id);\r\n\t\tem.flush();\r\n\t\tSystem.out.println(\"Flushed to the db.\");\r\n\t\tCustomer2 retrievedCustomer1 = em.find(Customer2.class, id);\r\n\t\tSystem.out.println(retrievedCustomer1);\r\n\t\t\r\n\t\t// Eger commit yerine rollback yapilirsa daha asagida retrievedCustomer2 null gelir.\r\n\t\ttx.commit();\r\n//\t\ttx.rollback();\r\n\t\t\r\n\t\tCustomer2 retrievedCustomer2 = em.find(Customer2.class, id);\r\n\t\tSystem.out.println(retrievedCustomer2);\r\n\t\tem.close();\r\n\t}", "@Override\n public void save()\n {\n// dao1.save();\n// dao2.save();\n }", "@Override\r\n\tpublic void updateCategory(Category category) {\n\t\tCategory c = getCategoryById(category.getCategory_id());\r\n\t\tc.setCategory_id(category.getCategory_id());\r\n\t\tc.setCategory_name(category.getCategory_name());\r\n\t\tc.setCategory_number(category.getCategory_number());\r\n\t\tc.setCommoditySet(category.getCommoditySet());\r\n\t\tc.setDescription(category.getDescription());\r\n\t\tgetHibernateTemplate().update(c);\r\n\t}", "@Test\n public void testIsolationLevel()\n {\nEmployee employee = new EmployeeBuilder().withAge(30).withName(\"Hans\").withSurename(\"Mueller\").build();\n Department department = new DepartmentBuilder().withName(\"Abteilung 1\").build();\n em.getTransaction().begin();\n\n // From the spec:\n // If FlushModeType.COMMIT is specified,\n //flushing will occur at transaction commit; the persistence provider is permitted, but not required, to perform\n //to flush at other times.\n em.setFlushMode(FlushModeType.COMMIT);\n\n employee.setDepartment(department);\n em.persist(department);\n\n // partial flush should be visible to same EM\n Department reloadedDepartment = em.find(Department.class, department.getId());\n Assert.assertNotNull(reloadedDepartment);\n\n // check for flushed content in the db via second EM\n // Will fail on hsqldb, because of lack of isolationlevel implementation\n EntityManager em2 = emf.createEntityManager();\n reloadedDepartment = em2.find(Department.class, department.getId());\n Assert.assertNull(\"This one is failing if HSQLDB is used (here READ_UNCOMMITTED is actually used!) ...\", reloadedDepartment);\n\n em.getTransaction().commit();\n }", "@Override\n public void save(Employee theEmployee) {\n Employee dbEmployee = entityManager.merge(theEmployee);\n theEmployee.setId(dbEmployee.getId());\n }", "public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }", "@Test\r\n @DataSet(\"BugBeforeUpdateDataSet.xml\")\r\n @ExpectedDataSet(\"BugAfterUpdateDataSet.xml\")\r\n public void testUpdateBug() throws Exception {\n Bug result = (Bug)entityManager.find(Bug.class, BugTestUtils.getDefaultIdentity());\r\n\r\n // Set simple properties\r\n result.setDescription(\"t\");\r\n result.setOpen(Boolean.FALSE);\r\n result.setTitle(\"t\");\r\n\r\n // Update\r\n entityManager.merge(result);\r\n\r\n }", "@Test\n public void updateComentarioTest(){\n ComentarioEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n ComentarioEntity newEntity = factory.manufacturePojo(ComentarioEntity.class);\n newEntity.setId(entity.getId());\n comentarioPersistence.update(newEntity);\n \n ComentarioEntity respuesta = em.find(ComentarioEntity.class,entity.getId());\n \n Assert.assertEquals(respuesta.getNombreUsuario(), newEntity.getNombreUsuario());\n \n \n }", "@Override\r\n\tpublic void Update(Order order) {\n\t\tem.merge(order);\r\n\t\t\r\n\t}", "Category saveCategory(Category category);", "@Test\n public void test_update() throws Exception {\n User user1 = createUser(1, false);\n\n user1.setUsername(\"new\");\n\n entityManager.getTransaction().begin();\n instance.update(user1);\n entityManager.getTransaction().commit();\n entityManager.clear();\n\n User retrievedUser = instance.get(user1.getId());\n\n assertEquals(\"'update' should be correct.\", user1.getUsername(), retrievedUser.getUsername());\n }", "@Override\r\n\tpublic Category updateCategory(Category category) throws Exception\r\n\t{\n\t\tif(category.getId() == 0 || !categoryDao.findById(category.getId()).isPresent())\r\n\t\t\tthrow new Exception(\"category not exists\");\r\n\t\tcategory = categoryDao.save(category);\r\n\t\treturn category;\r\n\t}", "@Override\n\t\tpublic void updateStudent(Student stu) \n\t\t{\n\t\t\tSystem.out.println(\"this doa layer;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\");\n\t\t\ttry{\n\t\t\t\tsessionFactory.getCurrentSession().merge(stu);\t\n\t\t\t}catch(Exception e){\n\t\t\t\tSystem.out.println(\"Exxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\"+e);\n\t\t\t}\n\t\t\t\n\t\t}", "public void SaveVsPersist() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry{\n\t\t\ttx = session.beginTransaction();\n//\t\t\tItem item = new Item(\"Premium Water\", 900);\n//\t\t\titem.setShops(((Item)session.get(Item.class, 1)).getShops());\n//\t\t\t\n//\t\t\t\n//\t\t\tSystem.out.println( \"BEFORE SAVE: \" + item.getId());\n//\t\t\tSystem.out.println(\"-----SAVE-----\");\n//\t\t\tSystem.out.println(\"ID IS:\" + session.save(item));\n//\t\t\t//When saving we are returned the id.\n//\t\t\tSystem.out.println(\"AFTER SAVE:\" + item.getId());\n\t\t\t\n\n\t\t\t\n\t\t\tItem item2 = new Item(\"Deluxe Premium Super Awesome Bargain Water\", 12);\n\t\t\tSystem.out.println(\"-----persist-----\");\n\t\t\tSystem.out.println( \"BEFORE Persist: \" + item2.getId());\n\t\t\tsession.persist(item2);\n\t\t\tSystem.out.println(\"AFTER PERSIST:\" + item2.getId());\n\n\t\t\t//We are not guaranteed an ID right away, so we have to return nothing.\n\t\t\t\n\t\t\ttx.commit();\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tsession.close(); \n\t\t}\n\t}", "protected void update(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n try {\n em.merge(object);\n em.getTransaction().commit();\n } catch (Exception e) {\n LOG.error(\"Could not update Object\", e);\n em.getTransaction().rollback();\n } finally {\n em.close();\n }\n }", "@Override\n\tpublic void add(Category category) {\n\t\tsessionFactory.getCurrentSession().persist(category);\n\t\tsessionFactory.getCurrentSession().flush();\n\t}", "@Override\r\n\tpublic boolean update(Se_cat se_cat) {\n\t\treturn se_catdao.update(se_cat);\r\n\t}", "@Test\n public void setTutor() {\n Employee em = employeeService.findById(5);\n System.out.println(\"=======\" + em.getName());\n Student student1 = studentService.findById(22);\n System.out.println(\"*********\" + student1.getName());\n student1.setTutor(em);\n studentService.update(student1);\n studentService.saveOrUpdate(student1);\n }", "@Transactional\n public void merge(Kommentar kommentar) {\n em.merge(kommentar);\n em.flush();\n }", "public void save(Category category) throws Exception {\n\t\tthis.test();\r\n\t\tdao.save(category);\t\t\r\n\t}", "@Transactional(readOnly = false)\r\n\tpublic void saveEmployee(Employee employee) {\r\n\t\tem.merge(employee);\r\n\t}", "public void save() {\n if (category != null) {\n category.save();\n }\n }", "@Test(expected = NoResultException.class)\r\n public void updatePosts(){\r\n\r\n Post post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", 3000l)\r\n .getSingleResult();\r\n \r\n post.setDescription(\"TRASHED ELECTRONICS ARE PILING UP ACROSS ASIA\");\r\n post.setLikes(500);\r\n \r\n \r\n entityTransaction.begin();\r\n entityManager.createNamedQuery(\"Post.updateDescriptionAndLikesByPostId\", Post.class)\r\n .setParameter(\"value1\", post.getDescription())\r\n .setParameter(\"value2\", post.getLikes())\r\n .setParameter(\"value3\", post.getPostId())\r\n .executeUpdate();\r\n entityManager.refresh(post);\r\n entityTransaction.commit();\r\n\r\n post = entityManager.createNamedQuery(\"Post.fetchAllRecordsByUserId\", Post.class)\r\n .setParameter(\"value1\", 300l)\r\n .getSingleResult(); \r\n assertNotNull(post); \r\n }", "@Test\r\n\tpublic void test02CascadeSave() {\r\n\t\tstudentLucy.setConfidential(confidential);\r\n\t\tconfidential.setStudent(studentLucy);\r\n\t\tstudentDao.save(studentLucy);\r\n\t\tconfidentialDao.save(confidential);\r\n\t\tlogger.debug(studentLucy);\r\n\t\tlogger.debug(confidential);\r\n\t}", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Detached Object to Persistent Operation with Select Before Update with Address 03\")\n public void testDetachedToPersistentWithSelectBeforeUpdateWithAddress03()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n UuidUtilities utilities = new UuidUtilities();\n\n SBAddress03 address1 = null;\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try {\n transaction = session.beginTransaction();\n address1 = session.get(\n SBAddress03.class,\n utilities.getOrderedUUIDByteArrayFromUUIDWithApacheCommons(UUID.fromString(\n \"e9c79954-9a5e-4903-ac5f-8e3268b14544\")));\n System.out.println(\"Address t1-1: \" + address1.getAddress03Street());\n\n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n// address1.setAddress02Street(\"KusumaramaStreet6000\");\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n try {\n transaction = session.beginTransaction();\n session.update(address1);\n\n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n System.out.println(\"Address t2-1: \" + address1.getAddress03Street());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Override\n\tpublic void updateEmployee(Employee employee) {\n\t\tEmployee updateEmployee = em.find(Employee.class, employee.getId());\n\t\t\n\t\tem.getTransaction().begin();\n\t\tem.merge(employee);\n\t\tem.getTransaction().commit();\n\t\tSystem.out.println(\"Data Updated successfully\");\n\t\tlogger.log(Level.INFO, \"Data Updated successfully\");\n\n\t}", "@Override\n\tpublic void updateCategory(Category cat) {\n\t\tdao.updateCategory(cat);\n\t\t\n\t}", "@Transactional\n public void updateArtListing(ArtListing al) {\n entityManager.merge(al);\n }", "@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Persistent Object with Address 02\")\n public void testPersistentObjectWithAddress02()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n UuidUtilities utilities = new UuidUtilities();\n\n SBAddress02 address1 = null;\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n Transaction transaction = null;\n try {\n transaction = session.beginTransaction();\n address1 = session.get(\n SBAddress02.class,\n utilities.getOrderedUUIDByteArrayFromUUIDWithApacheCommons(UUID.fromString(\n \"57487766-df14-4876-9edd-c261282c6661\")));\n System.out.println(\"Address t1-1: \" + address1.getAddress02Street());\n address1.setAddress02Street(\"KusumaramaStreet1000\");\n\n SBAddress02 address2 = session.get(\n SBAddress02.class,\n utilities.getOrderedUUIDByteArrayFromUUIDWithApacheCommons(UUID.fromString(\n \"57487766-df14-4876-9edd-c261282c6661\")));\n System.out.println(\"Address t2-1: \" + address1.getAddress02Street());\n System.out.println(\"Address t2-2: \" + address2.getAddress02Street());\n\n address2.setAddress02Street(\"KusumaramaStreet3000\");\n System.out.println(\"Address t3-1: \" + address1.getAddress02Street());\n System.out.println(\"Address t3-2: \" + address2.getAddress02Street());\n\n\n // session.update(address);\n //\n // address = session.get(\n // SBAddress02.class,\n // utilities.getOrderedUUIDByteArrayFromUUIDWithApacheCommons(UUID.fromString(\"57487766-df14-4876-9edd-c261282c6661\")));\n // System.out.println(\"Address : \"+ address.getAddress02Street());\n\n transaction.commit();\n } catch (Exception e) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n\n } catch (Throwable throwable) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n address1.setAddress02Street(\"KusumaramaStreet5000\");\n System.out.println(\"Address t4-1: \" + address1.getAddress02Street());\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }", "@Transactional\r\n\tpublic void saveOrUpdate(Blog blog) {\n sessionFactory.getCurrentSession().saveOrUpdate(blog);\r\n\t}", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "@Test\n\tpublic void testUpdateCategory() throws Exception {\n\n\t\tCategoryResponse categoryResponse = new CategoryResponse();\n\t\tList<Category> categories = new ArrayList<>();\n\t\tCategory category = new Category();\n\t\tcategory.setTenantId(\"default\");\n\t\tcategory.setParentId(Long.valueOf(1));\n\n\t\tAuditDetails auditDetails = new AuditDetails();\n\t\tcategory.setAuditDetails(auditDetails);\n\t\tcategory.setName(\"Flammables\");\n\n\t\tcategories.add(category);\n\n\t\tcategoryResponse.setResponseInfo(new ResponseInfo());\n\t\tcategoryResponse.setCategories(categories);\n\n\t\ttry {\n\n\t\t\twhen(categoryService.updateCategoryMaster(any(CategoryRequest.class),any(String.class))).thenReturn(categoryResponse);\n\t\t\tmockMvc.perform(post(\"/category/v1/_update\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t\t.content(getFileContents(\"categoryUpdateRequest.json\")))\n\t\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t\t.andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON))\n\t\t\t\t\t.andExpect(content().json(getFileContents(\"categoryUpdateResponse.json\")));\n\n\t\t} catch (Exception e) {\n\n\t\t\tassertTrue(Boolean.FALSE);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertTrue(Boolean.TRUE);\n\n\t}", "@Override\n\tpublic void updatePanierMerge(Panier p) {\n\t\tSessionFactory factory = DBConnexion.getSessionFactory();\n\t\tSession session = factory.getCurrentSession();\n\t\ttry {\n\t\t\tsession.beginTransaction();\n\t\t\tPanier p1 = (Panier) session.merge(p);\n\t\t\tsession.getTransaction().commit();\n\t\t} finally {\n\t\t\tfactory.close();\n\t\t}\n\t}", "@Override\n\t\tpublic void mergeStudent(Student stu2) \n\t\t{\n\t\t\tSystem.out.println(\"StudentDAOImpl.updateUser()\");\n\t\t\tsessionFactory.getCurrentSession().merge(stu2);\n\t\t}", "public void merge(T entity) {\n\t\t\n\t}", "@Test\n\t public void testUpdate(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t\twhen(entityManager.merge(user)).thenReturn(BaseData.getDBUsers());\n\t\t\t\tUsers savedUser = userDao.update(user);\n\t\t\t\tassertNotNull(savedUser);\n\t\t\t\tassertTrue(savedUser.getFirstName().equals(\"MerchandisingUI\"));\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing update:.\",se);\n\t\t }\n\t }", "public EspecieEntity actualizar(EspecieEntity entity){\r\n return em.merge(entity);\r\n }", "E update(E entity);", "E update(E entity);", "@Override\n\tpublic Cat update(Cat cat) {\n\t\tOptional<Cat> existingCat = catRepository.findById(cat.getCatId());\n\t\tif (existingCat.isPresent()) {\n\t\t\treturn catRepository.save(cat);\n\t\t} else {\n\t\t\tthrow new CatNotFoundException();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n protected <T> T _persistOrMerge(T entity) {\n if (entity == null) {\n logger.debug(\"entity == null\");\n return null;\n }\n if (em().contains(entity)) {\n logger.debug(\"em().contains(entity), try to _merge\");\n return _merge(entity);\n }\n Serializable id = getMetadataUtil().getId(entity);\n if (id == null) {\n logger.debug(\"_persist(id == null)\");\n _persist(entity);\n return entity;\n }\n T prev = em().find((Class<T>) entity.getClass(), id);\n if (prev == null) {\n logger.debug(\"_persist(prev == null)\");\n _persist(entity);\n return entity;\n } else {\n logger.debug(\"_merge\");\n return _merge(entity);\n }\n }", "public static Category createUpdatedEntity(EntityManager em) {\n Category category = new Category()\n .label(UPDATED_LABEL)\n .primaryColor(UPDATED_PRIMARY_COLOR)\n .secondaryColor(UPDATED_SECONDARY_COLOR);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n category.setOwner(user);\n return category;\n }", "public void merge(FakeEntity entity) {\n entities.put(entity.getId(), entity);\n }", "public void updateKind(Kind kind) {\n\t\tsessionFactory.getCurrentSession().merge(kind);\n\t}", "public void testUpdate() throws Exception {\n EntityManager manager = this.getEntityManager();\n EntityTransaction transaction = manager.getTransaction();\n\n if (transaction.isActive() == false) {\n transaction.begin();\n }\n\n Technology t = new Technology();\n t.setDescription(\"tech\");\n t.setName(\"name1\");\n t.setStatus(Status.ACTIVE);\n\n manager.persist(t);\n transaction.commit();\n\n t.setDescription(\"upate tech\");\n t.setName(\"name2\");\n t.setStatus(Status.APPROVED);\n\n Technology ret = manager.find(Technology.class, t.getId());\n assertEquals(\"Equal is expected.\", \"upate tech\", ret.getDescription());\n assertEquals(\"Equal is expected.\", \"name2\", ret.getName());\n assertEquals(\"Equal is expected.\", Status.APPROVED, ret.getStatus());\n }", "public void modifyCategory(Category c) {\n\t\tcategoryDao.update(c);\n\t}", "@PostConstruct\n\t@Transactional\n\tpublic void fillData() {\n\t\n\t\tBookCategory progromming1 = new BookCategory(1,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming2 = new BookCategory(2,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming3 = new BookCategory(3,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming4 = new BookCategory(4,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming5 = new BookCategory(5,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming6 = new BookCategory(6,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming7 = new BookCategory(7,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming8 = new BookCategory(8,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming9 = new BookCategory(9,\"Programming\",new ArrayList<Book>());\n\t\tBookCategory programming10 = new BookCategory(10,\"Programming\",new ArrayList<Book>());\n\t\t\n\n\t\t\n\t\tbookCategoryRepository.save(progromming1);\n\t\tbookCategoryRepository.save(programming2);\n\t\tbookCategoryRepository.save(programming3);\n\t\tbookCategoryRepository.save(programming4);\n\t\tbookCategoryRepository.save(programming5);\n\t\tbookCategoryRepository.save(programming6);\n\t\tbookCategoryRepository.save(programming7);\n\t\tbookCategoryRepository.save(programming8);\n\t\tbookCategoryRepository.save(programming9);\n\t\tbookCategoryRepository.save(programming10);\n\t\t\n\t\tBook java = new Book(\n\t\t\t\t(long) 1,\"text-100\",\"Java Programming Language\",\n\t\t\t\t \"Master Core Java basics\",\n\t\t\t\t 754,\n\t\t\t\t \"assets/images/books/text-106.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogromming1\n\t\t);\n\t\tBook kotlin = new Book(\n\t\t\t\t(long) 2,\"text-101\",\"Kotlin Programming Language\",\n\t\t\t\t \"Learn Kotlin Programming Language\",\n\t\t\t\t 829,\n\t\t\t\t \"assets/images/books/text-102.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming2\n\t\t);\n\t\tBook python = new Book(\n\t\t\t\t(long) 3,\"text-102\",\"Python 9\",\n\t\t\t\t \"Learn Python Language\",\n\t\t\t\t 240,\n\t\t\t\t \"assets/images/books/text-103.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming3\n\t\t);\n\t\tBook cShap = new Book(\n\t\t\t\t(long) 4,\"text-103\",\"C#\",\n\t\t\t\t \"Learn C# Programming Language\",\n\t\t\t\t 490,\n\t\t\t\t \"assets/images/books/text-101.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming4\n\t\t);\n\t\tBook cpp = new Book(\n\t\t\t\t(long) 5,\"text-104\",\"C++\",\n\t\t\t\t \"Learn C++ Language\",\n\t\t\t\t 830,\n\t\t\t\t \"assets/images/books/text-110.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming5\n\t\t);\n\t\tBook dataStru = new Book(\n\t\t\t\t(long) 6,\"text-105\",\"Data Structure 3\",\n\t\t\t\t \"Learn Data Structures\",\n\t\t\t\t 560,\n\t\t\t\t \"assets/images/books/text-106.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming6\n\t\t);\n\t\tBook cprog = new Book(\n\t\t\t\t(long) 7,\"text-106\",\"C Programming\",\n\t\t\t\t \"Learn C Language\",\n\t\t\t\t 695,\n\t\t\t\t \"assets/images/books/text-100.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming7\n\t\t);\n\t\tBook crushInterview = new Book(\n\t\t\t\t(long) 3,\"text-102\",\"Coding Interview\",\n\t\t\t\t \"Crushing the Coding interview\",\n\t\t\t\t 600,\n\t\t\t\t \"assets/images/books/text-103.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming8\n\t\t);\n\t\tBook desing = new Book(\n\t\t\t\t(long) 859,\"text-102\",\"Design Parttens\",\n\t\t\t\t \"Learn Python Language\",\n\t\t\t\t 690,\n\t\t\t\t \"assets/images/books/text-105.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming9\n\t\t);\n\t\tBook machineLearn = new Book(\n\t\t\t\t(long) 9,\"text-102\",\"Python 3\",\n\t\t\t\t \"Learn Python Machine Learning with Python\",\n\t\t\t\t 416,\n\t\t\t\t \"assets/images/books/text-107.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming10\n\t\t);\n\t\tBook apiJava = new Book(\n\t\t\t\t(long) 10,\"text-102\",\"Practical API Design\",\n\t\t\t\t \"Java Framework Architect\",\n\t\t\t\t 540,\n\t\t\t\t \"assets/images/books/text-108.jpg\",\n\t\t\t\t true, 300,LocalDateTime.now(), null,\tprogramming8\n\t\t);\n\tbookRepository.save(java);\n\tbookRepository.save(kotlin);\n\tbookRepository.save(python);\n\tbookRepository.save(cpp);\n\tbookRepository.save(cprog);\n\tbookRepository.save(crushInterview);\n\tbookRepository.save(cShap);\n\tbookRepository.save(dataStru);\n\tbookRepository.save(desing);\n\tbookRepository.save(machineLearn);\n\tbookRepository.save(apiJava);\n\n\t}", "public LugarEntity update(LugarEntity p){\n return em.merge(p);\n }", "public void updateEntity2(Entity2 entity2) throws DaoException;", "@Override\n\tpublic void updateStudent(Student student) {\n\t\tem.merge(student);\n\t}", "LoginHistory update(LoginHistory entity);", "@Test\n public void testPessimisticLocking()\n {\n Employee employee = new EmployeeBuilder().withAge(30).withName(\"Hans\").withSurename(\"Mueller\").build();\n\n // saving Employee\n em.getTransaction().begin();\n em.persist(employee);\n em.getTransaction().commit();\n\n // fresh start\n em = emf.createEntityManager();\n EntityManager em2 = emf.createEntityManager();\n\n em.getTransaction().begin();\n Employee reloadedEmployeInstance1 = em.find(Employee.class, employee.getId());\n\n // Enable to get a deadlock\n// em.lock(reloadedEmployeInstance1, LockModeType.READ);\n\n em2.getTransaction().begin();\n Employee reloadedEmployeInstance2 = em2.find(Employee.class, employee.getId());\n reloadedEmployeInstance2.setAge(99);\n em2.persist(reloadedEmployeInstance2);\n em2.getTransaction().commit();\n\n\n em.getTransaction().commit();\n }", "@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "@Test\n void updateSuccess() {\n String newFirstName = \"Artemis\";\n User userToUpdate = (User) dao.getById(1);\n userToUpdate.setFirstName(newFirstName);\n dao.saveOrUpdate(userToUpdate);\n User userAfterUpdate = (User) dao.getById(1);\n assertEquals(newFirstName, userAfterUpdate.getFirstName());\n }", "public void updateEntity();", "void updateCategory(Category category);", "void updateCategory(Category category);", "public ShoppingCartLine update(ShoppingCartLine entity) {\n \t\t\t\tLogUtil.log(\"updating ShoppingCartLine instance\", Level.INFO, null);\n\t try {\n ShoppingCartLine result = entityManager.merge(entity);\n \t\t\tLogUtil.log(\"update successful\", Level.INFO, null);\n\t return result;\n } catch (RuntimeException re) {\n \t\t\t\tLogUtil.log(\"update failed\", Level.SEVERE, re);\n\t throw re;\n }\n }", "@Override\n\tpublic void update(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.update(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "@Test\n\tpublic void testUpdateCategoryDetails() throws Exception {\n\n\t\tCategoryResponse categoryResponse = new CategoryResponse();\n\t\tList<Category> categories = new ArrayList<>();\n\t\tCategory category = new Category();\n\t\tcategory.setTenantId(\"default\");\n\t\tcategory.setParentId(Long.valueOf(1));\n\n\t\tAuditDetails auditDetails = new AuditDetails();\n\t\tcategory.setAuditDetails(auditDetails);\n\t\tcategory.setName(\"Flammables\");\n\n\t\tCategoryDetail details = new CategoryDetail();\n\t\tdetails.setId(Long.valueOf(5));\n\t\tdetails.setCategoryId(Long.valueOf(10));\n\t\tdetails.setFeeType(FeeTypeEnum.fromValue(\"License\"));\n\t\tdetails.setRateType(RateTypeEnum.fromValue(\"Flat_By_Percentage\"));\n\t\tdetails.setUomId(Long.valueOf(1));\n\n\t\tList<CategoryDetail> catDetails = new ArrayList<CategoryDetail>();\n\t\tcatDetails.add(details);\n\n\t\tcategory.setDetails(catDetails);\n\n\t\tcategories.add(category);\n\n\t\tcategoryResponse.setResponseInfo(new ResponseInfo());\n\t\tcategoryResponse.setCategories(categories);\n\n\t\ttry {\n\n\t\t\twhen(categoryService.updateCategoryMaster(any(CategoryRequest.class),any(String.class))).thenReturn(categoryResponse);\n\t\t\tmockMvc.perform(post(\"/category/v1/_update\").param(\"tenantId\", \"default\")\n\t\t\t\t\t.contentType(MediaType.APPLICATION_JSON).content(getFileContents(\"categoryUpdateRequest.json\")))\n\t\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t\t.andExpect(content().contentTypeCompatibleWith(MediaType.APPLICATION_JSON))\n\t\t\t\t\t.andExpect(content().json(getFileContents(\"categoryUpdateResponse.json\")));\n\n\t\t} catch (Exception e) {\n\n\t\t\tassertTrue(Boolean.FALSE);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tassertTrue(Boolean.TRUE);\n\n\t}", "@Override\n\tpublic L mergeIntoPersisted(R root, L entity) {\n\t\treturn entity;\n\t}", "@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Title t = new Title();\r\n t.setIsbn(\"test\");\r\n t.setTitle(\"aaaaaaaaaaaaaaaaaa\");\r\n t.setAuthor(\"kkkkkkkkkkkkkk\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.update(t);\r\n assertEquals(expResult, result);\r\n }", "@Transactional\r\n\tpublic void saveOrUpdate(CmVocabularyCategory cmVocabularyCategory) {\r\n\t\tdao.saveOrUpdate(cmVocabularyCategory);\r\n\t}", "@Test\n public void testTagAdd() {\n try {\n String tagToLook = \"testTagAdd\";\n String entryText = \"testTagAdd:entry\";\n TypedQuery<Tag> query = em.createNamedQuery(\"Tag.find\", Tag.class);\n query.setParameter(\"name\", tagToLook);\n List<Tag> resultList = query.getResultList();\n Assert.assertEquals(resultList.size(), 0);\n\n Tag tag = new Tag();\n tag.name = tagToLook;\n em.getTransaction().begin();\n em.persist(tag);\n em.getTransaction().commit();\n\n Entry e1 = new Entry();\n e1.text = entryText + \"1\";\n Entry e2 = new Entry();\n e2.text = entryText + \"2\";\n List<Tag> resultList1 = query.getResultList();\n Assert.assertEquals(resultList1.size(), 1);\n Tag dbTag = resultList1.get(0);\n Assert.assertEquals(tag.id, dbTag.id);\n\n dbTag.entries = new ArrayList();\n dbTag.entries.add(e1);\n dbTag.entries.add(e2);\n\n em.getTransaction().begin();\n em.persist(e1);\n em.persist(e2);\n em.persist(dbTag);\n em.getTransaction().commit();\n\n dbTag = query.getSingleResult();\n Assert.assertEquals(dbTag.entries.size(), 2);\n\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail();\n }\n }", "public DisponibilidadEntity update(DisponibilidadEntity entity) {\r\n\r\n return em.merge(entity);\r\n\r\n }", "CounselorBiographyTemp update(CounselorBiographyTemp entity);", "@Override\n\tpublic void update(Users entity) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n \tsession.save(entity);\n\t}", "public CategoriaUsuario update(CategoriaUsuario categoriaUsuario){\n return categoriaUsuarioRepository.save(categoriaUsuario);\n }", "public void update(cat_vo cv) {\n\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tTransaction tr = s.beginTransaction();\n\n\t\ts.saveOrUpdate(cv);\n\t\ttr.commit();\n\t}", "Category update(Category category, CategoryDto categoryDto);", "@Test\r\n public void testCarregarPeloId() throws Exception {\r\n tx.begin();\r\n Categoria categoria = new Categoria(\"Teste carregar categoria por id\");\r\n dao.persiste(categoria);\r\n tx.commit();\r\n em.refresh(categoria);\r\n Long id = categoria.getId();\r\n Categoria result = dao.carregarPeloId(id);\r\n assertEquals(categoria, result);\r\n \r\n }", "public boolean persistCustomer(Category category) {\r\n\r\n boolean saved = false;\r\n try {\r\n em.persist(category);\r\n saved = true;\r\n } catch (Exception e) {\r\n\r\n }\r\n\r\n return saved;\r\n }", "@Test\n public void givenThreeEntity_whenUpdate_thenReturnUpdatedEntity() {\n ThreeEntity entity = new ThreeEntity(1,1);\n entity.setValue(1000);\n entity.setParentId(12);\n\n given(threeDao.save(entity)).willReturn(entity);\n\n ThreeEntity found = threeService.save(entity);\n\n assertEquals(entity.getId(), found.getId());\n assertEquals(entity.getParentId(), found.getParentId());\n assertEquals(entity.getValue(), found.getValue());\n }", "@Override\r\n public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "public static void main(String[] args) {\r\n\r\n\t\t\r\n\t\tVehicle v1 = new Vehicle(10,\"V1\",1012);\r\n\t\t//Vehicle v2 = new Vehicle(11,\"V2\",332012);\r\n\t\t//Vehicle v3 = new Vehicle(12,\"V3\",412012);\r\n\t\tSessionFactory sf = new Configuration().configure().buildSessionFactory();\r\n\t\tSession session1 = sf.openSession();\r\n\t\tTransaction tr= session1.beginTransaction();\r\n\t\tsession1.save(v1);\r\n\t\tsession1.flush();\r\n\t\ttr.commit();\r\n\t\tsession1.close();\t\t\r\n\t\tSession session2 = sf.openSession();\r\n\t\tTransaction tr1= session2.beginTransaction();\r\n\t\tVehicle v2 = session2.get(Vehicle.class,1);\r\n\t\tv2.setVechilePrice(10000);\r\n\t\tsession2.save(v2);\r\n\t\tsession2.flush();\r\n\t\tsession2.close();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t/*Transaction tr= session.beginTransaction();\r\n\t\tsession.save(v1);\r\n\t\tsession.save(v2);\r\n\t\tsession.save(v3);\r\n\t\tsession.flush();\r\n\t\ttr.commit();*/\r\n\t\t//session.close();\r\n\t\t//sf.close();\r\n\t\t\r\n\t}" ]
[ "0.7388804", "0.66029876", "0.6564671", "0.6518443", "0.6349593", "0.6283645", "0.6206728", "0.61833364", "0.6155805", "0.615566", "0.6145198", "0.59751964", "0.59726304", "0.5929658", "0.58505493", "0.5810397", "0.5797211", "0.577008", "0.5742279", "0.56903124", "0.5681789", "0.567581", "0.56621945", "0.56121343", "0.5611187", "0.56049937", "0.5598658", "0.55956495", "0.55891156", "0.55728734", "0.5562815", "0.55360556", "0.55315346", "0.55300015", "0.5492999", "0.5486805", "0.54665244", "0.5464099", "0.5456457", "0.5447419", "0.5446297", "0.54458416", "0.5434076", "0.54316753", "0.5428007", "0.54221296", "0.5417987", "0.5412487", "0.53997946", "0.5388864", "0.5382869", "0.53740555", "0.5366377", "0.5361524", "0.53560793", "0.5355079", "0.5352865", "0.53528506", "0.53474206", "0.5343097", "0.5318504", "0.53148764", "0.53106666", "0.53090185", "0.53090185", "0.53041214", "0.52977335", "0.5294151", "0.52910835", "0.5277601", "0.52742517", "0.5270427", "0.5264829", "0.5261045", "0.5260453", "0.52590376", "0.5258191", "0.5253562", "0.5247203", "0.52429634", "0.52396166", "0.5229512", "0.5229512", "0.52285004", "0.5226144", "0.5225224", "0.5223284", "0.5218058", "0.5217409", "0.52126616", "0.5211607", "0.5210896", "0.520788", "0.520551", "0.52043176", "0.5201875", "0.51862794", "0.51832145", "0.5182489", "0.5181983", "0.518189" ]
0.0
-1
/ access modifiers changed from: packageprivate
public final /* synthetic */ void a(int i2) { List<a> a2 = this.f68520c.a(i2); ArrayList arrayList = new ArrayList(); for (a next : a2) { if (!(next == null || next.f56315e == null || TextUtils.isEmpty(next.f56315e))) { String[] split = next.f56315e.split("\\."); if (split.length <= 0 || !split[split.length - 1].equals("gif")) { arrayList.add(MvImageChooseAdapter.b.a(next)); } } } this.f68519b.a((List<MvImageChooseAdapter.b>) arrayList, i2, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\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 NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
Task 19. Write a Java program to add two matrices of the same size
public static void main(String[] args) { int[][] arrayFirst = { {1, 2, 3}, {1, 2, 3}, {1, 2, 3}, }; int[][] arraySecond = { {2, 2, 2}, {3, 3, 3}, {4, 4, 4} }; int[][] arraySum = new int[arrayFirst.length][arrayFirst[0].length]; System.out.println("Итоговая матрица:"); for (int i = 0; i < arrayFirst.length; i++) { for (int k = 0; k < arrayFirst[i].length; k++) { arraySum[i][k] = arrayFirst[i][k] + arraySecond[i][k]; System.out.print(arraySum[i][k] + " "); } System.out.println(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int[][] matrixSum(int[][] a, int[][]b) {\n\t\tint row = a.length;\n\t\tint col = a[0].length;\n\t\t// creat a matrix array to store sum of a and b\n\t\tint[][] sum = new int[row][col];\n\t\t\n\t\t// Add elements at the same position in a matrix array\n\t\tfor (int r = 0; r < row; r++) {\n\t\t\tfor (int c = 0; c < col; c++) {\n\t\t\t\tsum[r][c] = a[r][c] + b[r][c]; \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sum;\n\t}", "public static Matrix add(Matrix first, Matrix second) {\n\n Matrix result = new Matrix(first.getRows(), first.getClumns());\n\n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] + second.matrix[row][col];\n }\n }\n\n return result;\n }", "public static void add(int[][] matrix1, int[][] matrix2) {\n\tfor(int x=0;x<matrix1.length; x++) {\r\n\t\tfor(int y=0;y<matrix2.length;y++) {\r\n\t\t\tSystem.out.print(matrix1[x][y] +matrix2[x][y] + \" \");\r\n\t\t\t}\r\n\t\tSystem.out.println();\r\n\t\t}\t\r\n\t}", "public Matrix addMatrices(Matrix mat1, Matrix mat2){\r\n\t\t\r\n\t\tMatrix resultMat = new Matrix();\r\n\t\t\r\n\t\tfor(int rowi = 0; rowi < dim; rowi++ )\r\n\t\t\tfor (int coli = 0; coli < dim; coli++)\r\n\t\t\tresultMat.setElement(mat1.getElement(rowi, coli) + mat2.getElement(rowi, coli), rowi, coli);\r\n\t\treturn resultMat;\r\n\t}", "private static void sum(int[][] first, int[][] second) {\r\n\t\tint row = first.length;\r\n\t\tint column = first[0].length;\r\n\t\tint[][] sum = new int[row][column];\r\n\r\n\t\tfor (int r = 0; r < row; r++) {\r\n\t\t\tfor (int c = 0; c < column; c++) {\r\n\t\t\t\tsum[r] = first[r] + second[r];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"\\nSum of Matrices:\\n\");\r\n\t\tprint2dArray(sum);\r\n\t}", "public Matrix add(Matrix other) {\n if (this.cols != other.cols || this.rows != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, this.cols);\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n result.data[i][j] = this.data[i][j] + other.data[i][j];\n }\n }\n\n return result;\n }", "@Override\n\tpublic IMatrix add(IMatrix other) {\n\t\tif (this.getColsCount() != other.getColsCount()\n\t\t\t\t|| this.getRowsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For operation 'add' matrixes should be compatible!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = this.getColsCount();\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tthis.set(i, j, this.get(i, j) + other.get(i, j));\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "public static SquareMatrix add(SquareMatrix m1, SquareMatrix m2) throws Exception{\n SquareMatrix result;\n \n if (m1.size() == m2.size()) {\n result = new SquareMatrix(m1.size());\n for (int row=0; row<m1.size(); row++) {\n for(int col=0; col<m1.size(); col++) {\n double value = m1.get(row, col) + m2.get(row, col);\n result.set(row, col, value);\n }\n }\n } else {\n throw new Exception(\"Le due matrici devo avere la stessa dimensione\");\n }\n return result;\n }", "public Matrix add(Matrix m2)\n\t{\n\t\tMatrix result = new Matrix(new double[matrix.length][matrix.length]); \n\t\tfor (int i = 0; i < matrix.length; i++)\n\t\t{\n\t\t\tfor (int j = 0; j < matrix.length; j++)\n\t\t\t{\n\t\t\t\tresult.matrix[i][j] = matrix[i][j] + m2.matrix[i][j];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public void addOtherMatrix(Matrix other) {\n if (other.rows != rows || other.columns != columns) {\n return;\n }\n matrixVar = matrixVar + other.matrixVar;\n }", "public Matrix plus(Matrix B) {\n Matrix A = this;\n if (B.rowCount != A.rowCount || B.columnCount != A.columnCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(rowCount, columnCount);\n for (int i = 0; i < rowCount; i++)\n for (int j = 0; j < columnCount; j++)\n C.data[i][j] = A.data[i][j] + B.data[i][j];\n return C;\n }", "Matrix add(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] + m.data[i];\n }\n return matrix_to_return;\n }", "public static void main(String[] args) {\n\t\tint[][] a = {{1,2}, {5,3}};\n\t\tint[][] b = {{3,2}, {4,5}};\n\t\tint[][] c = {{1,2}, {4,3}};\n\t\tint[][] d = {{1,2,3}, {4, 5, 6}};\n\t\tint[][] e = {{1, 4}, {2, 5}, {3,6}};\n\n\n\t\t//create new matrices using multidimensional arrays to get a size\n\t\tMatrix m = new Matrix(a);\n\t\tMatrix m2 = new Matrix(b);\n\t\tMatrix m3 = new Matrix(c);\n\t\tMatrix m4 = new Matrix(d);\n\t\tMatrix m5 = new Matrix(e);\n\n\n\n\t\t//Example of matrix addition\n\t\tSystem.out.println(\"Example of Matrix addition using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nSUM:\");\n\t\tSystem.out.println(m.add(m2));\n\t\t\n\t\t//Example of matrix subtraction\n\t\tSystem.out.println(\"Example of Matrix subtraction using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nDIFFERENCE:\");\n\t\tSystem.out.println(m.subt(m2));\n\n\t\t//Example of matrix multiplication\n\t\tSystem.out.println(\"Example of Matrix multiplication using the following matrices:\");\n\t\tSystem.out.println(m3.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nPRODUCT:\");\n\t\tSystem.out.println(m2.mult(m3));\n\t\t\n\t\t//Example of scalar multiplication\n\t\tSystem.out.println(\"Example of scalar multiplication using the following matrices with a scalar value of 2:\");\n\t\tSystem.out.println(m3.toString() + \"\\nSCALAR PRODUCT:\");\n\t\tSystem.out.println(m3.scalarMult(2));\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m.transpose());\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m4.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m4.transpose());\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"Example of equality using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m.equality(m));\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"\\nExample of equality using the following matrices:\");\n\t\tSystem.out.println(m4.toString());\n\t\tSystem.out.println(m5.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m4.equality(m5));\n\n\t}", "public Matrix plus(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n Matrix X = new Matrix(m,n);\n double[][] C = X.getArray();\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n C[i][j] = data[i][j] + B.data[i][j];\n }\n }\n return X;\n }", "public void add(SquareMatrix other) throws Exception{\n if (this.size() == other.size()) {\n for (int row=0; row<this.size(); row++) {\n for(int col=0; col<this.size(); col++) {\n double value = this.get(row, col) + other.get(row, col);\n this.set(row, col, value);\n }\n }\n } else {\n throw new Exception(\"Le due matrici devo avere la stessa dimensione\");\n }\n }", "public Matrix plus(Matrix B) {\n Matrix A = this;\n if (B.M != A.M || B.N != A.N) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(M, N);\n for (int i = 0; i < M; i++)\n for (int j = 0; j < N; j++)\n C.data[i][j] = A.data[i][j] + B.data[i][j];\n return C;\n }", "Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++) {\n int sum;\n int commonality = first.getColumns(); // number to handle summation loop\n for (int rw = 0; rw < this.getRows(); rw++) {\n sum = 0;\n // summation loop\n for (int x = 0; x < commonality; x++) {\n sum += first.getValue(rw, x) * second.getValue(x, col);\n }\n matrix[rw][col] = sum;\n }\n\n }\n } else {\n System.out.println(\"Matrices cannot be multiplied\");\n }\n }", "public static int[][] add(int[][] a, int[][] b) {\n\t\tint[][] C = new int[4][4];\n\t\t \n for (int q = 0; q < C.length; q++) {\n for (int w = 0; w < C[q].length; w++) {\n C[q][w] = a[q][w] + b[q][w];\n }\n }\n \n for (int q = 0; q < b.length; q++ ){\n for(int w = 0; w < C[q].length;w++){\n }\n }\n \n return C;\n \n \n }", "public static Matrix plus(Matrix amat, Matrix bmat){\r\n \tif((amat.nrow!=bmat.nrow)||(amat.ncol!=bmat.ncol)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n \tint nr=amat.nrow;\r\n \tint nc=amat.ncol;\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=amat.matrix[i][j] + bmat.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "@Override\n\tpublic IMatrix nAdd(IMatrix other) {\n\t\treturn this.copy().add(other);\n\t}", "Matrix add(Matrix M) {\n if(getSize() != M.getSize()) {\n throw new RuntimeException(\"Matrix Error: Matrices not same size\");\n }\n if (M.equals(this)) return M.scalarMult(2);\n int c = 0, e2 = 0;\n double v1 = 0, v2 = 0;\n List temp1, temp2;\n Matrix addM = new Matrix(getSize());\n for(int i = 1; i <= rows.length; i++) {\n temp1 = M.rows[i-1];\n temp2 = this.rows[i-1];\n if(temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }else if(!temp1.isEmpty() && temp2.isEmpty()) {\n temp1.moveFront();\n while(temp1.index() != -1) {\n addM.changeEntry(i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n }else if(!temp1.isEmpty() && !temp2.isEmpty()) {\n temp2.moveFront();\n temp1.moveFront();\n while(temp1.index() != -1 && temp2.index() != -1) {\n if(((Entry)temp1.get()).column == ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, (v1+v2));\n temp1.moveNext();\n if(!this.equals(M))\n temp2.moveNext();\n ///if temp1 < temp2\n //this < M\n }else if(((Entry)temp1.get()).column < ((Entry)temp2.get()).column) {\n v1 = ((Entry)temp1.get()).value;\n c = ((Entry)temp1.get()).column;\n addM.changeEntry(i, c, v1);\n temp1.moveNext();\n //if temp1>temp2\n }else if(((Entry)temp1.get()).column > ((Entry)temp2.get()).column) {\n v2 = ((Entry)temp2.get()).value;\n c = ((Entry)temp2.get()).column;\n addM.changeEntry(i, c, v2);\n temp2.moveNext();\n }\n }\n while(temp1.index() != -1) {\n addM.changeEntry( i, ((Entry)temp1.get()).column, ((Entry)temp1.get()).value);\n temp1.moveNext();\n }\n while(temp2.index() != -1) {\n addM.changeEntry(i, ((Entry)temp2.get()).column, ((Entry)temp2.get()).value);\n temp2.moveNext();\n }\n }\n }\n return addM;\n }", "public Matrix plus(Matrix bmat){\r\n \tif((this.nrow!=bmat.nrow)||(this.ncol!=bmat.ncol)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n \tint nr=bmat.nrow;\r\n \tint nc=bmat.ncol;\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=this.matrix[i][j] + bmat.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "public Matrix plus(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n \tif((this.nrow!=nr)||(this.ncol!=nc)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n\r\n \tMatrix cmat = new Matrix(nr,nc);\r\n \tdouble[][] carray = cmat.getArrayReference();\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tcarray[i][j]=this.matrix[i][j] + bmat[i][j];\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "static void Adding(int[][] array, int[][] second_array) {\n System.out.println(\"\\t\\t\\t<<=======================================================>>\");\n System.out.println(\"\\t\\t\\t\\tHere's Your Addition of Mutli_Dimentional Matrix::\");\n for (int i = 0; i < array.length; i++) {\n for (int j = 0; j < second_array.length; j++) {\n System.out.print(array[i][j] + second_array[i][j] + \" \");\n }\n System.out.println();\n }\n }", "public int[][] sumOfMatrices(int row, int col, int array1[][], int array2[][]) {\n int[][] sum = new int[row][col];\n for (int i = 0; i < row; i++) {\n for (int j = 0; j < col; j++) {\n sum[i][j] = array1[i][j] + array2[i][j];\n }\n }\n return sum;\n }", "public void plusEquals(Matrix bmat){\r\n \tif((this.nrow!=bmat.nrow)||(this.ncol!=bmat.ncol)){\r\n \t\tthrow new IllegalArgumentException(\"Array dimensions do not agree\");\r\n \t}\r\n \tint nr=bmat.nrow;\r\n \tint nc=bmat.ncol;\r\n\r\n \tfor(int i=0; i<nr; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tthis.matrix[i][j] += bmat.matrix[i][j];\r\n\t \t}\r\n \t}\r\n \t}", "public void concat(Matrix matrix) {\n\t\t\n\t}", "public Matrix plusEquals(Matrix B) throws JPARSECException {\n checkMatrixDimensions(B);\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n data[i][j] = data[i][j] + B.data[i][j];\n }\n }\n return this;\n }", "public static void main(String[] args) {\n\t\tint row, col;\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter number of rows for matrix: \");\n\t\trow = s.nextInt();\n\t\tSystem.out.println(\"Enter number of columns for matrix: \");\n\t\tcol = s.nextInt();\n\t\tint[][] mat1 = new int[row][col];\n\t\tSystem.out.println(\"Enter the elements\");\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tSystem.out.println(\"Enter [\" + i + \"][\" + j + \"] : \");\n\t\t\t\tmat1[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] mat2 = new int[row][col];\n\t\tSystem.out.println(\"Enter the elements\");\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tSystem.out.println(\"Enter [\" + i + \"][\" + j + \"] : \");\n\t\t\t\tmat2[i][j] = s.nextInt();\n\t\t\t}\n\t\t}\n\t\tint[][] res = new int[row][col];\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tres[i][j] = mat1[i][j] + mat2[i][j];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The result of matrix addition is\");\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tfor (int j = 0; j < col; j++) {\n\t\t\t\tSystem.out.print(res[i][j]+ \" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "public static JTensor addmm(JType b, JTensor t, JType a, JTensor mat1, JTensor mat2) {\n JTensor r = new JTensor();\n TH.THTensor_(addmm)(r, b, t, a, mat1, mat2);\n return r;\n }", "public org.apache.spark.mllib.linalg.distributed.BlockMatrix add (org.apache.spark.mllib.linalg.distributed.BlockMatrix other) { throw new RuntimeException(); }", "public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }", "public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "Matrix add(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = w + this.data[i];\n }\n return matrix_to_return;\n }", "public T plus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createMatrix(mat.getNumRows(), mat.getNumCols(), A.getType());\n\n A.ops.plus(A.mat, B.mat, ret.mat);\n\n return ret;\n }", "public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }", "public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}", "public Matrix add(Matrix b, BigInteger modulo) {\n Matrix a = this;\n if (a.getColumns() != b.getColumns() ||\n a.getRows() != b.getRows()) {\n throw new MalformedMatrixException(\"Matrix with dimensions \" + nrOfRows + \"x\" + nrOfCols +\n \" cannot be added to matrix with dimensions \" + b.nrOfRows + \"x\" + b.nrOfCols);\n }\n\n IntStream outerStream = IntStream.range(0, a.getRows());\n if (concurrent) {\n outerStream = outerStream.parallel();\n }\n\n BigInteger[][] res = outerStream\n .mapToObj(i -> rowAddition(a.getRow(i), b.getRow(i), modulo))\n .toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint row,column;\r\n\t\tSystem.out.println(\"Enter the number of rows\");\r\n\t\trow=sc.nextInt();\r\n\t\tSystem.out.println(\"Enter the number of columns\");\r\n\t\tcolumn=sc.nextInt();\r\n\t\tint[][] arr1=new int[row][column];\r\n\t\tint[][] arr2=new int[row][column];\r\n\t\tint[][] arr3=new int[row][column];\r\n\t\tSystem.out.println(\"Enter the elements of 1st matrix\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr1[i][j]=sc.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the elements of 2nd matrix\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr2[i][j]=sc.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t\tSystem.out.println(\"The Addition of above 2 matrix is:\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr3[i][j]=arr1[i][j]+arr2[i][j];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\t\t//System.out.println(\"The Addition of above 2 matrix is:\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(arr3[i][j]+\" \");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tsc.close();\r\n\t}", "public static Seq plus(Jumble j1, Jumble j2){\n int new_size = (j1.count < j2.count) ? j1.count : j2.count;\n int new_arr[] = new int[new_size];\n for(int i = 0; i < new_size; i++) {\n new_arr[i] = j1.values[i] + j2.values[i]; //add each corresponding element\n }\n return new Jumble(new_arr); // the Jumble constructor does copy \n }", "public static void testMulRecStrassen() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.strassen(m1, m2);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static JTensor addbmm(JType b, JTensor mat, JType a, JTensor bmat1, JTensor bmat2) {\n JTensor r = new JTensor();\n TH.THTensor_(addbmm)(r, b, mat, a, bmat1, bmat2);\n return r;\n }", "Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }", "public static JTensor baddbmm(JType b, JTensor t, JType a, JTensor bmat1, JTensor bmat2) {\n JTensor r = new JTensor();\n TH.THTensor_(baddbmm)(r, b, t, a, bmat1, bmat2);\n return r;\n }", "public static int[][] add(int[][] x,int[][] y){\n int[][] result = new int[x.length][x.length];\n for (int i = 0; i < x.length; i++) {\n for (int j = 0; j < x.length; j++) {\n result[i][j] = x[i][j] + y[i][j];\n }\n }\n return result;\n }", "@Before\n public void setup() {\n threeByTwo = new Matrix(new int[][] {{1, 2, 3}, {2, 5, 6}});\n compareTwoByThree = new Matrix(new int[][] {{1, 42, 32}, {2, 15, 65}});\n oneByOne = new Matrix(new int[][] {{4}});\n rightOneByOne = new Matrix(new int[][] {{8}});\n twoByFour = new Matrix(new int[][] {{1, 2, 3, 4}, {2, 5, 6, 8}});\n twoByThree = new Matrix(new int[][] {{4, 5}, {3, 2}, {1, 1}});\n threeByThree = new Matrix(new int[][] {{4, 5, 6}, {3, 2, 0}, {1, 1, 1}});\n rightThreeByThree = new Matrix(new int[][] {{1, 2, 3}, {5, 2, 0}, {1, 1, 1}});\n emptyMatrix = new Matrix(new int[0][0]);\n // this is the known correct result of multiplying M1 by M2\n twoByTwoResult = new Matrix(new int[][] {{13, 12}, {29, 26}});\n threeByThreeResult = new Matrix(new int[][] {{35, 24, 18}, {13, 10, 9}, {7, 5, 4}});\n oneByOneSum = new Matrix(new int[][] {{12}});\n oneByOneProduct = new Matrix(new int[][] {{32}});\n }", "public Matrix calculate();", "public long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);", "private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }", "public Matrix add(Matrix matrix) {\n if (check(matrix)) {\n Matrix sum = new Matrix(this.getWidth(), this.getHeight());\n for (int i = 0; i < this.getHeight(); i++) {\n for (int j = 0; j < this.getWidth(); j++) {\n sum.setEntry(j, i, this.getEntry(j, i) + matrix.getEntry(j, i));\n }\n }\n return sum;\n } else {\n return null;\n }\n }", "public static void main(String[] args) {\n int mat1[][]=new int[3][3];\n int mat2[][]=new int[3][3];\n int ans[][]=new int[3][3];\n Scanner sc=new Scanner(System.in);\n \n //input values\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.println(\"Enter mat1[\"+i+\"][\"+j+\"] : \");\n \t\t mat1[i][j]= sc.nextInt();\n \t }\n }\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.println(\"Enter mat2[\"+i+\"][\"+j+\"] : \");\n \t\t mat2[i][j]= sc.nextInt();\n \t }\n }\n \n System.out.println(\"Matrix 1 is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(mat1[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n \n System.out.println(\"\\nMatrix 2 is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(mat2[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n \n //Multiplication\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\tans[i][j]=0;\n \t\tfor(int k=0;k<3;k++) {\n \t\t\tans[i][j]+=mat1[i][k]*mat2[k][j];\n \t\t}\n \t }\n }\n \n System.out.println(\"\\nMatrix Multiplication is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(ans[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n sc.close();\n\t}", "public interface MatrixSummator {\n /**\n * Sums matrices\n * @param mtx1 first matrix\n * @param mtx2 second matrix\n * @throws ServiceException if matrices have different sizes\n */\n Matrix sum(Matrix mtx1, Matrix mtx2) throws ServiceException;\n}", "public static double[][] sum(double[][] t1,double[][] t2)\n\t{\n\t\t// Vérifie si t1 & t2 sont régulier\n\t\tif (!regular(t1) || !regular(t2))\n\t\t\treturn null;\n\t\t// Vérifie si t1 & t2 sont de même longeur\n\t\tif (t1.length!=t2.length)\n\t\t\treturn null;\n\t\tif (t1[0].length!=t2[0].length)\n\t\t\treturn null;\n\t\tint nLin=t1.length; int nRow=t1[0].length;\n\t\t\n\t\tdouble[][] somme=new double[nLin][nRow];\n\t\t\n\t\tfor (int i=0;i<nLin;i++)\n\t\t\tfor (int j=0;j<nRow;j++)\n\t\t\t\tsomme[i][j]=t1[i][j]+t2[i][j];\n\t\treturn somme;\n\t}", "public static JTensor addcmul(JTensor t, JType a, JTensor s1, JTensor s2) {\n JTensor r = new JTensor();\n TH.THTensor_(addcmul)(r, t, a, s1, s2);\n return r;\n }", "private static int[][] sparseMatrixMultiplyBruteForce (int[][] A, int[][] B) {\n int[][] result = new int[A.length][B[0].length];\n\n for(int i = 0; i < result.length; i++) {\n for(int j = 0; j < result[0].length; j++) {\n int sum = 0;\n for(int k = 0; k < A[0].length; k++) {\n sum += A[i][k] * B[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n }", "public static void main(String[] args) throws IOException {\n\n\t\t\n\t\tdouble[] columnwise = {1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,12.};\n\t\tdouble[] condmat = {1.,3.,7.,9.};\n\t\tint[] matrixDimension = new int[10]; // dont except to ever use more than 4 cells. would by 99x99\n\n\tString[] inputARGNull = null ;\n\t\tArrayList<Integer> inputTestData = new ArrayList<>(Arrays.asList(11,2,3,6,11,18,45,88));\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(inputTestData.toString());\n//\t\tSystem.out.println(\"Test Running Class: \" +this.getClass() ) ;\t\n//\t\tMatrix testRunMatrix = new Matrix(2, 3, inputTestData );\n\n\t\tMatrix testRunMatrix = new Matrix();\n\t\ttestRunMatrix.setName(\"testRunMatrix\");\n\t\ttestRunMatrix.displayCompact();\n//\t\tclearScreen();\n\n\t\tMatrix firstRunMatrixParams = new Matrix(3,3, inputTestData);\n\t\tfirstRunMatrixParams.setName(\"firstRunMatrixParams\");\n\t\tfirstRunMatrixParams.displayCompact();\n//\t\tclearScreen();\n\t\t\n\t\tMatrix secondRunMatrixParams = new Matrix(3,3, columnwise); // or condmat\n\t\tsecondRunMatrixParams.setName(\"secondRunMatrixParams\");\n\t\tsecondRunMatrixParams.displayCompact();\n//\t\tclearScreen();\n\t\t\n\t//\tfirstRunMatrixParams.displayDeepString();\n\t//\tsecondRunMatrixParams.displayDeepString();\n\t\tmatrixDimension[0]=2;\n\t\tmatrixDimension[1]=3;\n\t\n\t\tMatrix outOfSeqTestMatrix = new Matrix(matrixDimension, columnwise);\n\t\tsecondRunMatrixParams.setName(\"outOfSeqTestMatrix\");\n\t\tsecondRunMatrixParams.displayCompact();\n\t\t\n\t\tMatrix addResult = firstRunMatrixParams.Add(secondRunMatrixParams);\n\t\taddResult.setName(\"addResult\");\n\t\t\n\t\taddResult.displayCompact();\n//\t\tclearScreen();\n\t\t\n//\t\taddResult = addResult.Multiply((22/7));\n\t\taddResult = addResult.Multiply(3.623);\n\t\taddResult.displayMore();\n\t\t\n\t\t\n\t\tString[] testInput1 = new String[]{\"-c\",\"5x4\",\"12\", \"32\", \"43\", \"44\", \"5\",\"5\",\"5\",\"4\",\"4\",\".999999999\",\"0\",\"0\",\"0\",\"9\",\"4\",\"2.71826\",\"3.14159\",\"33\",\"11\",\"0.1136\",\"888\",\"7\",\"6\",\"5\"};\n\t\tInputStringObj myTestCase = new InputStringObj(\"-c\", testInput1);\n\t\tInputNumericObj myNumTest = new InputNumericObj(myTestCase);\n\t\t\n\t\tSystem.out.println(\"And Now a Matrix from a Numeric Object\");\n\n\t\tMatrix numObjBasedMatrix = new Matrix(myNumTest,\"TestMatrix.java_string\");\n\t\tnumObjBasedMatrix.setName(\"numObjBasedMatrix\");\n\t\tnumObjBasedMatrix.displayCompact();\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"\");\n\t\tnumObjBasedMatrix.displayMore();\n\t\t\n\t\t\n//\t\tclearScreen();\n\t\t\n\t}", "public static Matrix multiply(Matrix mat1, Matrix mat2) throws Exception {\n double[][] temp = new double[mat1.rows][mat2.cols];\n try {\n if(mat1.cols == mat2.rows){\n for(int col = 0; col < mat2.cols; col++) {\n for (int row = 0; row < mat1.rows; row++) {\n for (int rowin = 0; rowin < mat2.rows; rowin++) {\n for (int colin = 0; colin < mat1.cols; colin++) {\n temp[row][col] += mat1.arr[row][colin] * mat2.arr[rowin][col];\n }\n }\n }\n }\n }\n\n }catch (Exception e){\n e.printStackTrace();\n throw new Exception(\"Matrices are the wrong size: \" +\n mat1 +\n \" and \" +\n mat2 +\n \" and temp \" +\n Arrays.toString(temp));\n }\n return new Matrix(mat1.rows, mat2.cols, temp);\n }", "public Mat2 add(Mat2 m) {\n\t\tif(this.getRows()!=m.getRows() || this.getCols()!=m.getCols()) return null;\n\t\tMat2 m2 = new Mat2(this.getRows(), this.getCols());\n\t\tfor(int i=0; i<this.getRows(); i++) {\n\t\t\tfor(int j=0; j<this.getCols(); j++) {\n\t\t\t\tm2.set(i, j, this.get(i, j)+m.get(i, j));\n\t\t\t}\n\t\t}\n\t\treturn m2;\n\t}", "public int[][] sum(int[][] A, int[][] B, int x1, int y1, int x2, int y2, int n)\n {\n\t // create return matrix\n\t int[][] matrix = initMatrix(n);\n\t \n\t // populate the return matrix by adding together the elements of the two given arrays.\n\t for (int i = 0; i<n; i++) {\n\t\t for (int j = 0; j<n; j++) {\n\t\t\t matrix[i][j] = A[x1+i][y1+j] + B[x2+i][y2+j];\n\t\t }\n\t }\n\t \n\t // return the matrix\n\t return matrix;\n }", "public static double[][] multiplyMatrices(double[][] firstMatrix, double[][] secondMatrix, int r1, int c1, int c2) {\r\n\t double[][] product = new double[r1][c2];\r\n\t for(int i = 0; i < r1; i++) {\r\n\t for (int j = 0; j < c2; j++) {\r\n\t for (int k = 0; k < c1; k++) {\r\n\t product[i][j] += firstMatrix[i][k] * secondMatrix[k][j];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t return product;\r\n\t }", "public void multiplyOtherMatrixToEnd(Matrix other){\n Matrix output = Matrix(other.rows, columns);\n for (int a = 0; a < other.rows; a++)\n {\n for (int b = 0; b < columns; b++)\n {\n for (int k = 0; k < other.columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"enter the number of rows\");\n\t\tint m=sc.nextInt();\n\t\tSystem.out.println(\"enter the number of columns\");\n\t\tint n=sc.nextInt();\n\t\t\n\t\tint matrix1[][]= new int[m][n];\n\t\tint matrix2[][]= new int[m][n];\n\t\tint sumMatrix[][]= new int[m][n];\n\t\tint diffMatrix[][]= new int[m][n];\n\t\tint proMatrix[][]= new int[m][n];\n\t\tSystem.out.println(\"enter matrix one\");\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tmatrix1[i][j]=sc.nextInt();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"enter matrix two\");\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tmatrix2[i][j]=sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tsumMatrix[i][j]=matrix1[i][j]+matrix2[i][j];\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Sum matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(sumMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tdiffMatrix[i][j]=matrix1[i][j]-matrix2[i][j];\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Difference matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(diffMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tfor(int k=0;k<n;k++)\n\t\t\t\t\tproMatrix[i][j]=matrix1[i][k]*matrix2[k][j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Product matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(proMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "public static BigFraction[][] add(BigFraction[][] A, BigFraction[][] B) {\n int m = A.length;\n int n = A[0].length;\n BigFraction[][] C = new BigFraction[m][n];\n for (int i = 0; i < m; i++)\n for (int j = 0; j < n; j++)\n C[i][j] = A[i][j].add(B[i][j]);\n return C;\n }", "public void add(ConfusionMatrix other){\n\t\t\n\t\t//the confusion matrix must be of same dimesions\n\t\tif(other.size() != this.size()){\n\t\t\tthrow new IllegalArgumentException(\"cannot add confusino matrix's together. The other confusion matrix is of different dimensions\");\n\t\t}\n\t\t\n\t\t//make sure the labels match\n\t\tfor(int i = 0; i < this.size(); i++){\n\t\t\tLabel lable = this.labels.get(i);\n\t\t\tLabel otherLabel = other.labels.get(i);\n\t\t\t\n\t\t\tif(!lable.equals(otherLabel)){\n\t\t\t\tthrow new IllegalArgumentException(\"cannot add confusino matrix's together. The other confusion matrix has different labels\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t//iterate the labels and add the cells\n\t\tfor(Label row : this.labels){\n\t\t\tfor(Label col : this.labels){\n\t\t\t\tint rowIx = resolveIndex(row);\n\t\t\t\tint colIx = resolveIndex(col);\n\n\t\t\t\tInteger cell = matrix.get(rowIx).get(colIx);\n\t\t\t\tInteger otherCell = other.matrix.get(rowIx).get(colIx);\n\t\t\t\t\n\t\t\t\tInteger newValue = cell+otherCell;\n\t\t\t\tmatrix.get(rowIx).set(colIx, newValue);\n\t\t\t}\t\n\t\t}//end iterate labels\n\t\t\t\n\t}", "public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }", "public static int[][] matrixMultiply(int[][] matA, int[][] matB)\n {\n if(isRect(matA)== false || isRect(matB)== false || matA[0].length != matB.length)\n {\n System.out.println(\"You cant not multiply these matrices\");\n int[][] matC = {{}};\n return matC;\n }\n else\n {\n int[][] matC = new int[matA.length][matB[0].length];\n for(int i = 0; i < matA.length; i++)\n for(int j = 0; j < matB[0].length; j++)\n for(int k = 0; k < matA[0].length; k++)\n {\n matC[i][j] += matA[i][k] * matB[k][j];\n }\n return matC;\n }\n }", "public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }", "public static ArrayList<Float> mathematicalAdd(ArrayList<Float> firstWave, ArrayList<Float> secondWave) {\r\n ArrayList<Float> newWave = new ArrayList<>();\r\n int size = getSize(firstWave,secondWave);\r\n for (int i = 0; i < size; i++) {\r\n newWave.add(i, firstWave.get(i) + secondWave.get(i));\r\n }\r\n return newWave;\r\n }", "private static @NotNull Matrix mergeMatrices(\n @NotNull Matrix matrC11, @NotNull Matrix matrC12, @NotNull Matrix matrC21, @NotNull Matrix matrC22) {\n\n assert matrC11.getRowCount() == matrC11.getColumnCount();\n assert (matrC11.getRowCount() == matrC12.getRowCount())\n && (matrC21.getRowCount() == matrC22.getRowCount())\n && (matrC11.getRowCount() == matrC22.getRowCount());\n assert (matrC11.getColumnCount() == matrC12.getColumnCount())\n && (matrC21.getColumnCount() == matrC22.getColumnCount())\n && (matrC11.getColumnCount() == matrC22.getColumnCount());\n\n final int halfRows = matrC11.getRowCount();\n final int halfCols = matrC11.getColumnCount();\n\n int[][] matrixData = new int[halfRows * 2][halfCols * 2];\n\n // Merging top part, C11 and C12\n for (int i = 0; i < halfRows; i++) {\n int[] row11 = matrC11.getRow(i);\n System.arraycopy(row11, 0, matrixData[i], 0, row11.length);\n int[] row12 = matrC12.getRow(i);\n System.arraycopy(row12, 0, matrixData[i], row11.length, row12.length);\n }\n\n // Merging bottom part, C21 and C22\n for (int i = 0; i < halfRows; i++) {\n int[] row21 = matrC21.getRow(i);\n System.arraycopy(row21, 0, matrixData[halfRows + i], 0, row21.length);\n int[] row22 = matrC22.getRow(i);\n System.arraycopy(row22, 0, matrixData[halfRows + i], row21.length, row22.length);\n }\n\n return Matrix.fromArray(matrixData);\n\n }", "public final void add(Matrix3f m1) {\n\tm00 += m1.m00; m01 += m1.m01; m02 += m1.m02;\n\tm10 += m1.m10; m11 += m1.m11; m12 += m1.m12;\n\tm20 += m1.m20; m21 += m1.m21; m22 += m1.m22;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint[][] a = {{7,1,3}, {5,6,8}, {4,2,5}};\n\t\tint[][] b = {{7,10,2}, {3,5,1}, {6,2,4,}};\n\t\t\n\t\tif(a[0].length!=b.length) {\n\t\t\tSystem.out.println(\"Las matrices no pueden multiplicarse\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Las matrices pueden multiplicarse\");\n\t\t\tSystem.out.println(\"Quiere multiplicarlas? S/N\");\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tString opcion=sc.nextLine();\n\t\t\tif(opcion.equalsIgnoreCase(\"S\")) {\n\t\t\t\tint[][] resultado = new int[a.length][b[0].length];\n\t\t\t\tfor(int i=0; i<a.length; i++) {\n\t\t\t\t\tfor(int j=0; j<b.length; j++) {\n\t\t\t\t\t\tfor(int k=0; k<a[0].length; k++) {\n\t\t\t\t\t\t\tresultado[i][j] += a[i][k] * b[k][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsc.close();\n\t\t\t\t\n\t\t\t\tfor(int i=0; i<resultado.length; i++) {\n\t\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\t\tfor(int j=0; j<resultado.length; j++) {\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(resultado[i][j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Ejecución terminada. Muchas gracias\");\n\t\t\t}\n\t\t}\t\n\t\t\n\t}", "public final void add(Matrix3f m1, Matrix3f m2) {\n\t// note this is alias safe.\n\tset(\n\t m1.m00 + m2.m00,\n\t m1.m01 + m2.m01,\n\t m1.m02 + m2.m02,\n\t m1.m10 + m2.m10,\n\t m1.m11 + m2.m11,\n\t m1.m12 + m2.m12,\n\t m1.m20 + m2.m20,\n\t m1.m21 + m2.m21,\n\t m1.m22 + m2.m22\n\t );\n }", "private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}", "public void testAdd() {\r\n System.out.println(\"Add\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E300, -1.1E300}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E300, -1.1E300}, \r\n {-6., 0., -1., 0., 2., 0., 6.4, 7.2, 2.2E300, -2.2E300}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Add(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }", "public static void main(String args[]) \n {\n Scanner sc = new Scanner(System.in);\n int row_size = sc.nextInt();\n int col_size = sc.nextInt();\n int matrix1[][] = new int[row_size][col_size];\n for(int i = 0 ; i<row_size; i ++)\n {\n for(int j = 0; j<col_size;j++ )\n {\n matrix1[i][j]=sc.nextInt();\n }\n }\n int matrix2[][]=new int[row_size][col_size];\n for(int i = 0 ; i<row_size; i ++)\n {\n for(int j = 0; j<col_size;j++ )\n {\n matrix2[i][j]=sc.nextInt();\n }\n }\n int result[][] = new int[row_size][col_size];\n for(int i = 0 ; i<row_size; i ++)\n {\n for(int j = 0; j<col_size;j++ )\n {\n result[i][j] = matrix1[i][j] - matrix2[i][j];\n }\n }\n for(int i = 0 ; i<row_size; i ++)\n {\n for(int j = 0; j<col_size;j++ )\n {\n System.out.print(result[i][j]+\" \");\n }\n System.out.println();\n }\n }", "public int[][] denseMatrixMult(int[][] A, int[][] B, int size)\n {\n\t int[][] matrix = initMatrix(size);\n\t \n\t // base case\n\t // Just multiply the two numbers in the matrix.\n\t if (size==1) {\n\t\t matrix[0][0] = A[0][0]*B[0][0];\n\t\t return matrix;\n\t }\n\t \n\t // If the base case is not satisfied, we must do strassens. \n\t // Get M0-M6\n\t //a00: x1 = 0, y1 = 0\n\t //a01: x1 = 0; y1 = size/2\n\t //a10: x1 = size/2, y1 = 0\n\t //a11: x1 = size/2,. y1 = size/2\n\t \n\t // (a00+a11)*(b00+b11)\n\t int[][] m0 = denseMatrixMult(sum(A,A,0,0,size/2,size/2,size/2), sum(B,B, 0,0,size/2,size/2,size/2), size/2);\n\t // (a10+a11)*(B00)\n\t int[][] m1 = denseMatrixMult(sum(A,A,size/2,0,size/2,size/2,size/2), sum(B, initMatrix(size/2), 0,0,0,0,size/2), size/2);\n\t //a00*(b01-b11)\n\t int[][] m2 = denseMatrixMult(sum(A, initMatrix(size/2), 0,0,0,0,size/2), sub(B, B, 0, size/2, size/2, size/2, size/2), size/2);\n\t //a11*(b10-b00)\n\t int[][] m3 = denseMatrixMult(sum(A,initMatrix(size/2), size/2, size/2, 0,0,size/2), sub(B,B,size/2,0,0,0,size/2), size/2);\n\t //(a00+a01)*b11\n\t int[][] m4 = denseMatrixMult(sum(A,A,0,0,0,size/2,size/2), sum(B, initMatrix(size/2), size/2, size/2,0,0,size/2), size/2);\n\t //(a10-a00)*(b00+b01)\n\t int[][] m5 = denseMatrixMult(sub(A,A,size/2,0,0,0,size/2), sum(B,B,0,0,0,size/2,size/2), size/2);\n\t //(a01-a11)*(b10-b11)\n\t int[][] m6 = denseMatrixMult(sub(A,A,0,size/2,size/2,size/2,size/2), sum(B,B,size/2,0,size/2,size/2,size/2), size/2);\n\t \n\t // Now that we have these, we can get C00 to C11\n\t // m0+m3 + (m6-m4)\n\t int[][] c00 = sum(sum(m0,m3,0,0,0,0,size/2), sub(m6,m4,0,0,0,0,size/2), 0,0,0,0, size/2);\n\t // m2 + m4\n\t int[][] c01 = sum(m2,m4,0,0,0,0,size/2);\n\t // m1 + m3\n\t int[][] c10 = sum(m1,m3,0,0,0,0,size/2);\n\t // m0-m1 + m2 + m5\n\t int[][] c11 = sum(sub(m0,m1,0,0,0,0,size/2), sum(m2,m5,0,0,0,0,size/2), 0,0,0,0,size/2);\n\t \n\t // Load the results into the return array.\n\t // We are \"stitching\" the four subarrays together. \n\t for (int i = 0; i< size; i++) {\n\t\t for (int j = 0; j<size; j++) {\n\t\t\t if (i<size/2) {\n\t\t\t\t if (j<size/2) {\n\t\t\t\t\t matrix[i][j] = c00[i][j];\n\t\t\t\t } else {\n\t\t\t\t\t matrix[i][j] = c01[i][j-size/2];\n\t\t\t\t }\n\t\t\t } else {\n\t\t\t\t if (j<size/2) {\n\t\t\t\t\t matrix[i][j] = c10[i-size/2][j];\n\t\t\t\t } else {\n\t\t\t\t\t matrix[i][j] = c11[i-size/2][j-size/2];\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t \n\t // return the matrix we made.\n\t return matrix;\n }", "private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }", "private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }", "public Matrix4f add(Matrix4f other) {\n Matrix4f result = new Matrix4f();\n\n result.m00 = this.m00 + other.m00;\n result.m10 = this.m10 + other.m10;\n result.m20 = this.m20 + other.m20;\n result.m30 = this.m30 + other.m30;\n\n result.m01 = this.m01 + other.m01;\n result.m11 = this.m11 + other.m11;\n result.m21 = this.m21 + other.m21;\n result.m31 = this.m31 + other.m31;\n\n result.m02 = this.m02 + other.m02;\n result.m12 = this.m12 + other.m12;\n result.m22 = this.m22 + other.m22;\n result.m32 = this.m32 + other.m32;\n\n result.m03 = this.m03 + other.m03;\n result.m13 = this.m13 + other.m13;\n result.m23 = this.m23 + other.m23;\n result.m33 = this.m33 + other.m33;\n\n return result;\n }", "public Matrix mult (Matrix otherMatrix) {\n Matrix resultMatrix = new Matrix(nRows, otherMatrix.nColumns);\n\n ExecutorService executor = Executors.newFixedThreadPool(16);\n\n IntStream.range(0, nRows).forEach(rowIndex -> {\n executor.execute(() -> {\n IntStream.range(0, otherMatrix.nColumns).forEach(otherMatrixColIndex -> {\n double sum = IntStream.range(0, this.nColumns)\n .mapToDouble(colIndex -> this.data[rowIndex][colIndex] * otherMatrix.data[colIndex][otherMatrixColIndex])\n .sum();\n\n resultMatrix.setValue(rowIndex, otherMatrixColIndex, sum);\n });\n });\n });\n\n executor.shutdown();\n\n try {\n if (executor.awaitTermination(60, TimeUnit.MINUTES)){\n return resultMatrix;\n } else {\n System.out.println(\"Could not finish matrix multiplication\");\n }\n } catch (InterruptedException e) {\n System.out.println(\"Could not finish matrix multiplication, thread interrupted.\");\n }\n\n return null;\n }", "@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}", "public void getConcatMatrix(Matrix matrix2) {\n matrix2.postConcat(this.matrix);\n }", "public static void main(String[] args)\n{\n if (args.length != 1) {\n System.out.println(\"This program computes the product of n x n matrix with itself\");\n System.out.println(\"Usage: ./matrix_multiply n\" );\n System.exit(-1);\n }\n // parse intput matrix size\n int n =0 ;\n try {\n n = Integer.parseInt(args[0]);\n } catch (Exception e) {\n System.out.println(\"Passed n \\'\" + args[0] + \"\\' is not an integer!\");\n System.exit(-1);\n }\n\n // dynamically allocate space for matrix_A (intput matrix) int 1d array\n int[] matrix_A = new int[n*n];\n // dynamically allocate space for matrix_B (output matrix) int 1d array\n int[] matrix_B = new int[n*n];\n\n // call function to read data from file and copy into matrix_A\n generateArray(matrix_A, n, n);\n\n // call function to perform matrix multiplication ( matrix_B = matrix_A * matrix_A )\n matrixMultiply(matrix_A, n, n, matrix_A, n, n, matrix_B);\n\n // call function to write results (matrix_B) to stdout\n printReduce(matrix_B, n, n);\n\n}", "void addRows(int row1, int row2, int k)\r\n {\n \r\n int tmp[] = new int[cols];\r\n \r\n for(int j=0; j<cols; j++)\r\n tmp[j] = k*(matrix[row2][j]);\r\n \r\n for(int j=0; j<cols; j++)\r\n matrix[row1][j]+=tmp[j];\r\n \r\n \r\n }", "private void add() {\n // PROGRAM 1: Student must complete this method\n // This method must use the addBit method for bitwise addition.\n adder = addBit(inputA[0],inputB[0], false); //begin adding, no carry in\n output[0] = adder[0]; //place sum of first addBit iteration into output[0]\n //loop thru output beginning at index 1 (since we already computed index 0)\n for (int i = 1; i < output.length; i++) {\n cin = adder[1]; //set carry-out bit of addBit() iteration to cin\n adder = addBit(inputA[i], inputB[i], cin); //call addBit with index i of inputA and inputB and cin and place into adder.\n output[i] = adder[0]; //place sum into output[i]\n }\n }", "public static void main(String[] args) {\n\r\n\t\tMatrices1 matrix = new Matrices1(10, 3);\r\n\t\tMatrices1 matrix2 = new Matrices1(3, 1);\r\n\t\t\r\n\r\n\t\tmatrix.initialize(matrix.array);\r\n\t\tmatrix2.initialize(matrix2.array);\r\n\t\t\r\n\t\tdouble [][]output=Matrices1.matrixProduct(matrix.array, matrix2.array, matrix.row1, matrix2.column1, matrix.column1);\r\n\t\tfor (int i = 0; i < matrix.row1; i++) {\r\n\t\t\tfor (int j = 0; j < matrix2.column1; j++) {\r\n\t\t\t\tSystem.out.println(output[i][j]);\r\n\t\t\t}//end of forloop\r\n\t\t}//end of forloop\r\n\t}", "public void add(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] += skalar;\r\n }\r\n }\r\n }", "public T concatRows( SimpleBase... matrices ) {\n convertType.specify0(this, matrices);\n T A = convertType.convert(this);\n\n int numCols = A.numCols();\n int numRows = A.numRows();\n for (int i = 0; i < matrices.length; i++) {\n numRows += matrices[i].numRows();\n numCols = Math.max(numCols, matrices[i].numCols());\n }\n\n SimpleMatrix combined = SimpleMatrix.wrap(convertType.commonType.create(numRows, numCols));\n\n A.ops.extract(A.mat, 0, A.numRows(), 0, A.numCols(), combined.mat, 0, 0);\n int row = A.numRows();\n for (int i = 0; i < matrices.length; i++) {\n Matrix m = convertType.convert(matrices[i]).mat;\n int cols = m.getNumCols();\n int rows = m.getNumRows();\n A.ops.extract(m, 0, rows, 0, cols, combined.mat, row, 0);\n row += rows;\n }\n\n return (T)combined;\n }", "int[ ][ ] findSum(int a[][],int b[][])\n {\n int temp[][]=new int[r][c];\n for(int i=0;i<r;i++)\n for(int j=0;i<j;i++)\n temp[i][j]=a[i][j]+b[i][j];\n\n return temp;\n }", "public byte[][] multiplyMatricesFiniteField(byte[][] m1, byte[][] m2) {\n\n byte[][] result = new byte[m1.length][m2[0].length];\n\n int rows = m1.length;\n int cols = m2[0].length;\n\n for(int i = 0; i < rows; i++) {\n int sum = 0;\n for(int j = 0; j < cols; j++) {\n for(int k = 0; k < 4; k++) {\n sum ^= multiplyPolynomialsMod(m1[i][k],m2[k][j], reductionPolynomial);\n }\n result[i][j] = (byte)sum;\n }\n }\n\n return result;\n }", "Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }", "public static Matrix multiply(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] * second.matrix[row][col];\n }\n }\n \n return result;\n }", "public void linear_regression(double w_sum, DMatrixRMaj a, DMatrixRMaj b, DMatrixRMaj x_wsum, DMatrixRMaj y_wsum,\n DMatrixRMaj xy_wsum, DMatrixRMaj xx_wsum, DMatrixRMaj ret, int ret_y, int ret_x) {\n\n\n // 0,0 item\n m1.set(0,0,w_sum);\n\n // 0,1; 1,0 item\n elementMult(a,x_wsum,lin_reg_buf_b_1);\n //elementSum(lin_reg_buf_b_1);\n m1.set(0,1, elementSum(lin_reg_buf_b_1) );\n m1.set( 1,0, elementSum(lin_reg_buf_b_1) );\n\n // 1,1 item\n\n transpose(a,lin_reg_buf_1_b);\n mult(a,lin_reg_buf_1_b,lin_reg_buf_b_b);\n elementMult(lin_reg_buf_b_b,xx_wsum);\n m1.set(1,1,elementSum(lin_reg_buf_b_b) );\n\n // Step2 - calculate m2 matrix\n\n // 0,0 item\n elementMult(b,y_wsum,lin_reg_buf_b_1);\n m2.set(0,0,elementSum(lin_reg_buf_b_1));\n\n // 1,0 item\n transpose(b,lin_reg_buf_1_b);\n mult(a,lin_reg_buf_1_b,lin_reg_buf_b_b);\n elementMult(lin_reg_buf_b_b,xy_wsum);\n m2.set( 1,0, elementSum(lin_reg_buf_b_b) );\n\n // Step 3 - calculate b and intercept\n\n invert(m1);\n\n DMatrixRMaj ret2 = new DMatrixRMaj(2,1);\n //DMatrixRMaj ret3 = new DMatrixRMaj()\n mult(m1,m2,ret2);\n\n // Insert numbers into provided return position\n transpose(ret2);\n insert(ret2,ret,ret_y,ret_x);\n }", "private void compareMatrices(double[][] firstM, double[][] secondM) {\n assertEquals(firstM.length, secondM.length);\n\n for(int i=0; i<firstM.length; i++) {\n assertEquals(firstM[i].length, secondM[i].length);\n\n for(int j=0; j<firstM[0].length; j++) {\n assertEquals(\"i,j = \"+i+\",\"+j, \n firstM[i][j], secondM[i][j], TOLERANCE);\n }\n }\n }", "public static <T extends Vector> T Add(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] + b.axis[i];\n }\n return result;\n }\n return result;\n }", "private static void multiplyArray(double [][] matrixA, double [][] matrixB, double [][] matrixC) {\n\t\t\n\t\tmatrixC[0][0] = ((matrixA[0][0] * matrixB[0][0]) + (matrixA[0][1] * matrixB[1][0]));\n\t\tmatrixC[0][1] = ((matrixA[0][0] * matrixB[0][1]) + (matrixA[0][1] * matrixB[1][1]));\n\t\tmatrixC[1][0] = ((matrixA[1][0] * matrixB[0][0]) + (matrixA[1][1] * matrixB[1][0]));\n\t\tmatrixC[1][1] = ((matrixA[1][0] * matrixB[0][1]) + (matrixA[1][1] * matrixB[1][1]));\n\t}", "public static void main(String[] args) {\n int arr1[][] = {{1,89,75},{56,20,15},{63,02,30}};\n int arr2[][] = {{48,8,02},{78,280,1895},{3,0562,390}};\n //int arr2[][] = {{40,50,60},{8,52,82},{88,90,02}};\n //int arr2[][] = {{48,8,02},{78,280,1895},{3,0562,390}};\n\n int arrSum[][] = new int[3][3];\n int arrSub[][] = new int[3][3];\n int arrMult[][] = new int[3][3];\n\n System.out.println(\"array1\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arr1[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n\n System.out.println(\"array2\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arr2[i][j] + \" \");\n }\n System.out.println();\n }\n\n for(int i = 0; i < arr1.length; i++){\n for(int j = 0; j < arr1.length; j++){\n arrSum[i][j] = arr1[i][j]+arr2[i][j];\n arrSub[i][j] = arr1[i][j]-arr2[i][j];\n //arrMult[i][j] = arr1[i][j]*arr2[i][j];\n }\n System.out.println();\n }\n for(int i = 0; i <arr2.length;i++){\n for(int j = 0; j<arr2.length;j++){\n arrMult[i][j] = 0;\n for(int k =0; k<3;k++){\n arrMult[i][j] += arr1[i][k]*arr2[k][j];\n }\n }\n }\n System.out.println();\n System.out.println(\"matrix addition ...\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arrSum[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n\n System.out.println(\"matrix subtraction ...\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arrSub[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n\n\n System.out.println(\"matrix multiplication ...\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arrMult[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n\n \n }", "public static double[][] multiplyMatrixes( double[][] m1, double[][] m2 ) {\n double[][] result = new double[3][3];\n multiplyMatrixes( m1, m2, result );\n return result;\n }", "public static double [] combineArray(double []num1, double []num2){\n\t\t\n\t\t double []sum=new double[num1.length + num2.length];\n\n\t\t for (int i=0; i<num1.length; i++){\n\t\t sum[i]+=num1[i];\n\t\t }\n\t\t for (int i=0; i<num2.length; i++){\n\t\t \tsum[i+num1.length]+=num2[i];\n\t\t }\n\t\t\treturn sum;\n\t}", "public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.columnCount != B.rowCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.rowCount, B.columnCount);\n for (int i = 0; i < C.rowCount; i++)\n for (int j = 0; j < C.columnCount; j++)\n for (int k = 0; k < A.columnCount; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }" ]
[ "0.72103274", "0.7159379", "0.7129113", "0.711998", "0.7113713", "0.70364267", "0.6940802", "0.6855908", "0.68389946", "0.6795944", "0.6780325", "0.6768926", "0.67534584", "0.67484325", "0.67137945", "0.67081285", "0.6700758", "0.6698905", "0.6573344", "0.65360606", "0.6515167", "0.64868283", "0.64865375", "0.64780694", "0.64755774", "0.6453117", "0.6412119", "0.63869804", "0.6355728", "0.6277209", "0.62404835", "0.6204457", "0.6197734", "0.6181312", "0.6168671", "0.6161484", "0.61375207", "0.60984766", "0.6081611", "0.6072059", "0.60516167", "0.5996371", "0.5995405", "0.5967208", "0.59494084", "0.5938948", "0.59206355", "0.5918844", "0.5904091", "0.58968616", "0.58935297", "0.58845097", "0.5880241", "0.5862793", "0.5862348", "0.5854105", "0.5851409", "0.5839868", "0.5816902", "0.5810969", "0.5783348", "0.5774443", "0.5771479", "0.5766307", "0.5763102", "0.5727364", "0.57134724", "0.5701896", "0.5682406", "0.56779075", "0.5668631", "0.5659513", "0.5628814", "0.5621672", "0.55980027", "0.55936897", "0.5580889", "0.5580889", "0.55620503", "0.55505586", "0.55504364", "0.55421525", "0.5531994", "0.5525044", "0.5510137", "0.5495941", "0.5472091", "0.5465966", "0.5465798", "0.54559135", "0.5446522", "0.5442252", "0.5434693", "0.543338", "0.5412606", "0.5394411", "0.53847384", "0.53819674", "0.53701293", "0.5370052" ]
0.5904704
48
Singleton method to ensure all SuperCardToasts are passed through the same manager.
protected static synchronized ManagerSuperCardToast getInstance() { if (mManagerSuperCardToast != null) { return mManagerSuperCardToast; } else { mManagerSuperCardToast = new ManagerSuperCardToast(); return mManagerSuperCardToast; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cancelAllSuperActivityToasts() {\n\n for (SuperCardToast superCardToast : mList) {\n\n if (superCardToast.isShowing()) {\n\n superCardToast.getViewGroup().removeView(\n superCardToast.getView());\n\n superCardToast.getViewGroup().invalidate();\n\n }\n\n }\n\n mList.clear();\n\n }", "void add(SuperCardToast superCardToast) {\n\n mList.add(superCardToast);\n\n }", "private Manager() {\n _transportViews = new ArrayList<TransportView>();\n _transportersClient = new ArrayList<TransporterClient>();\n }", "void remove(SuperCardToast superCardToast) {\n\n mList.remove(superCardToast);\n\n }", "private VM5MoPubCentralManager() {\n lifecycleListenerMapByActivityMap = new WeakHashMap<>();\n }", "@Test\n\tpublic void testSingleton()\n\t{\n\t\tChatManager cm1 = ChatManager.getSingleton();\n\t\tassertSame(cm1, ChatManager.getSingleton());\n\t\tChatManager.resetSingleton();\n\t\tassertNotSame(cm1, ChatManager.getSingleton());\n\t}", "protected void initializeInstances() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n if (mUserCache == null) {\n mUserCache = new UserCache();\n }\n if(mGlobalGroupContainer == null) {\n mGlobalGroupContainer = new GroupContainer(getApplicationContext());\n }\n if(mGlobalHistoryContainer == null) {\n mGlobalHistoryContainer = new HistoryContainer(getApplicationContext());\n }\n\n if(mGlobalContactContainer == null) {\n mGlobalContactContainer = new ContactContainer(getApplicationContext());\n mGlobalContactContainer.setContactSortKey(Contact.UserSortKey.USER_FIRST_NAME);\n }\n }", "public static void initManagers(Activity activity) {\n mActivity = activity;\n mContext = activity;\n initLog();\n\n }", "@Override\r\n protected Set<Object> serviceInstances(Injector injector) {\r\n return Sets.newHashSet(\r\n injector.getInstance(RabbitMQAPI.class));\r\n }", "private InspectionManager() {\n this.allInspections = new ArrayList<>();\n }", "private static void checkToast() {\n\t\tif (mToast == null) {\n\t\t\tmToast = Toast.makeText(GlobalApp.getApp(), null,\n\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t}\n\t}", "public TManagerImp() {\n transactions = new ConcurrentHashMap<>();\n }", "private SingletonEager(){\n \n }", "private SingletonClass() {\n objects = new ArrayList<>();\n }", "private TSLManager() {\n\t\tsuper();\n\t}", "private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}", "@SuppressWarnings(\"UnusedParameters\")\n private void initInstances(View rootView, Bundle savedInstanceState) {\n if (isFirstTime()) {\n mBind.topLayout.setVisibility(View.INVISIBLE);\n }\n mBind.btnConfirm.setOnClickListener(this);\n mBind.btnSearchMap.setOnClickListener(this);\n mBind.imageBtnHomeUp.setOnClickListener(this);\n mBind.btnGetCurrent.setOnClickListener(this);\n\n mRegistrationBroadcastReceiver = new BroadcastReceiver() {\n public String jid;\n public String did;\n public String status;\n public JSONObject data;\n public String payload;\n public String title;\n public String message;\n\n @Override\n public void onReceive(Context context, Intent intent) {\n if (intent.getAction().equals(Config.PUSH_NOTIFICATION)) {\n try {\n title = intent.getStringExtra(\"title\"); //check\n message = intent.getStringExtra(\"message\");//check\n payload = intent.getStringExtra(\"payload\");//check\n data = new JSONObject(payload);//check\n status = data.getString(\"status\");//check\n if (status.equals(\"end_job\")){\n did = data.getString(\"did\");\n jid = data.getString(\"jid\");\n }\n } catch (JSONException e) {\n Log.e(TAG, \"Json Exception: \" + e.getMessage());\n } catch (Exception e) {\n Log.e(TAG, \"Exception: \" + e.getMessage());\n }\n\n //Handle Code Here!!\n if (!status.equals(\"end_job\")) {\n new ShowDialogStatusJob(getContext(), title, message);\n } else {\n new ShowDialogReviewDriver(getContext(), did, jid);\n }\n }\n\n }\n };\n\n SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n }", "private void initSupportAggregate() {\n Intent intent = new Intent();\n intent.setClassName(\"com.miui.notification\", \"miui.notification.aggregation.NotificationListActivity\");\n boolean z = this.mContext.getPackageManager().resolveActivity(intent, 0) != null;\n sSupportAggregate = z;\n this.mBindTimes = 0;\n if (!z) {\n return;\n }\n if (!this.mHasBind || this.mNcService == null) {\n this.mHandler.removeMessages(10002);\n this.mHandler.sendEmptyMessage(10002);\n }\n }", "private UIManager() {\n tableUI = new TableUI();\n snifferUI = new SnifferUI();\n }", "protected void initSingletons()\n {\n Singleton.initInstance();\n }", "private void multi(EntityManager manager) {\r\n if (manager.getAmmo(4) == 0 && !testMode) {\r\n changeGuns(0, manager);\r\n manager.outOfAmmo();\r\n return;\r\n }\r\n\r\n float newRotationR = rotationZ - 90;\r\n float newRotationL = rotationZ + 90;\r\n float newRotationD = rotationZ + 180;\r\n\r\n float leftX = (float) Math.sin(Math.toRadians(newRotationL));\r\n float leftY = (float) -Math.cos(Math.toRadians(newRotationL));\r\n\r\n float rightX = (float) Math.sin(Math.toRadians(newRotationR));\r\n float rightY = (float) -Math.cos(Math.toRadians(newRotationR));\r\n\r\n float downX = (float) Math.sin(Math.toRadians(newRotationD));\r\n float downY = (float) -Math.cos(Math.toRadians(newRotationD));\r\n\r\n Shot leftshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, leftX * 100, leftY * 100, 150, 1.5f, 0, 1, 0, true, 200, false);\r\n\r\n Shot rightshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, rightX * 100, rightY * 100, 150, 1.5f, 0, 0, 1, true, 200, false);\r\n\r\n Shot upshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, forwardX * 100, forwardY * 100, 150, 1.5f, 1, 0, 0, true, 200, false);\r\n\r\n Shot downshot = new Shot(shotTexture, getX() + forwardX, getY() + forwardY, downX * 100, downY * 100, 150, 1.5f, 1, 1, 0.82f, true, 200, false);\r\n\r\n manager.addEntity(leftshot);\r\n manager.addEntity(rightshot);\r\n manager.addEntity(upshot);\r\n manager.addEntity(downshot);\r\n if (!testMode) manager.updateAmmo(4, -1, false);\r\n manager.shotFired(4);\r\n }", "@Before\n\tpublic void reset()\n\t{\n\t\tClientPlayerManager.resetSingleton();\n\t\tChatManager.resetSingleton();\n\t\tQualifiedObservableConnector.resetSingleton();\n\t}", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "@Override\n\tpublic void createToast(String slogan, float duration) {\n\t\tif (Gdx.app.getType() == ApplicationType.Android) {\n\t\t\tgGame.iFunctions.createToast(slogan, duration);\n\t\t} else\n\t\tsuper.createToast(slogan, duration);\n\t}", "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}", "protected void toast() {\n }", "public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}", "@Override\r\n public GenericManager<TraitSalaire, Long> getManager() {\r\n return manager;\r\n }", "private void initManagers() {\n\t\t// TODO Auto-generated method stub\n\t\tvenueManager = new VenueManager();\n\t\tadView = new AdView(this, AdSize.SMART_BANNER,\n\t\t\t\tConstants.AppConstants.ADDMOB);\n\t\tanimationSounds = new AnimationSounds(VenuesActivity.this);\n\n\t}", "private SingletonLectorPropiedades() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "private EagerInitializedSingleton() {\n\t}", "private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}", "private SharedPreferencesManager(){}", "private void createSnack() {\n }", "private void initInstances(View rootView) {\n setRetainInstance(true);\n listView = (ListView) rootView.findViewById(R.id.ListView);\n listView.setAdapter(mDessertListAdapter = new DessertListAdapter());\n listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n MainBus.getInstance().post(new BusDessertListItem(position));\n }\n });\n\n swipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.swipeRefresh);\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n loadData();\n }\n });\n listView.setOnScrollListener(new AbsListView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n\n }\n\n @Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n swipeRefreshLayout.setEnabled(firstVisibleItem == 0);\n if(firstVisibleItem+visibleItemCount>=totalItemCount){\n //loadmore\n //make sure it doesn't get call more than once at a time\n //\n }\n }\n });\n loadData();\n }", "private UnitManager() {\r\n\t\tUM = new UnitMap(); // create an object\r\n\t}", "synchronized public static void setInstance(SampletypeManager instance)\n {\n singleton = instance;\n }", "@VisibleForTesting\n public UsageStatsManagerInternal injectUsageStatsManagerInternal() {\n return (UsageStatsManagerInternal) LocalServices.getService(UsageStatsManagerInternal.class);\n }", "private SingleTon() {\n\t}", "static public AtomSlinger Get_Instance ()\n {\n return AtomSlingerContainer._instance;\n }", "@VisibleForTesting\n public ActivityManagerInternal injectActivityManagerInternal() {\n return (ActivityManagerInternal) LocalServices.getService(ActivityManagerInternal.class);\n }", "@Override\n public boolean isSingleton() {\n return false;\n }", "@Override\n public void notifyServiceCreated(){\n List<Fragment> frags = getChildFragmentManager().getFragments();\n for(Fragment frag : frags){\n if(frag instanceof BasePanelFragment){\n ((BasePanelFragment)frag).notifyServiceCreated();\n }\n }\n }", "private static void createSingletonObject() {\n\t\tSingleton s1 = Singleton.getInstance();\n\t\tSingleton s2 = Singleton.getInstance();\n\n\t\tprint(\"S1\", s1);\n\t\tprint(\"S2\", s2);\n\t}", "@Before\n public void setUp()\n {\n m_instance = ConversationRepository.getInstance();\n m_fileSystem = FileSystem.getInstance();\n }", "public static OldLogCatView getInstance() {\n return sThis;\n }", "public MultipleToolTipManager()\n {\n\tthis(null);\n }", "private void initializeScreenComponents() {\n fabmenu = findViewById(R.id.fabmenu);\n fab = findViewById(R.id.fab);\n noInternetImg = findViewById(R.id.noInternetImg);\n pullToRefresh = findViewById(R.id.pullToRefresh);\n String indicator = getIntent().getStringExtra(Constants.INDICATOR);\n avi = (AVLoadingIndicatorView) findViewById(R.id.avi);\n avi.setIndicator(indicator);\n recyclerView = (RecyclerView) findViewById(R.id.recyclerview);\n recyclerView.setLayoutManager(new LinearLayoutManagerWithSmoothScroller(this.getApplicationContext()));\n shopList = new ArrayList<>();\n gridLayout = new GridLayoutManager(this, 1);\n recyclerView.setLayoutManager(gridLayout);\n adapter = new ShopsInAreaAdapter(this, shopList);\n recyclerView.setAdapter(adapter);\n }", "private ScriptInstanceManager() {\n\t\tsuper();\n\t}", "public interface SMSCALLManager\r\n extends GenericManager<SMSCALL, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"SMSCALLManager\";\r\n\r\n}", "private void init() {\r\n\r\n analyticsManager = new xxxxAnalytics(getApplicationContext());\r\n\r\n analyticsSender = new AnalyticsSender(this);\r\n\r\n provider = FeedProviderImpl.getInstance(this);\r\n\r\n feedId = getIntent().getExtras().getInt(Constants.FEED_ID);\r\n if (provider != null) {\r\n friendFeed = provider.getFeed(feedId);\r\n }\r\n\r\n unifiedSocialWindowView = findViewById(R.id.linearLayoutForUnifiedSocialWindow);\r\n\r\n\r\n // Get member contacts.\r\n memberContacts = provider.getContacts(feedId);\r\n\r\n lastDiffs = new LinkedBlockingDeque<Integer>();\r\n }", "public static UIManager getInstance() {\n return ourInstance;\n }", "static void useSingleton(){\n\t\tSingleton singleton = Singleton.getInstance();\n\t\tprint(\"singleton\", singleton);\n\t}", "private RequestManager() {\n\t // no instances\n\t}", "private void writeCardWidgetsFirstTime() {\n \t\tsetInSlot(SLOT_Card, null);\n \t\tallCards.clear();\n \t\tfor (int i = 0; i < Storage_access.getNumberOfCard(); i++) {\n \t\t\tfinal int myI = i;\n \t\t\tcardFactory.get(new AsyncCallback<SingleCardPresenter>() {\n \n \t\t\t\t@Override\n \t\t\t\tpublic void onSuccess (SingleCardPresenter result) {\n \t\t\t\t\taddToSlot(SLOT_Card, result);\n \t\t\t\t\tresult.init(myI);\n \t\t\t\t\tcardDragController.makeDraggable(result.getWidget(), result.getView().getCourse());\n \t\t\t\t\tcardDragController.makeDraggable(result.getWidget(), result.getView().getTeacher());\n \t\t\t\t\tallCards.add(result);\n \n \t\t\t\t}\n \n \t\t\t\t@Override\n \t\t\t\tpublic void onFailure(Throwable caught) {\n \t\t\t\t\t// TODO Auto-generated method stub\n \n \t\t\t\t}\n \t\t\t});\n \t\t}\n \n \t}", "protected void beforeStartManager(Manager manager) {\n }", "@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}", "protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}", "@SuppressWarnings(\"deprecation\")\n private SlavesHolder() {\n this.slaves = new ArrayList<Slave>(Hudson.getInstance().getSlaves());\n sort();\n // Adding ATExtension did no rigister my class, that is why this method\n // is called.\n this.register();\n }", "public SubscriptionManager(RepositoryManager manager) {\n\t\tthis.fileUtils = new SubscriptionFileUtils( manager );\n\t\tthis.manager = manager;\n\t}", "@Override\n public GenericManager<Societe, Long> getManager() {\n return manager;\n }", "public JobManagerHolder() {\n this.instance = null;\n }", "private SingletonDoubleCheck() {}", "private Singleton(){\n }", "@Override\n public void managerWillStop() {\n }", "private void initComponent(){\n recyclerView = findViewById(R.id.noti_recycler_view);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n\n notifAdapter = new NotificationAdapter(this, notifications, currentUser);\n recyclerView.setAdapter(notifAdapter);\n\n ItemTouchHelper.Callback callback = new SwipeItemTouchHelper(notifAdapter);\n itemTouchHelper = new ItemTouchHelper(callback);\n itemTouchHelper.attachToRecyclerView(recyclerView);\n }", "private SingletonSigar(){}", "private SettingsGroupManager() {}", "@Test\n public void shouldInjectInstances() {\n Assert.assertNotNull(notificationServiceComposite);\n Assert.assertNotNull(notificationService);\n }", "private MQTTopicManager() {\n for(Integer counter=1;counter!=Short.MAX_VALUE;counter++){\n messageIdList.add(counter);\n }\n }", "private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }", "public checkUserExpiration() {\n memberBroker = new membersBroker();\naccountBroker= new accountsBroker();\n }", "protected void init() {\n\n List<ApplicationEntry> result;\n //we want to exclude duplicate apps by using ApplicationEntry#hashCode() and we don't care about sorting\n Set<ApplicationEntry> setOfItems = new HashSet<>();\n\n //we have a hacky hashcode implementation for ApplicationEntry\n //so that ApplicationEntry for the same app is only added ONCE.\n // some ApplicationEntries have the same app, but different action, so we want to avoid duplicates.\n // that is implementation specific - you may solve the problem of duplicate apps the other way.\n //so just notice this: mail sharing actions are added first.\n setOfItems.addAll(mailSharingActions.getMailActions());\n setOfItems.addAll(messengerSharingActions.getMessengerActions());\n\n\n result = new ArrayList<>(setOfItems);\n adapter.setItems(result);\n }", "public static InspectorManager getInstance() {\n if (instance==null) instance = new InspectorManager();\n return instance;\n}", "private static void startTenantFlow() {\n Stack<TenantContextDataHolder> contextDataStack = parentHolderInstanceStack.get();\n contextDataStack.push(holderInstance.get());\n holderInstance.remove();\n }", "static ManagerPrx checkedCast(com.zeroc.Ice.ObjectPrx obj)\n {\n return com.zeroc.Ice.ObjectPrx._checkedCast(obj, ice_staticId(), ManagerPrx.class, _ManagerPrxI.class);\n }", "public void threadManager() {\n /**Retrieve all data stored in \"preference\"*/\n if (mNodeThingUtils.getAllSavedThing() != null) {\n\n Map<String, String> getAllSensor = mNodeThingUtils.getAllSavedThing();\n Set<String> keys = getAllSensor.keySet();\n\n /**It checks to see if he has already been registered*/\n if (!threadControl.containsKey(String.valueOf(keys))) {\n for (Iterator i = keys.iterator(); i.hasNext(); ) {\n String key = (String) i.next();\n /**This control is used to separate the thread type from the sensor type*/\n if (!key.matches(Constant.Regexp.THREAD_CONTROL) && key.length() != 2) {\n\n /**Creates a new thread and registers it as \"nodename: thingname\"\n * of type \"map\" so that it is easy to check later*/\n threadControl.put(key, new ThreadUtils(mContext));\n }\n }\n } else {\n LogUtils.logger(TAG, \"There is a thread named as \" + keys);\n }\n }\n }", "private final class <init> extends com.ebay.mobile.recents.er\n{\n\n final RecentlyViewedItemsActivity this$0;\n\n public void onAllViewedItemDeleteComplete(RecentsDataManager recentsdatamanager, Content content)\n {\n findViewById(0x7f100120).setVisibility(8);\n if (content != null && content.getStatus().hasError())\n {\n Toast.makeText(RecentlyViewedItemsActivity.this, getString(0x7f0703d1), 1).show();\n return;\n } else\n {\n recentsdatamanager = new Intent();\n recentsdatamanager.putExtra(\"cleared\", true);\n setResult(-1, recentsdatamanager);\n finish();\n return;\n }\n }", "private void initShare() {\n // Create ShareHelper\n mShareHelper = new ShareHelper(mContext);\n }", "public TalkSystem(){\n this.talkManager = new TalkManager();\n this.messagingSystem = new MessagingSystem();\n this.scheduleSystem = new ScheduleSystem(talkManager);\n this.signUpMap = talkManager.getSignUpMap();\n }", "public final void init() {\r\n GroundItemManager.create(this);\r\n SPAWNS.add(this);\r\n }", "private SingletonController(AssetManager assetManager) {\n this.assetManager = assetManager;\n }", "protected static void resetManager() {\n externalCameras.clear();\n resolutionMap.clear();\n isStartedMap.clear();\n trackerAPIMap.clear();\n internalCamera = null;\n internalCameraId = null;\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "public DisplayManager(Object manager) {\n this.manager = manager;\n }", "public static GenericRecordSetManager getInstance() {\n return instance;\n }", "private InstalledOfficeManagerHolder() {\n throw new AssertionError(\"Utility class must not be instantiated\");\n }", "public static SingleObject getInstance(){\n return instance;\n }", "private RestrictionEnzymeManager() { }", "private void initObjects(){\n listCustomers = new ArrayList<>();\n userRecyclerAdapter = new UserRecyclerAdapter(listCustomers);\n\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());\n recyclerViewUsers.setLayoutManager(mLayoutManager);\n recyclerViewUsers.setAdapter(userRecyclerAdapter);\n recyclerViewUsers.setItemAnimator(new DefaultItemAnimator());\n recyclerViewUsers.setHasFixedSize(true);\n dbHelper = new DBHelper(activity);\n\n String emailFromIntent = getIntent().getStringExtra(\"EMAIL\");\n tvName.setText(emailFromIntent);\n\n getDataFromDatabase();\n\n recyclerViewUsers.addOnItemTouchListener(new RecyclerTouchListener(this, recyclerViewUsers, new RecyclerTouchListener.ClickListener() {\n @Override\n public void onClick(View view, int position) {\n\n }\n\n @Override\n public void onLongClick(View view, int position) {\n showActionsDialog(position);\n }\n }));\n }", "private UpdateManager () {}", "private void initSpeechManager() {\n mSpeechManager = SpeechManager.getInstance(this);\n }", "@Override\n\tprotected void initVariable() {\n\t\tapp = (MApplication) this.getApplication();\n\t\tapp.addAllActivity(this);\n\t\tfundcode = this.getIntent().getStringExtra(\"fundcode\");\n\t\tlist = new ArrayList<MoneyChangeBean>();\n\t\tadapter = new RecordDetailsAdapter(getApplicationContext(), list);\n\t\tuserShare = UserSharedData.getInstance(getApplicationContext());\n\t}", "private SubjectManagement() {\n\n\t}", "private TouchPointManager() {\n }", "protected void forEachManagerInSeparateThread(Consumer<Manager<?>> managerConsumer) {\n requireNonNull(managerConsumer);\n final ManagerComponent mc = speedment.getManagerComponent();\n final List<Thread> threads = mc.stream()\n .map(mgr -> new Thread(()\n -> managerConsumer.accept(mgr),\n mgr.getTable().getName()\n ))\n .collect(toList());\n threads.forEach(Thread::start);\n threads.forEach(SpeedmentApplicationLifecycle::join);\n }", "private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }" ]
[ "0.60700333", "0.5725128", "0.56362367", "0.53878856", "0.5320081", "0.5137596", "0.51329863", "0.50602037", "0.50488496", "0.5040817", "0.4961247", "0.48700187", "0.48266718", "0.48200002", "0.4787534", "0.4732581", "0.46723735", "0.4658181", "0.46501493", "0.46374115", "0.4589971", "0.45665425", "0.45633504", "0.45588744", "0.45459446", "0.45406258", "0.45228288", "0.4522436", "0.44800627", "0.4479319", "0.44686732", "0.44686732", "0.4464078", "0.44565743", "0.4455592", "0.44508225", "0.44485462", "0.4446266", "0.44452742", "0.44346166", "0.44272915", "0.4415635", "0.44124997", "0.4410687", "0.44081646", "0.44014663", "0.44001427", "0.43909177", "0.43891582", "0.43884623", "0.4387346", "0.43700126", "0.4368539", "0.43646154", "0.43606064", "0.43506387", "0.43482867", "0.43350807", "0.43317807", "0.43298095", "0.43273053", "0.43261608", "0.43159398", "0.43135354", "0.43106467", "0.43083283", "0.4306374", "0.430428", "0.43018895", "0.42954496", "0.42935255", "0.42916238", "0.4291206", "0.4291149", "0.42898518", "0.4289547", "0.4287066", "0.4284631", "0.42838088", "0.4282186", "0.4280722", "0.427921", "0.42767012", "0.42695722", "0.42667225", "0.42667225", "0.42667225", "0.42655155", "0.42623016", "0.4261906", "0.42613387", "0.42592332", "0.4259007", "0.42576754", "0.42569202", "0.425536", "0.42551795", "0.42538705", "0.42536044", "0.42525694" ]
0.70718694
0
Add a SuperCardToast to the list.
void add(SuperCardToast superCardToast) { mList.add(superCardToast); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void remove(SuperCardToast superCardToast) {\n\n mList.remove(superCardToast);\n\n }", "@Override\n\tpublic void createToast(String slogan, float duration) {\n\t\tif (Gdx.app.getType() == ApplicationType.Android) {\n\t\t\tgGame.iFunctions.createToast(slogan, duration);\n\t\t} else\n\t\tsuper.createToast(slogan, duration);\n\t}", "void cancelAllSuperActivityToasts() {\n\n for (SuperCardToast superCardToast : mList) {\n\n if (superCardToast.isShowing()) {\n\n superCardToast.getViewGroup().removeView(\n superCardToast.getView());\n\n superCardToast.getViewGroup().invalidate();\n\n }\n\n }\n\n mList.clear();\n\n }", "private CardView addCard(Card card, boolean silent) {\n CardView cardView = new CardView(card);\n getChildren().add(cardView);\n\n cardViews.add(cardView);\n\n cardView.setParentSet(this);\n\n cardSet.addCard(card);\n\n if (!silent) {\n fireEvent(cardView, CardEvent.CARD_ADDED);\n }\n\n if (interactive) {\n assignEvents(cardView);\n if (!silent) {\n markValidity();\n cardView.setNewcomer(true);\n sort();\n }\n }\n return cardView;\n }", "protected static synchronized ManagerSuperCardToast getInstance() {\n\n if (mManagerSuperCardToast != null) {\n\n return mManagerSuperCardToast;\n\n } else {\n\n mManagerSuperCardToast = new ManagerSuperCardToast();\n\n return mManagerSuperCardToast;\n\n }\n\n }", "@Override\n public void onClick(View v)\n {\n Card.addtoCard(new CardItem(content.get(position).getName(),\n content.get(position).getDescription(),\n content.get(position).getPrice(),(long) 1,\"None\",\n content.get(position).getPrice()));\n Toast.makeText(RecycleViewAdapter.this.mContext,\"Added to Cart\",Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void addCard(PlayingCard card) {\n\t\t\n\t\t\n\t\tif(card == null)return;\n\t\tif(!(card instanceof SkatCard))return;\n\t\tif(!(card.getSuit().equals(SkatCard.suitHerz)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKaro) \n\t\t\t\t|| card.getSuit().equals(SkatCard.suitPik)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKreuz)))return;\n\t\tif(!(card.getRank() == SkatCard.rank7\n\t\t\t\t|| card.getRank() == SkatCard.rank8\n\t\t\t\t|| card.getRank() == SkatCard.rank9\n\t\t\t\t|| card.getRank() == SkatCard.rank10\n\t\t\t\t|| card.getRank() == SkatCard.rankBube\n\t\t\t\t|| card.getRank() == SkatCard.rankDame\n\t\t\t\t|| card.getRank() == SkatCard.rankKoenig\n\t\t\t\t|| card.getRank() == SkatCard.rankAss))return;\n\t\tif(getCount() >= kartenAnzahl)return;\n\t\tfor(int i = 0; i < getCount(); i++) {\n\t\t\tif(card.compareTo(aktuellesDeck[i]) == 0)return;\n\t\t}\n\t\t\n\t\t/*\n\t\t * eigentliches addCard\n\t\t */\n\t\taktuellesDeck[getCount()] = card;\n\t\tcount++;\n\t}", "private void push( Card card ) {\r\n undoStack.add( card );\r\n }", "@Override\n public void add(Fish object) {\n list.add(object);//adds the Fish to the list\n Log.d(\"Adapter\",\"added\");\n }", "@Override\n public void add(ChatMessage object) {\n chatMessageList.add(object);\n super.add(object);\n }", "public CardView addCard(Card card) {\n return addCard(card, false);\n\n }", "public void addToTop(Card card) {\n downStack.add(0, card);\n }", "public void addCard(Card c){\n cards.add(c);\n }", "public void addCard(Card card) {\n\t\tthis.content.add(card);\n\t}", "public void addCard(Card card){\n\t\tthis.pile.add(0, card);\n\t}", "public void addCard(Card c)\n {\n cards.add(c);\n }", "private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }", "protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}", "@Override\n\tpublic void insertCard(PlayingCard card, int position) {\n\t\t\n\t\t\n\t\tif(card != null && card instanceof SkatCard) {\n\t\t\tif(card.getSuit().equals(SkatCard.suitHerz)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKaro) \n\t\t\t\t|| card.getSuit().equals(SkatCard.suitPik)\n\t\t\t\t|| card.getSuit().equals(SkatCard.suitKreuz)){\n\t\t\t\t\n\t\t\t\tif(card.getRank() == SkatCard.rank7\n\t\t\t\t\t|| card.getRank() == SkatCard.rank8\n\t\t\t\t\t|| card.getRank() == SkatCard.rank9\n\t\t\t\t\t|| card.getRank() == SkatCard.rank10\n\t\t\t\t\t|| card.getRank() == SkatCard.rankBube\n\t\t\t\t\t|| card.getRank() == SkatCard.rankDame\n\t\t\t\t\t|| card.getRank() == SkatCard.rankKoenig\n\t\t\t\t\t|| card.getRank() == SkatCard.rankAss) {\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < getCount(); i++) {\n\t\t\t\t\t\tif(card.compareTo(aktuellesDeck[i]) == 0){\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\tif(position - 1 < kartenAnzahl && position > 0 && getCount() < kartenAnzahl) {\n\t\t\t\t\t\t\tfor(int i = getCount() - 1; i >= position - 1; i--) {\n\t\t\t\t\t\t\t\taktuellesDeck[i+1] = new SkatCard(aktuellesDeck[i].getSuit(), aktuellesDeck[i].getRank());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taktuellesDeck[position - 1] = new SkatCard(card.getSuit(), card.getRank());\n\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t}else System.out.println(\"Bitte Position überprüfen\");\n\t\t\t\t}else {System.out.println(\"falscher Wert\");}\t\n\t\t\t}else {System.out.println(\"falsche Farbe\");}\n\t\t}else {System.out.println(\"Karte null oder keine SkatKarte\");}\n}", "protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}", "public void addCard(Card card)\n\t{\n\t\t\n\t\t// Add the new Card to the list\n\t\tcards.add(card);\n\t\t\n\t\t// Remove and re-add all cards\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "public void addCard(Card card) {\r\n\t\tcards.add(card);\r\n\t}", "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/* */ }", "public void add(Card card) {\n this.cards.add(card);\n }", "public Card push(Card card)\n {\n if (card != null)\n {\n cards.add(card);\n card.setBounds(0, 0, CARD_WIDTH, CARD_HEIGHT);\n add(card, 0);\n }\n \n return card;\n }", "private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }", "public void toast(String toast) {\n\t\t// TODO Auto-generated method stub\n\t\t Toast toast1 = Toast.makeText(getApplicationContext(), toast, \n Toast.LENGTH_LONG); \n\t\t toast1.setDuration(1);\n\t\t toast1.show();\n\t\t \n\t}", "public void push(Card newCard)\n\t{\n\t\tcard.add(newCard);\n\t}", "@Override\n\tpublic boolean addCard(UnoCard card){\n\t\treturn this.cardList.add(card);\n\t}", "public boolean insertShow(Show show){\n return super.add(show);\n }", "public void addStreamItem(StreamBean streamBean) {\n\t\tstreamList.add(streamBean.getDisplayName());\n\t\tmapStream.put(streamBean.getDisplayName(), streamBean);\n\t\tstreamListAdapter.notifyDataSetChanged();\n\t}", "public void AddCard(Card card) {\n mCard[mCardCount++] = card;\n SetCardPosition(mCardCount - 1);\n }", "LinkedList<SuperCardToast> getList() {\n\n return mList;\n\n }", "@Override\n public void fireBullet(ArrayList<ScreenObject> level) {\n level.add(new ShipBullet(position.x, position.y, 8, 8, direction));\n }", "protected void toast() {\n }", "public void addCard(Card e) {\n\t\tthis.deck.add((T) e);\n\t}", "public void addCard(Card card) {\n myCards.add(card);\n cardNumber = myCards.size();// reset the number of cards\n }", "private void addCard(){\n WebDriverHelper.clickElement(addCard);\n }", "public void addCard(Card card) {\r\n\t\tthis.cards.add(card);\r\n\t}", "public void addCard(Card card) {\n this.deck.push(card);\n }", "public void onToast (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tdoToast ();\r\n\t}", "private void addItem() {\n\t\tString message = edtMessage.getText().toString();\n\t\t// build the human\n\t\tHuman hum = new Human(message, humans.size());\n\t\t// 1° method\n\t\tarrayAdapter.add(hum);\n\t\t// 2° method\n\t\t// messages.add(message);\n\t\t// arrayAdapter.notifyDataSetChanged();\n\t\t// and flush\n\t\tedtMessage.setText(\"\");\n\t}", "public void add(Character object) {\n characterList.add(object);\n super.add(object);\n }", "public void addCard(Card cardToAdd) {\n storageCards.add(cardToAdd);\n }", "public void addPatty() {\n\t\tMyStack newBurger = new MyStack();\n\t\tif (pattyCount < MAX_PATTY) {\n\t\t\twhile (myBurger.size() != 0) {\n\t\t\t\tString top = (String) myBurger.peek();\n\t\t\t\tif (pattyCount > 0) {\n\t\t\t\t\tif (top.equals(\"Cheddar\") || top.equals(\"Mozzarella\") || top.equals(\"Pepperjack\")\t\n\t\t\t\t\t\t\t|| top.equals(\"Beef\") || top.equals(\"Chicken\") || top.equals(\"Veggie\")) {\t\n\t\t\t\t\t\tnewBurger.push(\"Beef\");\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tString ingredient = (String) myBurger.pop();\t\t\t\t\t\n\t\t\t\t\t\tnewBurger.push(ingredient);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tbreak;\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\tString ingredient = (String) myBurger.pop();\t\t\t\t\t\t\n\t\t\t\t\tnewBurger.push(ingredient);\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t} else if (pattyCount == 0) {\n\t\t\t\t\tif (top.equals(\"Mushrooms\") || top.equals(\"Mustard\") || top.equals(\"Ketchup\")\n\t\t\t\t\t\t\t|| top.equals(\"Bottom Bun\")) {\n\t\t\t\t\t\tnewBurger.push(\"Beef\");\n\t\t\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\t\t\tnewBurger.push(ingredient);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} \n\t\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\t\tnewBurger.push(ingredient);\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (myBurger.size() != 0) {\n\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\tnewBurger.push(ingredient);\n\t\t\t}\n\t\t\twhile (newBurger.size() != 0) {\n\t\t\t\tString ingredient = (String) newBurger.pop();\n\t\t\t\tmyBurger.push(ingredient);\n\t\t\t}\n\t\t\tpattyCount++;\n\t\t} else {\n\t\t\tSystem.out.println(\"cant add anymore patties\");\n\t\t}\n\t}", "public void add(message contact) {\n chats.add(contact);\n notifyItemChanged(chats.size() - 1);\n }", "public static void addChat($_Abstruct_Value_Item_Main_Chat abstruct_value_item_main_chat) {\n if (abstruct_value_item_main_chat instanceof $_Value_Item_Main_Chat) {\n main_chat_fragment.rooms.add(abstruct_value_item_main_chat);\n recycle_view_main_chat.addItemDecoration(new DividerItemDecoration(SecondActivity.context,\n DividerItemDecoration.VERTICAL));\n main_chat_fragment.recycleAdapter.notifyDataSetChanged();\n List<$_Message> list = new ArrayList();\n MainActivity.allMessages.put(abstruct_value_item_main_chat.getEmail(), new Pair<>(new $_Recycle_View_Room_Chat_Adapter(list, FourActivity.context), list));\n //MainActivity.allMessages.put(value_item_main_chat.getEmail(),new ArrayList<>());\n } else {\n main_chat_fragment.rooms.add(abstruct_value_item_main_chat);\n recycle_view_main_chat.addItemDecoration(new DividerItemDecoration(SecondActivity.context,\n DividerItemDecoration.VERTICAL));\n main_chat_fragment.recycleAdapter.notifyDataSetChanged();\n List<$_Message> list = new ArrayList();\n System.out.println(\"EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE === \" + abstruct_value_item_main_chat.getEmail());\n MainActivity.allMessages.put(abstruct_value_item_main_chat.getEmail(), new Pair<>(new $_Recycle_View_Room_Chat_Adapter(list, FourActivity.context), list));\n //MainActivity.allMessages.put(value_item_main_chat.getEmail(),new ArrayList<>());\n }\n\n }", "public static void addElementWildCardSuper( List < ? super Dog> dogs){\n dogs.add(new Kangal());\n dogs.add(new Dog());\n //dogs.add(new Animal());\n }", "@Nullable\n ItemStack onInsert(ItemStack container);", "public SafetyPile(ArrayList<Card> list){\r\n super();\r\n this.cards.addAll(list);\r\n }", "@Override\n public void onClick(View v) {\n boolean exists = false;\n\n //check for duplicates\n for (int i = 0; i < stack.size(); i++)\n {\n //System.out.println(\"EQUALS \"+ stack.get(i).equals(newCard));\n if (stack.get(i).equals(card))\n {\n exists = true;\n }\n }\n if (isAddable(card, middleCard))\n {\n if (!exists) {\n stack.add(card);\n /*if (!initialized) {\n yCoordinate = button.getY();\n System.out.println(\"HOW many times initialized\");\n initialized = true;\n }*/\n button.setY(button.getY() - 20);\n //System.out.println(\"Y COORDINATE IS \"+ button.getY());\n }\n }\n else\n {\n Toast.makeText(NewGame.this, \"Cannot pick this card. Try another\", Toast.LENGTH_SHORT).show();\n }\n }", "public void add(food entry)\n\t{\n\t\titems.add(entry);\n\t\t//updates isChanged to show changes\n\t\tisChanged = true;\n\t}", "public void showCard()\n {\n ArrayList<Card> superCards = super.removeCards();\n super.addCard(hiddenCard);\n super.addCards(superCards.subList(1, superCards.size()));\n hidden = false;\n }", "public void addCardToHand(final Card card) {\n\t\tcahActivity.runOnUiThread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tcahActivity.addCardToHand(card);\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onItemAdded(Object toAdd) {\n if(toAdd instanceof SpotifyItem)\n return;\n\n //Reflect changes in the drink list\n DrinkInfo item = (DrinkInfo)toAdd;\n Log.d(TAG, \"Array size = \" + mDrinkInfos.size());\n mDrinkInfos.add(mDrinkInfos.size(), item);\n mDrinkQueueAdapter.notifyDataSetChanged();\n Log.d(TAG, \"Added song: \" + item.getDrinkName());\n }", "private void showErrorToast() {\n }", "public void addSuperType(TypeReference superType) {\n\t\tif (superList == null) superList = new ArrayList<TypeReference>();\n\t\tsuperList.add(superType);\n\t}", "public void updateCardList(List<Entry> activityFeed) {\n\n List<Entry> newEntrytoAddList = new ArrayList<>();\n List<Entry> entriesToRemove = new ArrayList<>();\n\n //check if it is first run or refreshing list\n\n\n if (messagesHistory != null) {\n //remove deleted projects\n for (Entry entry : messagesHistory) {\n boolean stillExist = false;\n for (Entry entryFeed : activityFeed) {\n\n if (Objects.equals(entryFeed.getUpdated(), entry.getUpdated())) {\n stillExist = true;\n }\n }\n if (!stillExist) {\n entriesToRemove.add(entry);\n }\n }\n\n //add only new project\n for (Entry newEntry : activityFeed) {\n boolean duplicate = false;\n for (Entry currentEntry : messagesHistory) {\n if (Objects.equals(currentEntry.getUpdated(), newEntry.getUpdated())) {\n duplicate = true;\n }\n }\n if (!duplicate) {\n newEntrytoAddList.add(newEntry);\n }\n }\n\n\n //delete entries\n for (Entry toDelete : entriesToRemove) {\n cardView.remove(toDelete);\n }\n //add new entries\n for (Entry item : newEntrytoAddList) {\n cardView.add(0, item);\n new Handler().postDelayed(() -> {\n cardView.notifyInserted(0);\n rv.scrollToPosition(0);\n }, 500);\n\n }\n\n\n }\n boolean toNotify = false;\n if (cardView.getItemCount() == 0) {\n\n toNotify = true;\n messages.addAll(activityFeed);\n }\n\n //save cards history for later comparing if old entry were deleted or new were added\n messagesHistory = new ArrayList<>(messages);\n Handler handler = new Handler();\n boolean finalToNotify = toNotify;\n handler.postDelayed(() -> {\n if (finalToNotify) {\n cardView.notifyDataSetChanged();\n }\n AnimationUtil.stopRefreshAnimation(swipeRefreshLayout);\n }, 1000);\n }", "public void createVrToast( View toastView )\r\n\t{\n\t\ttoastView.measure(0, 0);\r\n\t\ttoastView.layout(0, 0, toastView.getMeasuredWidth(),\r\n\t\t\t\ttoastView.getMeasuredHeight());\r\n\r\n\t\tLog.v(TAG,\r\n\t\t\t\t\"toast size:\" + toastView.getWidth() + \"x\"\r\n\t\t\t\t\t\t+ toastView.getHeight());\r\n\t\ttoastTexture.setDefaultBufferSize(toastView.getWidth(),\r\n\t\t\t\ttoastView.getHeight());\r\n\t\ttry {\r\n\t\t\tCanvas canvas = toastSurface.lockCanvas(null);\r\n\t\t\ttoastView.draw(canvas);\r\n\t\t\ttoastSurface.unlockCanvasAndPost(canvas);\r\n\t\t} catch (Exception t) {\r\n\t\t\tLog.e(TAG, \"lockCanvas threw exception\");\r\n\t\t}\r\n\r\n\t\tnativePopup(appPtr, toastView.getWidth(), toastView.getHeight(), 7.0f);\r\n\t}", "private void createSnack() {\n }", "public void addTile(Tile tile) {\n ownedTiles.add(tile);\n }", "public void addCard(PlayingCard aCard);", "public void add(final TrayIcon icon) {\n if (SystemTray.isSupported()) {\n try {\n tray.add(icon);\n } catch (final Exception e) {\n }\n }\n }", "public static void addElementWildCard(List<? extends SuperAnimal> animals){\n animals.add(null);\n }", "public void addCard(Card c)\n {\n hand.add(c);\n }", "void onMessageToast(String string);", "private void addGeneralPatty(String s) {\n\t\tMyStack newBurger = new MyStack();\n\t\tif (pattyCount < MAX_PATTY) {\n\t\t\twhile (myBurger.size() != 0) {\n\t\t\t\tString top = (String) myBurger.peek();\n\t\t\t\tif (pattyCount > 0) {\n\t\t\t\t\tif (top.equals(\"Cheddar\") || top.equals(\"Mozzarella\") || top.equals(\"Pepperjack\")\t\n\t\t\t\t\t\t\t|| top.equals(\"Beef\") || top.equals(\"Chicken\") || top.equals(\"Veggie\")) {\t\n\t\t\t\t\t\tif (s.equals(\"Beef\")) {\n\t\t\t\t\t\t\tnewBurger.push(\"Beef\");\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString ingredient = (String) myBurger.pop();\t\t\t\t\t\n\t\t\t\t\t\t\tnewBurger.push(ingredient);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (s.equals(\"Chicken\")) {\n\t\t\t\t\t\t\tnewBurger.push(\"Chicken\");\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString ingredient = (String) myBurger.pop();\t\t\t\t\t\n\t\t\t\t\t\t\tnewBurger.push(ingredient);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (s.equals(\"Veggie\")) {\n\t\t\t\t\t\t\tnewBurger.push(\"Veggie\");\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString ingredient = (String) myBurger.pop();\t\t\t\t\t\n\t\t\t\t\t\t\tnewBurger.push(ingredient);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbreak;\n\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\tString ingredient = (String) myBurger.pop();\t\t\t\t\t\t\n\t\t\t\t\tnewBurger.push(ingredient);\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t} else if (pattyCount == 0) {\n\t\t\t\t\tif (top.equals(\"Mushrooms\") || top.equals(\"Mustard\") || top.equals(\"Ketchup\")\n\t\t\t\t\t\t\t|| top.equals(\"Bottom Bun\")) {\n\t\t\t\t\t\tif (s.equals(\"Beef\")) {\n\t\t\t\t\t\t\tnewBurger.push(\"Beef\");\n\t\t\t\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\t\t\t\tnewBurger.push(ingredient);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} if (s.equals(\"Chicken\")) {\n\t\t\t\t\t\t\tnewBurger.push(\"Chicken\");\n\t\t\t\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\t\t\t\tnewBurger.push(ingredient);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} if (s.equals(\"Veggie\")) {\n\t\t\t\t\t\t\tnewBurger.push(\"Veggie\");\n\t\t\t\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\t\t\t\tnewBurger.push(ingredient);\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\tString ingredient = (String) myBurger.pop();\n\t\t\t\t\tnewBurger.push(ingredient);\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (myBurger.size() != 0) {\n\t\t\t\tString ingredient = (String) myBurger.pop();\n\t\t\t\tnewBurger.push(ingredient);\n\t\t\t}\n\t\t\twhile (newBurger.size() != 0) {\n\t\t\t\tString ingredient = (String) newBurger.pop();\n\t\t\t\tmyBurger.push(ingredient);\n\t\t\t}\n\t\t\tpattyCount++;\n\t\t} else {\n\t\t\tSystem.out.println(\"cant add anymore patties\");\n\t\t}\n\t}", "public void addCard(Card c) {\r\n\t\thand.add(c);\r\n\t}", "@Override\n public void addItem(P_CK t) {\n \n }", "public void add(){\n list.add(smart);\n list.add(mega);\n list.add(smartMini);\n list.add(absolute);\n\n clientsList.add(client1);\n clientsList.add(client2);\n clientsList.add(client3);\n clientsList.add(client4);\n clientsList.add(client5);\n }", "@Override\n public void instantiateCard(LayoutInflater inflaterService, ViewGroup head, final ListView list, ECCardData data) {\n final CardDataImpl cardData = (CardDataImpl) data;\n\n // Set adapter and items to current card content list\n final List<String> listItems = cardData.getListItems();\n final CardListItemAdapter listItemAdapter = new CardListItemAdapter(getApplicationContext(), listItems);\n list.setAdapter(listItemAdapter);\n // Also some visual tuning can be done here\n list.setBackgroundColor(Color.WHITE);\n View gradient = new View(getApplicationContext());\n gradient.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT, AbsListView.LayoutParams.MATCH_PARENT));\n\n head.addView(gradient);\n\n // Inflate main header layout and attach it to header root view\n inflaterService.inflate(R.layout.list_item, head);\n\n TextView title = head.findViewById(R.id.list_item_text);\n title.setText(cardData.getCardTitle());\n\n\n // Card toggling by click on head element\n head.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(final View v) {\n Class z;\n String s;\n if (m == -1)\n z = LoginActivity.class;\n else\n z = ProfileActivity.class;\n if (m == -1)\n s = \"You are just one click away to REGISTER the greatest moment\";\n else\n s = \"You have already registered. Just go on and view your profile\";\n if (cardData.getCardTitle().equals(\" Win a game without ever hurting another player\")) {\n Intent i = new Intent(FrontActivity.this, EventActivity.class);\n startActivity(i);\n\n }\n if (cardData.getCardTitle().equals(s)) {\n\n Intent i = new Intent(FrontActivity.this, z);\n startActivity(i);\n }\n\n if (cardData.getCardTitle().equals(\"Everything is real... It is good to love many things\")) {\n Intent i = new Intent(FrontActivity.this, GalleryActivity.class);\n startActivity(i);\n\n }\n\n if (cardData.getCardTitle().equals(\"The Flare Gun’s currently only available to use\")) {\n Intent i = new Intent(FrontActivity.this, SponsorsActivity.class);\n startActivity(i);\n\n }\n if (cardData.getCardTitle().equals(\"I believe that prayer is our powerful contact\")) {\n Intent i = new Intent(FrontActivity.this, ContactActivity.class);\n startActivity(i);\n\n }\n if (cardData.getCardTitle().equals(\"When you start the game, you will find the map\")) {\n Intent i = new Intent(FrontActivity.this, AboutActivity.class);\n startActivity(i);\n\n }\n\n }\n });\n }", "public void addCardToPile(Card c)\r\n {\r\n pile.push(c);\r\n }", "void addFruit(Fruit item){\n\t\tfruitList.add(item);\n\t}", "private void addCard() {\n Intent intent = new Intent(this, NewCard.class);\n intent.putExtra(\"cardSetId\", cardSetId);\n startActivity(intent);\n }", "public void addChatTransport(ChatTransport chatTransport)\n {\n if (chatTransport.allowsInstantMessage()\n || chatTransport.allowsSmsMessage())\n {\n Image img = createTransportStatusImage(chatTransport);\n\n boolean isIndent = false;\n String toString = \"\";\n if (chatTransport.getResourceName() != null\n && chatTransport.isDisplayResourceOnly())\n {\n toString = chatTransport.getResourceName();\n isIndent = true;\n }\n else\n toString = \"<b>\" + chatTransport.getName() + \"</b> \"\n + ((chatTransport.getResourceName() == null)\n ? \"\"\n : chatTransport.getResourceName())\n + \" <i>(\"\n + GuiActivator.getResources()\n .getI18NString(\"service.gui.VIA\")\n + \": \"\n + chatTransport.getProtocolProvider()\n .getAccountID().getDisplayName()\n + \")</i>\";\n\n JCheckBoxMenuItem menuItem = new JCheckBoxMenuItem(\n \"<html><font size=\\\"3\\\">\"\n + toString\n + \"</font></html>\",\n new ImageIcon(img));\n\n if (isIndent)\n menuItem.setBorder(\n BorderFactory.createEmptyBorder(0, 20, 0, 0));\n\n menuItem.addActionListener(this);\n this.transportMenuItems.put(chatTransport, menuItem);\n\n buttonGroup.add(menuItem);\n this.menu.add(menuItem);\n\n updateEnableStatus();\n\n updateTransportStatus(chatTransport);\n }\n\n if(!allowsInstantMessage() && allowsSmsMessage())\n chatPanel.getChatWritePanel().setSmsSelected(true);\n else\n chatPanel.getChatWritePanel().setSmsSelected(false);\n }", "private void add( int n ) {\r\n Card card = cards.get( n );\r\n if ( !card.isFaceUp() ) {\r\n card.toggleFace();\r\n push( card );\r\n ++this.moveCount;\r\n }\r\n }", "public void fireShot() {\n\t\tVector3 position = player.getPositionVector();\n\t\tVector3 rotation = player.getRotationVector();\n\t\tVector3 scale = player.getScaleVector();\n\t\tAsteroidsLaser laser = new AsteroidsLaser(GameObject.ROOT, this, rotation.z);\n\t\tlaser.translate(position);\n\t\tlaserShots.add(laser);\n\t}", "public static void push(String c) {\n list.add(c);\n }", "private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }", "public void addToUse(int card) {\r\n\t\tthis.toUse.add(card);\r\n\t}", "public void insert(int position, Item_Data_Card data) {\n list.add(position, data);\n notifyItemInserted(position);\n }", "public abstract void addCard();", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "@SuppressLint(\"LongLogTag\")\n @Override\n public void onNext(SubcatResponse value) {\n\n if (!value.getError()) {\n\n swipe_refresh_layout.setRefreshing(false);\n\n subCatviewList.clear();\n\n try{\n\n for (int i=0;i<value.getCategoryData().size();i++){\n\n SubCatview subCatview = new SubCatview(\n value.getCategoryData().get(i).getId(),\n value.getCategoryData().get(i).getName(),\n value.getCategoryData().get(i).getImage()\n\n );\n\n subCatviewList.add(subCatview);\n\n }\n\n\n }catch (Exception ex){ex.printStackTrace();}\n\n\n\n\n// Toast.makeText(MainActivity.this, value.getErrorMsg(), Toast.LENGTH_SHORT).show();\n\n\n } else {\n\n swipe_refresh_layout.setRefreshing(false);\n\n Toast.makeText(SubcatActivity.this, value.getErrorMsg(), Toast.LENGTH_SHORT).show();\n\n\n }\n\n\n }", "public void addCard(Card card) {\n personHand.add(card);\n }", "public void SetTopTrashCard(String value){\n topCard = value;\n }", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "@Override\n public void show() {\n if (mNextView == null) {\n throw new RuntimeException(\"setView must have been called\");\n }\n\n final NotificationService service = getService();\n final ToastNotification tn = mTn;\n\n tn.mNextView = mNextView;\n service.enqueueToast(tn, tn.mDuration);\n }", "public void onFavouritesPress(View view) {\n\n favouritesDBHandler.addGame(game);\n Toast.makeText(getContext(), game.getName() + \" has been added to your favourites!\", Toast.LENGTH_SHORT).show();\n\n }", "public void insert(Card card) {\n\t\tthis.insert(card);\n\t}", "@Override\n\t\tpublic View instantiateItem(ViewGroup container, int position) {\n\t\t\tToast.makeText(getBaseContext(), \"item instantiated\", Toast.LENGTH_SHORT).show();\n\t\t\treturn list.get(position);\n\t\t}", "@Override\n public void showAddToCardMessage(ProductDto productDto) {\n showMessage(\"Товар \" + productDto.getProductName() + \" успешно добавлен в карзину\");\n }", "public void addMessage(String message, boolean toastText) {\n if (toastText) {\n BatailleNavale.getInstance().showText(message, true);\n }\n this.chat.setText(chat.getText() + \"\\n\" + message);\n this.scroller.layout();\n this.scroller.scrollTo(0, 0, 0, 0);\n }", "public Card push(Card c){\n\t\treturn super.push(c);\n\t}", "private void makeToast(String string) {\n\t\tToast.makeText(this, string, Toast.LENGTH_SHORT).show();\r\n\r\n\t}", "void showToast(String message);", "void showToast(String message);", "void addCard(Card card) {\n\t\t_hand.addCard(card);\n\t}", "@Override\n public void insertEntry(Entry entry) {\n members.add(entry);\n\n }", "public void addStorageCard(com.hps.july.persistence.StorageCard arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().addStorageCard(arg0);\n }" ]
[ "0.72963786", "0.56235296", "0.54853016", "0.5375402", "0.53362614", "0.52827764", "0.52771705", "0.5261686", "0.5169314", "0.51383257", "0.5127517", "0.50593686", "0.5038544", "0.5000101", "0.49953026", "0.49460933", "0.49337408", "0.49327976", "0.48726508", "0.48680294", "0.4851964", "0.48467296", "0.48461986", "0.48405117", "0.48192292", "0.4812723", "0.48123714", "0.48105392", "0.4787697", "0.47853437", "0.47811535", "0.47766867", "0.47757587", "0.47734842", "0.4755094", "0.474914", "0.4742715", "0.4728426", "0.4722988", "0.47202155", "0.47143173", "0.47116065", "0.47015387", "0.4695523", "0.46949565", "0.4669301", "0.4662028", "0.46565366", "0.46522582", "0.46491683", "0.46425137", "0.46393052", "0.46391124", "0.4633436", "0.46145234", "0.46123254", "0.46059287", "0.46055272", "0.4597178", "0.45910713", "0.4581185", "0.45718852", "0.4571627", "0.45707402", "0.45705184", "0.45613095", "0.45557237", "0.45554677", "0.45548773", "0.45519415", "0.45505103", "0.45501757", "0.45471677", "0.4546955", "0.45449537", "0.45429468", "0.45342338", "0.45324767", "0.4528978", "0.45265904", "0.4525952", "0.45221907", "0.45216778", "0.45201275", "0.4515344", "0.4512847", "0.45121926", "0.45099524", "0.45086196", "0.45062807", "0.4505193", "0.45049852", "0.4501469", "0.44984978", "0.44964755", "0.44909635", "0.44909635", "0.44877732", "0.44866806", "0.44851854" ]
0.894985
0
Removes a SuperCardToast from the list.
void remove(SuperCardToast superCardToast) { mList.remove(superCardToast); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void cancelAllSuperActivityToasts() {\n\n for (SuperCardToast superCardToast : mList) {\n\n if (superCardToast.isShowing()) {\n\n superCardToast.getViewGroup().removeView(\n superCardToast.getView());\n\n superCardToast.getViewGroup().invalidate();\n\n }\n\n }\n\n mList.clear();\n\n }", "void add(SuperCardToast superCardToast) {\n\n mList.add(superCardToast);\n\n }", "public void removePresentCard() {\n storageCards.remove();\n }", "public Card removeTopCard(){\n\t\treturn this.pile.remove(0);\n\t}", "private void removeCard(CardView cardView, boolean silent) {\n cardSet.removeCard(cardView.getCard());\n getChildren().remove(cardView);\n cardViews.remove(cardView);\n\n if (!silent) {\n fireEvent(cardView, CardEvent.CARD_REMOVED);\n }\n\n markValidity();\n }", "public void removeCard(UnoCard cardToRemove){\n for (UnoCard c : this.cards){\n if (c.getName().equals(cardToRemove.getName())){\n Log.d(\"Removed Card:\", c.getName());\n this.cards.remove(c);\n break;\n }\n }\n }", "void actuallyRemove() {\n /*\n * // Set the TextViews View v = mListView.getChildAt(mRemovePosition -\n * mListView.getFirstVisiblePosition()); TextView nameView =\n * (TextView)(v.findViewById(R.id.sd_name));\n * nameView.setText(R.string.add_speed_dial);\n * nameView.setEnabled(false); TextView labelView =\n * (TextView)(v.findViewById(R.id.sd_label)); labelView.setText(\"\");\n * labelView.setVisibility(View.GONE); TextView numberView =\n * (TextView)(v.findViewById(R.id.sd_number)); numberView.setText(\"\");\n * numberView.setVisibility(View.GONE); ImageView removeView =\n * (ImageView)(v.findViewById(R.id.sd_remove));\n * removeView.setVisibility(View.GONE); ImageView photoView =\n * (ImageView)(v.findViewById(R.id.sd_photo));\n * photoView.setVisibility(View.GONE); // Pref\n */\n mPrefNumState[mRemovePosition + 1] = \"\";\n mPrefMarkState[mRemovePosition + 1] = -1;\n SharedPreferences.Editor editor = mPref.edit();\n editor.putString(String.valueOf(mRemovePosition + 1), mPrefNumState[mRemovePosition + 1]);\n editor.putInt(String.valueOf(offset(mRemovePosition + 1)),\n mPrefMarkState[mRemovePosition + 1]);\n editor.apply();\n startQuery();\n }", "public void remove(int position) {\n chats.remove(position);\n curPosition = -1;\n notifyDataSetChanged();\n }", "public Card removeCard(){\n Card temp = pile[0]; //removes top card. putting placement card to avoid null pointer\n for(int i = 0; i < pilePlace; i++){ //shifts cards\n pile[i] = pile[i+1];\n }\n pilePlace--;\n return temp;\n\n }", "public void remove(Card card) {\n if (!myTurn()) {\n return;\n }\n if (handPile.contains(card)) {\n //history.add(new CardAction(card, \"Remove: \" + card.getName()));\n handPile.remove(card);\n }\n }", "@Override\n public void removeCard(int i) {\n this.cards.remove(i);\n }", "public Card removeFirstCard()\n {\n return cards.remove(0);\n }", "public void remove() {\n btRemove().push();\n }", "public void remove() {\n btRemove().push();\n }", "public void removeChild(TaskStack stack) {\n super.removeChild((TaskStackContainers) stack);\n removeStackReferenceIfNeeded(stack);\n }", "public void removePrevCardList(){\n for (int i = 0; i < playerCardList.getPlayerCardListSize(); i++){\n playerCardPuzzle.getChildren().remove(playerCardList.getPlayerCardByNo(i));\n }\n }", "public void remove(Card card) {\r\n\t\tcards.remove(card);\r\n\t}", "public void remove() {\n\t\tstopFloating();\t\n\t\tPacketHandler.toggleRedTint(player, false);\n\t\tplayer.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 30, 1));\n\t\tplayer.stopSound(Sound.MUSIC_DISC_CHIRP);\n\t\tcleanTasks();\n\t\tactiveScenarios.remove(player.getUniqueId());\n\t}", "public void remove() {\r\n super.remove();\r\n }", "@Override\n\tpublic void pop() {\n\t\tlist.removeFirst();\n\t}", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\n super.remove();\n }", "public void remove() {\r\n setRemovable(true);\r\n }", "Set<Card> remove();", "@Override\n\tpublic void onRemove() {\n\n\t}", "public void removeCard(int index) {\n cards.remove(index);\n }", "public void undoRemove() {\n // Makes the removal dialogue invisible.\n mRemovalDialogue.setAlpha(0.0f);\n mRemovalDialogue.setVisibility(GONE);\n\n // Animates back the favorite contact card.\n final ObjectAnimator fadeIn = ObjectAnimator.ofFloat(mFavoriteContactCard, \"alpha\", 1.f).\n setDuration(mAnimationDuration);\n final ObjectAnimator moveBack = ObjectAnimator.ofFloat(mFavoriteContactCard, \"translationX\",\n 0.f).setDuration(mAnimationDuration);\n\n final AnimatorSet animSet = new AnimatorSet();\n\n animSet.playTogether(fadeIn, moveBack);\n\n animSet.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationStart(Animator animation) {\n mParentRow.setHasTransientState(true);\n }\n @Override\n public void onAnimationEnd(Animator animation) {\n if (mParentRow.getItemViewType() == ViewTypes.FREQUENT) {\n SwipeHelper.setSwipeable(mParentRow, true);\n } else {\n SwipeHelper.setSwipeable(PhoneFavoriteTileView.this, true);\n }\n mParentRow.setHasTransientState(false);\n }\n });\n animSet.start();\n // Signals the PhoneFavoritesTileAdapter to undo the potential delete.\n mParentRow.getTileAdapter().undoPotentialRemoveEntryIndex();\n }", "public ItemStack remove(int debug1) {\n/* 104 */ return this.container.removeItem(this.slot, debug1);\n/* */ }", "public boolean removeCard(HomeCellSpider x, Card top) {\n \tpiles= x.piles;\n \tif(piles.get(piles.size()-1) == top) {//check to see if top is really the top card of the homecellpile\n \t\tpiles.remove(piles.size()-1);//if so remove it and decrease the overall cardCounter\n \tcardCounter--;\n \treturn true;\n \t}else {\n \t\treturn false; // only top card can be removed\n \t}\n }", "public void removeCards() {\n\t\tthis.content.removeAll(this.content);\n\t}", "public void remove() {\n\n }", "public void remove () {}", "public void remove() {\n/* 1379 */ super.remove();\n/* 1380 */ this.inventoryMenu.removed(this);\n/* 1381 */ if (this.containerMenu != null) {\n/* 1382 */ this.containerMenu.removed(this);\n/* */ }\n/* */ }", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public abstract BossBar removePlayer(UUID uuid);", "@Override\n public void remove() {\n }", "public void discard(Card card) {\n discardPile.add(card);\n }", "public Card remove() {\n return (this.cards.size() > 0) ? this.cards.remove(0) : null;\n }", "private void popupRemoveTrap() {\n\n new AlertDialog.Builder(this)\n .setTitle(\"Remove \" + trap.getName())\n .setMessage(\"Do you really want to remove \" + trap.getName() + \"?\")\n .setIcon(android.R.drawable.ic_dialog_alert)\n .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n\n Auth.getInstance().removeDeviceTopics(trap.getId(), new Runnable() {\n @Override\n public void run() {\n MqttClient.getInstance().connect();\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n remove = true;\n finish();\n }\n });\n }\n });\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n }).show();\n }", "@Override\r\n\tpublic void onRemove() {\n\r\n\t}", "public void removeTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getRight() == a_tile.getRight() && playerHand.get(i).getLeft() == a_tile.getLeft()){\n playerHand.remove(i);\n break;\n }\n }\n }", "public void removeChatItem(IChatWindow chatWindow) {\n Set<View> viewSet = mData.keySet();\n Object[] viewList = viewSet.toArray();\n for (int i = 0; i < viewList.length; i++) {\n View view = (View) viewList[i];\n if (view != null) {\n Object obj = mData.get(view);\n if (obj instanceof ChatsStruct) {\n ChatsStruct chat = (ChatsStruct) obj;\n if (chat.getChatMap() == chatWindow) {\n mData.remove(view);\n if (mData.size() == 0) {\n TextView noChatView = (TextView) mChatContainer\n .findViewById(R.id.no_chat);\n if (noChatView != null) {\n noChatView.setVisibility(View.VISIBLE);\n } else {\n Logger.d(TAG,\n \"removeChatItem(), mChatContainer have chat child view!\");\n }\n }\n mChatContainer.removeView(view);\n return;\n }\n } else {\n Logger.d(TAG,\n \"Current obj data is not a ChatsStruct instance\");\n }\n } else {\n Logger.d(TAG, \"Current view retrieved is null\");\n }\n }\n }", "@Override\n\tpublic void remove() { }", "private void removeCard() {\n\t\tint sic_idHolder; // declares sic_idHolder\n\t\t\n\t\tSystem.out.println(\"Please enter the SIC ID number you'd like to remove:\");\n\t\tsic_idHolder = scan.nextInt(); // prompts user to input sic_idHolder\n\t\tscan.nextLine();\n\t\t\n\t\tinventoryObject.removeStockIndexCard(sic_idHolder); //calls removeStockIndexCard from InventoryManagement\n\t\tgetUserInfo();\n\t}", "@Override\r\n\tpublic void removeTempSeat(Seat seat) {\n\t\t\r\n\t}", "public void remove(Timesheet ts) {\n\t //attach category\n\t \tSystem.out.println(\"Remove in timehseet\");\n\t ts = find(ts.getTimesheetID());\n\t em.remove(ts);\n\t }", "public String removePlayer(SocketThread _st) {\n try {\n Element root = docPlayer.getRootElement();\n Element node;\n String xmlId;\n\n for (int i = 0; i < root.getChildren(\"char\").size(); i++) {\n node = (Element) (root.getChildren(\"char\").get(i));\n xmlId = node.getAttributeValue(\"id\");\n if (_st.id.equals(xmlId)) {\n docPlayer.getRootElement().getChildren().remove(i);\n }\n }\n } catch (Exception e) {\n System.out.println(\"Probleme dans Isoplayer : removePlayer\");\n System.out.println(e);\n }\n return null;\n }", "public Npc removeTopTouchedNpc(float touchX, float touchY) {\n\t\tSystem.out.println(\"RemoveTop\");\n\t\tNpc touchedNpc = getTopTouched(touchX, touchY);\n\t\tif (touchedNpc != null) {\n\t\t\tremove(touchedNpc);\n\t\t\treturn touchedNpc;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public final void remove () {\r\n }", "@Override\n public void remove() {\n }", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void findAndRemoveCard(Card c){\n\t\tboolean b = myCards.remove(c);\n//\t\tSystem.out.println(\"mycards size\" + myCards.size() + \"and removed was \" + b);\n\t\treturn;\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "public abstract void onRemove();", "@Override\n\tpublic void removeByUuid(String uuid) throws SystemException {\n\t\tfor (TvShow tvShow : findByUuid(uuid, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}", "public void remove(Card card)\n {\n deck.remove(card);\n //Add listener to check if the deck is empty (then refill it) or not\n }", "public static void hideToast() {\n if (null != toast) {\n toast.cancel();\n }\n }", "void remove(int position) {\n checkouts.remove(position);\n notifyItemRemoved(position);\n }", "@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}", "public void remove() {\n super.remove();\n if (this.caughtEntity != null) {\n this.caughtEntity.noClip = false;\n }\n if (this.angler != null) {\n this.angler.fishingBobber = null;\n this.angler.noClip = false;\n }\n if(this.rod.getItem() == Items.ITEM_GRAB_HOOK){\n this.rod.getOrCreateTag().putBoolean(\"cast\", false);\n }\n }", "public void remove(){\n }", "private void removeTimeFromList(int position) {\n final int index = position;\n AlertDialog.Builder alert = new AlertDialog.Builder(\n AddMedicationActivity.this);\n \n alert.setTitle(\"Delete\");\n alert.setMessage(\"Do you want delete this item?\");\n alert.setNegativeButton(\"YES\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TOD O Auto-generated method stub\n \n // main code on after clicking yes\n //list.remove(deletePosition);\n //adapter.notifyDataSetChanged();\n //adapter.notifyDataSetInvalidated();\n \t\tif (index == 4) \n \t\t\tcurrentTimes[4] = \" \";\n \t\telse {\n \t\t\tfor (int a = index + 1; a <= 4; a++)\n {\n \t\t\t\tcurrentTimes[a-1] = currentTimes[a];\n }\n \t\t\tcurrentTimes[4] = \" \";\n \t\t}\n \n \n timeCount--;\n setTimes();\n \n \n }\n });\n alert.setPositiveButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n dialog.dismiss();\n }\n });\n \n alert.show();\n \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 }", "public void remove() {\r\n //\r\n }", "public void removePapalCard(int i){\n this.gameboardPanel.removePapalCard(i);\n }", "private void removeFromSavedScheduleList() {\n if (!yesNoQuestion(\"This will print every schedule, are you sure? \")) {\n return;\n }\n\n showAllSchedules(scheduleList.getScheduleList());\n\n System.out.println(\"What is the number of the one you want to remove?\");\n int removeIndex = obtainIntSafely(1, scheduleList.getScheduleList().size(), \"Number out of bounds\");\n scheduleList.getScheduleList().remove(removeIndex - 1);\n System.out.println(\"Removed!\");\n }", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "public void removeCard(CardView cardView) {\n removeCard(cardView, false);\n }", "public void removeFromSilkBag() {\r\n silkBag.remove(0);\r\n }", "@Override\r\n\tpublic void removeByUuid(String uuid) {\r\n\t\tfor (Share share : findByUuid(uuid, QueryUtil.ALL_POS,\r\n\t\t\t\tQueryUtil.ALL_POS, null)) {\r\n\t\t\tremove(share);\r\n\t\t}\r\n\t}", "public Card pop(){\r\n Card temp = cards.get(0);\r\n cards.remove(0);\r\n deckSize--;\r\n return temp;\r\n }", "public void removeIngre(Button btn, RecipeTM tm, ObservableList<RecipeTM> obList) {\r\n btn.setOnAction((e) -> {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Warning\");\r\n alert.setContentText(\"Are you sure ?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n try {\r\n deleteResIngre(tm.getIngreID(), cmbCakeID.getSelectionModel().getSelectedItem());\r\n } catch (SQLException | ClassNotFoundException throwables) {\r\n throwables.printStackTrace();\r\n }\r\n obList.remove(tm);\r\n tblRecipe.refresh();\r\n }\r\n });\r\n }", "public void removeSuggestion(Suggestion suggestion) {\n\n chatSuggestions.remove(suggestion);\n }", "public void removeCards(int i) {\n while (i > 0) {\n removeCard(cardViews.get(0));\n i--;\n }\n }", "public void remove(StatusBarNotification sbn, boolean active) {\n this.ntfcn_items.remove(sbn, active);\n }", "public void remove() {\n if (SystemTray.isSupported()) {\n try {\n tray.remove(Tray.sysTray);\n } catch (final Exception e) {\n }\n }\n }", "public void removePlayer(Nimsys nimSys,ArrayList<Player> list,Scanner keyboard) {\r\n\t\tboolean flag = false;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\t\r\n\t\tif(nimSys.commands.length==1){\r\n\t\t\tSystem.out.println(\"Are you sure you want to remove all players? (y/n)\");\r\n\t\t\tString next = keyboard.next();\r\n\t\t\tkeyboard.nextLine();\r\n\t\t\tif(next.equals(\"y\"))\r\n\t\t\t\tlist.clear();\t\r\n\t\t}\r\n\t\t\t\r\n\t\telse{\r\n\t\t\twhile (aa.hasNext()) {\r\n\t\t\t\tPlayer in = aa.next();\r\n\t\t\t\tif(in.getUserName().equals(nimSys.commands[1])){\r\n\t\t\t\t\tlist.remove(in);\r\n\t\t\t\t\tflag = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(flag == false)\r\n\t\t\t\tSystem.out.println(\"The player does not exist.\");\r\n\t\t}\r\n\t\t\r\n\t}", "public void RemoveCardFromHuman(int value){\n handHuman.remove(value);\n }" ]
[ "0.70280594", "0.6489918", "0.5894141", "0.58620095", "0.57664853", "0.57585084", "0.567299", "0.5663511", "0.5620086", "0.5608361", "0.55951834", "0.55754757", "0.55692637", "0.55692637", "0.5530288", "0.5524683", "0.54812074", "0.5480121", "0.54667926", "0.5460887", "0.54503894", "0.54503894", "0.54503894", "0.54503894", "0.54503894", "0.54503894", "0.54503894", "0.5432852", "0.54047465", "0.53771126", "0.53749686", "0.5369491", "0.53679067", "0.53499484", "0.53397816", "0.5338111", "0.5337125", "0.533609", "0.5330242", "0.5330242", "0.5330242", "0.5330242", "0.5330242", "0.5305524", "0.52944624", "0.5290402", "0.52846736", "0.52845013", "0.527818", "0.5271657", "0.52575004", "0.52555895", "0.5253962", "0.525371", "0.5247945", "0.5219062", "0.52189153", "0.52181107", "0.5216048", "0.5215544", "0.5214466", "0.5214466", "0.5214268", "0.5214268", "0.5214268", "0.52105665", "0.5191789", "0.5191789", "0.5191494", "0.51741475", "0.51708996", "0.5169099", "0.51666474", "0.51653224", "0.5150833", "0.5141542", "0.5140689", "0.513894", "0.51301366", "0.51205623", "0.5120146", "0.51125646", "0.51125646", "0.51125646", "0.51125646", "0.51125646", "0.51125646", "0.51125646", "0.51125646", "0.511235", "0.5108076", "0.5107104", "0.51069474", "0.51058483", "0.5105524", "0.51012546", "0.5099675", "0.50898165", "0.508596", "0.50850534" ]
0.87866336
0
Removes all SuperCardToasts and clears the list
void cancelAllSuperActivityToasts() { for (SuperCardToast superCardToast : mList) { if (superCardToast.isShowing()) { superCardToast.getViewGroup().removeView( superCardToast.getView()); superCardToast.getViewGroup().invalidate(); } } mList.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void remove(SuperCardToast superCardToast) {\n\n mList.remove(superCardToast);\n\n }", "public void clearAllStacks() {\n\t\tfor (CardStack stack : cardStacks) {\n\t\t\tstack.clearCards();\n\t\t}\n\t}", "public void clearVrToasts() {\r\n\t\tLog.v(TAG, \"clearVrToasts, calling nativePopup\" );\r\n\t\tnativePopup(appPtr, 0, 0, -1.0f);\r\n\t}", "public CardCollection destroyAllCards() ;", "public void deleteAllCards()\n\t{\n\t\tcards.clear();\n\t\t\n\t\t// Update the views\n\t\tsyncCardsWithViews();\n\t\t\n\t}", "void removeAll(){\n\t\tmessages.clear();\n\t}", "private void clearTable() {\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t}", "public void removeCards() {\n\t\tthis.content.removeAll(this.content);\n\t}", "public void reset() {\r\n setGiftCardList(new ArrayList());\r\n for (int i = 0; i < getMaxNumGiftCards(); i++) {\r\n addBlankGiftCard(getGiftCardList());\r\n }\r\n \r\n setGiftCardTempList(new ArrayList());\r\n for (int i = 0; i < getMaxNumGiftCards(); i++) {\r\n addBlankGiftCard(getGiftCardTempList());\r\n }\r\n }", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (TvShow tvShow : findAll()) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}", "public void setClearCards(String type) {\r\n int currentSize = getGiftCardList().size();\r\n \r\n setGiftCardList(new ArrayList());\r\n for (int i = 0; i < currentSize; i++) {\r\n addBlankGiftCard(getGiftCardList());\r\n }\r\n \r\n setGiftCardTempList(new ArrayList());\r\n for (int i = 0; i < getMaxNumGiftCards(); i++) {\r\n addBlankGiftCard(getGiftCardTempList());\r\n }\r\n }", "public void clearAll();", "public void clearAll();", "public static void clearUnSatsCache(){\n\n unsats = getUnSats();\n unsats.clear();\n }", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "void clear_missiles() {\n // Remove ship missiles\n ship.missiles.clear();\n for (ImageView ship_missile_image_view : ship_missile_image_views) {\n game_pane.getChildren().remove(ship_missile_image_view);\n }\n ship_missile_image_views.clear();\n\n // Remove alien missiles\n Alien.missiles.clear();\n for (ImageView alien_missile_image_view : alien_missile_image_views) {\n game_pane.getChildren().remove(alien_missile_image_view);\n }\n alien_missile_image_views.clear();\n }", "public void clear(){\r\n cards.clear();\r\n deckSize = 0;\r\n }", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "public void clearScreen()\n {\n showText(\"\", 150, 175);\n List objects = getObjects(null);\n if(objects != null)\n {\n removeObjects(objects);\n }\n }", "public void clear(){\r\n BarsList.clear();\r\n }", "public void removeAll() {\n\t\tsynchronized (mNpcs) {\n\t\t\tmNpcs = Collections.synchronizedList(new ArrayList<Npc>());\n\t\t\tmDemonCount = 0;\n\t\t\tmHumanCount = 0;\n\t\t}\n\t}", "void clearAll();", "void clearAll();", "public void clear()\n {\n dessertList.clear();\n }", "public static void clearAllTileTypes(){\n\t\tTileType.allTileTypes.clear();\n\t}", "public void removeAllScreens() {\n Gdx.app.log(\"TowerDefence::removeAllScreens()\", \"--\");\n if (screensArray != null) {\n// for(Screen screen : screensArray) {\n// screen.dispose(); // Дич ебаная. с этими скринами у нас точно какие то проблемы...\n// }\n screensArray.clear();\n// int size = screensArray.size;\n// if (size > 0) {\n// for (int i = size - 1; i >= 0; i--) {\n// Screen screen = screensArray.get(i);\n// if (screen != null) {\n//// screen.hide();\n// screensArray.removeIndex(size - 1);\n// }\n// }\n// }\n }\n }", "public void popAll() {\n\n top = null;\n }", "public void removeAll() {\n db.delete(TABLE_NAME, null, null);\n Log.d(\"deleteHistoryCS\", \"Remove All HistoryCS\");\n }", "private void clearPreviousInstances() {\n DiscardedCards.clearInstance();\n Fireworks.clearInstance();\n History.clearInstance();\n SelectedSymbol.clearInstance();\n Tokens.clearInstance();\n HanabiCards.initDeck();\n }", "public void deleteAllLog()\n\t{\n\t\tchatLog.clear();\n\t}", "public void removeAlarms (){\n AlarmManager alarmManager = (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE);\n for (int i = 0; i < dogMetaDataArrayList.size(); i++){\n Intent recreateIntent = new Intent(getContext(), OneTimeReciveNotification.class);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(getContext(), i, recreateIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n pendingIntent.cancel();\n alarmManager.cancel(pendingIntent);\n }\n }", "public void clearAll()\n\t{\n\t\tClearMarks();\n\t\tpop = null;\n\t\tpopSequence = null;\n\t\ti1.killRoi();\n\t\tic.removeMouseListener(this);\n\t\tic.removeKeyListener(this);\n\t\tStackWindow sw1 = new StackWindow(i1, ic);\n\t\ti1.setWindow(sw1);\n\t\tdispose();\n\t}", "public void clearTiles() {\r\n\r\n for (int i = 0; i < 16; i += 1) {\r\n tiles[i] = 0;\r\n }\r\n boardView.invalidate();\r\n placedShips = 0;\r\n }", "public void cleanToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"CLEAN\",null));\n\t\t}\n\t}", "public void clearAllTapped(View view){\n final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setMessage(\"Do you really want to remove all items?\");\n alertDialogBuilder.setPositiveButton(\"yes\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n scannedList.clear();\n arrayAdapter.notifyDataSetChanged();\n View view = findViewById(R.id.id_fab);\n id_txtInfo.setText(\"Hey! you're all set to start scanning...\\nJust press Floating Action Button below to get Started.\");\n id_layoutClear.setVisibility(GONE);\n id_listView.setVisibility(GONE);\n id_layoutInfo.setVisibility(VISIBLE);\n Snackbar.make(view, \"All items cleared successfully...\", Snackbar.LENGTH_LONG).show(); }\n });\n alertDialogBuilder.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.dismiss();\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "private String onClearAllIntent() {\n\t\tprops.clear();\n\t\treturn \"Okido, I've cleaned all previous entries.\";\n\t}", "public void clearItems(){\n conversationsList.clear();\n notifyDataSetChanged();\n }", "public void removeAllItems() {\n contents.clear();\n }", "public void removePrevCardList(){\n for (int i = 0; i < playerCardList.getPlayerCardListSize(); i++){\n playerCardPuzzle.getChildren().remove(playerCardList.getPlayerCardByNo(i));\n }\n }", "public void clear()\r\n {\r\n phoneList = new ArrayList<String>();\r\n }", "public void clear(){\n strings.clear();\n }", "public void clearLists() {\r\n\t\ttweets.clear();\r\n\t}", "protected abstract void clearAll();", "public void clear(){\n this.items.clear();\n }", "public CardCollection destroyCards(List<AbstractCard> cardsToDestroy) ;", "public void reset() {\n Log.i(TAG, \"Clearing everything from the notifications table\");\n this.cancelAllNotifications();\n this.ntfcn_items.reset();\n }", "public void clear() {\n\t\tstringList = null;\n\t}", "public void removeAll()\n {\n this.front = null;\n this.rear = null;\n }", "public void removeAllMissiles(){\n\t\tfor (Missile missile : this.missiles){\n\t\t\tif(!missile.isDestroyed() && missile != null){\n\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\tmissile = null;\n\t\t\t}\n\t\t}\n\t\tfor (Missile fMissile : this.friendlyMissiles){\n\t\t\tif(!fMissile.isDestroyed() && fMissile != null){\n\t\t\t\tfMissile.setDestroyed(true);\n\t\t\t\tfMissile = null;\n\t\t\t}\n\t\t}\n\t}", "public void removeAll() \r\n\t{\t\r\n\t\tbookArray = new String[MAXSIZE];\r\n\t\tnumItems = 0;\r\n\t}", "public void removeCards(int i) {\n while (i > 0) {\n removeCard(cardViews.get(0));\n i--;\n }\n }", "public void popAllStacks(){\n // if top is lost then all elements are lost.\n top = null;\n }", "public void removePresentCard() {\n storageCards.remove();\n }", "public void clear(){\r\n MetersList.clear();\r\n }", "public void removeAll() {\n this.arrayList = null;\n this.arrayList = new ArrayList<>();\n }", "public void clearItems(){\n items.clear();\n }", "protected void clearMessages(){\n\t\twMessages.clear();\n\t}", "private void clearSubframes() {\n subframes_ = emptyProtobufList();\n }", "private void clearAllUi() {\n /* Clear notification fields. */\n mTxtAuthentication.setText(R.string.noData);\n\n /* Clear card reader's response fields. */\n clearResponseUi();\n }", "public void clear() {\n tweetList.clear();\n notifyDataSetChanged();\n }", "private void removeAllObjects()\n {\n removeObjects (getObjects(Actor.class));\n }", "void clear() {\n stacks.clear();\n }", "@Override\r\n\tpublic void removeAll() {\r\n\t\tfor (Share share : findAll()) {\r\n\t\t\tremove(share);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void removeAll() {\n\t\tfor (LocalRichInfo localRichInfo : findAll()) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}", "public void reset() {\r\n\t\tcards.addAll(dealt);\r\n\t\tdealt.clear();\r\n\t}", "public void clearHand(){\n\t\tthis.hand = new ArrayList<Card>();\n\t}", "public void emptyTickets() {\r\n tickets.clear();\r\n }", "private void clearRefundTo() {\n refundTo_ = emptyProtobufList();\n }", "@Override\n protected void onCleared() {\n }", "private void cleanUpTile(ArrayList<Move> moves)\n {\n for(Move m1 : moves)\n {\n gb.getTile(m1.getX(),m1.getY()).setStyle(null);\n gb.getTile(m1.getX(),m1.getY()).setOnMouseClicked(null);\n }\n gb.setTurn(gb.getTurn() + 1);\n }", "void clearPersistentNotifications();", "public void removeAll() {\n start = null;\n _size = 0;\n }", "public void removeAllFightsystems()\r\n {\n\r\n }", "public void gatherCards() {\n this.cards.clear();\n this.cards.addAll(this.roomCards);\n this.cards.addAll(this.weaponCards);\n this.cards.addAll(this.suspectCards);\n }", "public void popAll()\r\n {\n this.top = null;\r\n }", "public void clear() {\n for (int i = 0; i < size; i++) genericArrayList[i] = null;\n size = 0;\n }", "public synchronized void clear()\n\t{\n\t\tthis.mApList.clear();\n\t}", "public void emptyArrayList_DeletedItemsFromShoppingCard() {\n listOfDeletedItemNameShoppingCart.clear();\n System.out.println(\" Clear Deleted Items stored in Shopping Cart Array List: \" + listOfDeletedItemNameShoppingCart);\n }", "private void clearScanResults() {\n mScanResults.clear();\n mScanAddreses.clear();\n // Make sure the display is updated; any old devices are removed from the ListView. \n mScanResultsAdapter.notifyDataSetChanged();\n }", "private void clearStats() {\n stats_ = emptyProtobufList();\n }", "public void clear() {\n tweets.clear();\n notifyDataSetChanged();\n }", "void clearUndo() {\r\n while (!listOfBoards.isEmpty()) {\r\n listOfMoves.pop();\r\n listOfBoards.pop();\r\n }\r\n }", "void clearActions();", "private void remove() {\n \t\tfor(int i = 0; i < 5; i++) {\n \t\t\trMol[i].setText(\"\");\n \t\t\trGrams[i].setText(\"\");\n \t\t\tpMol[i].setText(\"\");\n \t\t\tpGrams[i].setText(\"\");\n \t\t}\n }", "@Override\n\tpublic void removeAll() {\n\t\tif(isEmpty())\n\t\t\treturn;\n\t\t// Remove until the frontier is empty\n\t\twhile(!isEmpty())\n\t\t\tfrontier.removeFirst();\n\t}", "protected void clear() {\n \twhile (!stack.empty()) {\n \t\tstack.pop();\n \t}\n \tcurrent = 0;\n \tshow(current);\n }", "@Override\n public void removeAll(){\n gameCollection.removeAllElements();\n }", "public void clearRealmCollection() {\n if (mRvHistoryAdapter.getData() != null) {\n mRealm.beginTransaction();\n for (TranslationInfo translationInfo : mRvHistoryAdapter.getData()) {\n translationInfo.getTranslation().deleteFromRealm();\n translationInfo.getDictionary().getDefinitionsList().deleteAllFromRealm();\n translationInfo.getDictionary().deleteFromRealm();\n }\n mRvHistoryAdapter.getData().deleteAllFromRealm();\n mRealm.commitTransaction();\n }\n }", "private void deleteAttacks(){\n while(!attacksToDelete.isEmpty()){\n attacks.remove(attacksToDelete.remove());\n }\n }", "void unsubscribeAll();", "void clear()\n\t{\n\t\tgetItems().clear();\n\t}", "@Override\n public void onRemovedAll() {\n Toast.makeText(this, R.string.removed_all_recordings, Toast.LENGTH_SHORT).show();\n setResult(RESULT_OK);\n finish();\n }", "void clearAllLists() {\n this.pm10Sensors.clear();\n this.tempSensors.clear();\n this.humidSensors.clear();\n }", "private static void clear() {\n Context context = Leanplum.getContext();\n if (context != null) {\n SharedPreferences.Editor editor = context.getSharedPreferences(\n \"__leanplum__\", Context.MODE_PRIVATE).edit();\n if (editor != null) {\n editor.clear();\n editor.apply();\n }\n\n editor = context.getSharedPreferences(\"__leanplum_push__\", Context.MODE_PRIVATE).edit();\n if (editor != null) {\n editor.clear();\n editor.apply();\n }\n }\n }", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();" ]
[ "0.72848433", "0.6564382", "0.6508054", "0.6403676", "0.6307134", "0.624447", "0.6238194", "0.62240213", "0.6217406", "0.6132431", "0.6132431", "0.61244506", "0.60635716", "0.60499626", "0.60499626", "0.6032038", "0.60293645", "0.60174596", "0.600255", "0.59856796", "0.59660417", "0.5918085", "0.5911518", "0.58922493", "0.58922493", "0.5885322", "0.58841294", "0.58747274", "0.5858882", "0.5857147", "0.5840572", "0.582711", "0.5826607", "0.58241314", "0.5819777", "0.58172184", "0.5796896", "0.5776349", "0.57735443", "0.57713974", "0.5758928", "0.5754059", "0.57503223", "0.57344854", "0.5724926", "0.5713173", "0.5705106", "0.5692638", "0.5681621", "0.56733197", "0.5670313", "0.56596607", "0.564808", "0.56480545", "0.5641749", "0.56371385", "0.5636262", "0.5626715", "0.5606434", "0.56063396", "0.56063265", "0.5605228", "0.5604439", "0.56040883", "0.5598508", "0.5598351", "0.55927783", "0.55895436", "0.5586859", "0.55843055", "0.5581839", "0.5574952", "0.5573772", "0.5566636", "0.55663514", "0.55626345", "0.5561439", "0.5561086", "0.55589205", "0.5558157", "0.55564845", "0.5554462", "0.55487067", "0.55428386", "0.5542834", "0.55406886", "0.5539462", "0.5536917", "0.5533601", "0.55333227", "0.5533027", "0.55328876", "0.55315965", "0.55277985", "0.55277324", "0.55214286", "0.5520671", "0.5520671", "0.5520671", "0.5520671" ]
0.82211024
0
Used in SuperCardToast saveState().
LinkedList<SuperCardToast> getList() { return mList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveState() { }", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "private void storeViewState()\n\t{\n\t\tCommand lastCmd = project.getLastCommand();\n\t\tif (lastCmd != null)\n\t\t{\n\t\t\tlastCmd.setOptionalState(view.toJSONString(lastCmd.getProjectState()));\n\t\t}\n\t}", "@Override\n public void saveState(Bundle outBundle) {\n }", "@Override\r\n\tpublic void onSave(Bundle outState) {\n\t}", "private void saveCurrentState(Bundle outState){\n outState.putInt(PLAYER_COUNT_STATE_KEY,playerScore);\n outState.putSerializable(VIEW_MAP_STATE_KEY,globalViewMap);\n outState.putSerializable(CHILD_TEXT_CONTAINER_STATE_KEY,globalChildTextContainer);\n outState.putSerializable(PRIME_RECORD_MAP_KEY,primeRecorderMap);\n outState.putSerializable(CURRENT_SCREEN_GAME_STATE_KEY,currentScreenGameState);\n outState.putLong(GAME_TIME_LEFT_STATE_KEY,gameTimeLeftYet);\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n currentStateSaveToSharedPref();\n }", "private void saveAppState(Context context) {\n LogHelper.v(LOG_TAG, \"Saving state.\");\n }", "@Override\r\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t}", "private void saveStateToArguments() {\n if (getView() != null)\n savedState = saveState();\n if (savedState != null) {\n Bundle b = getArguments();\n if (b != null)\n b.putBundle(\"internalSavedViewState8954201239547\", savedState);\n }\n }", "@Override\n\t\tpublic Parcelable saveState() {\n\t\t\treturn null;\n\t\t}", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n Log.d(TAG, \"onSaveInstanceState:method fYred\");\n outState.putInt(\"qestion We are on\", currentq);\n }", "private void saveState() {\r\n \tSharedPreferences settings = getSharedPreferences(TEMP, 0);\r\n \tEditor editor = settings.edit();\r\n \tif (mRowId != null)\r\n \t\teditor.putLong(DbAdapter.KEY_ROWID, mRowId);\r\n \teditor.putLong(DbAdapter.KEY_DATE, mTime);\r\n \teditor.putString(DbAdapter.KEY_PAYEE, mPayeeText != null && \r\n \t\t\tmPayeeText.getText() != null ? mPayeeText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_AMOUNT, mAmountText != null && \r\n \t\t\tmAmountText.getText() != null ? mAmountText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_CATEGORY, mCategoryText != null && \r\n \t\t\tmCategoryText.getText() != null ? mCategoryText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_MEMO, mMemoText != null && \r\n \t\t\tmMemoText.getText() != null ? mMemoText.getText().toString() : null);\r\n \teditor.putString(DbAdapter.KEY_TAG, mTagText != null && \r\n \t\t\tmTagText.getText() != null ? mTagText.getText().toString() : null);\r\n \teditor.commit();\r\n }", "@Override()\n protected void onSaveInstanceState(final Bundle state)\n {\n logEnter(LOG_TAG, \"onSaveInstanceState\", state);\n\n saveState(state);\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t}", "@Override\n public void restoreState(Map<String, Object> state) {\n\n }", "@Override\n\tpublic void onMySaveInstanceState(Bundle outState) {\n\t\t\n\t}", "@Override\n\tpublic void onMySaveInstanceState(Bundle outState) {\n\t\t\n\t}", "void save() {\r\n if (actionCompleted) {\r\n forget();\r\n } else {\r\n AccountSettings.stateStored = new Bundle();\r\n save(AccountSettings.stateStored);\r\n }\r\n }", "public void onRestorePendingState() {\n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.v(\"save\", \"here I come :) \");\n\t}", "private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }", "public void storeState(StateInfo stateInfo) {\n \n// Thread.dumpStack();\n super.storeState(stateInfo); \n \n JJStateInfo info = (JJStateInfo) stateInfo;\n info.setSubStates(lexan.getStateInfo());\n \n if (DEBUG) debug.println(\"Storing state [\"+ offset + \",\" + tokenOffset + \"]: \" + info + \"@\" + stopOffset); // NOI18N\n \n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }", "public void onSaveInstanceState(Bundle bundle) {\n bundle.putSerializable(\"MARKLIST\", this.f5382B);\n bundle.putInt(\"save_state\", this.f5435p);\n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.v(TAG, \"onSaveInstanceState()\");\n\t}", "@Override\n public void onSaveInstanceState(Bundle savedInstanceState)\n {\n savedInstanceState.putIntArray(\"board\", tttGame.getBoard());\n savedInstanceState.putBoolean(\"turn\", tttGame.getTurn());\n savedInstanceState.putBoolean(\"mode\", tttGame.getAIMode());\n\n savedInstanceState.putInt(\"p1Count\", pOneCounter);\n savedInstanceState.putInt(\"p2Count\", pTwoCounter);\n savedInstanceState.putInt(\"pAICount\",pAICounter);\n savedInstanceState.putInt(\"tieCount\", tieCounter);\n\n boolean[] enabled = getState();\n savedInstanceState.putBooleanArray(\"state\", enabled);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n outState.putString(getString(R.string.save_instance_state_selected_subreddit), mSelectedSubreddit);\n outState.putParcelable(getString(R.string.save_instance_state_recyclerview_state), state);\n\n super.onSaveInstanceState(outState);\n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t}", "private String saveState(String type) {\n if (comp == null) { // \"all images are closed\" is also an event\n return String.format(\"%s (%s) no composition\", type, threadName);\n }\n\n String selectionInfo = \"no selection\";\n if (comp.hasSelection()) {\n Rectangle rect = comp.getSelection().getShapeBounds();\n selectionInfo = String.format(\"sel. bounds = '%s'\", rect.toString());\n }\n String maskInfo = \"no mask\";\n if (layer.hasMask()) {\n maskInfo = String.format(\"has mask (enabled = %s, editing = %s, linked = %s)\",\n layer.isMaskEnabled(), layer.isMaskEditing(), layer.getMask().isLinked());\n }\n\n return String.format(\"%s (%s) on \\\"%s/%s\\\" (%s, %s, %s) at %s\",\n type, threadName, comp.getName(), layer.getName(),\n layer.getClass().getSimpleName(), selectionInfo, maskInfo, dateFormatter.format(date));\n }", "private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n //outState.putInt(\"someVarA\", someVarA);\n //outState.putString(\"someVarB\", someVarB);\n }", "@Override\n\tpublic void doSaveState ()\n\t{\n for (AbstractSideBar sb : this.sideBars.values ())\n {\n\n String id = sb.getId ();\n\n if (id == null)\n {\n\n continue;\n\n }\n\n UserProperties.set (\"sidebarState-\" + id,\n sb.getSaveState ());\n\n }\n\n\t}", "static void setNotSaved(){saved=false;}", "private Bundle saveState() {\n Bundle state = new Bundle();\n // For Example\n //state.putString(\"text\", tv1.getText().toString());\n onSaveState(state);\n return state;\n }", "@Override\n public void onRestate() {\n }", "@Override\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.e(\"mainactivity\", \"onsaveinsstancestate\");\n\n\t}", "private void saveState(final Bundle state)\n {\n logEnter(LOG_TAG, \"saveState\", state);\n\n state.putSerializable(BUNDLE_FIELD_INSTANCE, instance);\n state.putSerializable(BUNDLE_FIELD_ENTRIES, entries);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n Log.i(TAG, \"onSaveInstanceState()\");\n super.onSaveInstanceState(outState);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n \toutState.putString(\"WORKAROUND_FOR_BUG_19917_KEY\", \"WORKAROUND_FOR_BUG_19917_VALUE\");\n \tsuper.onSaveInstanceState(outState);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n uiHelper.onSaveInstanceState(outState);\n }", "public String getStateAsString() {\n return storeStateIntoString();\n }", "@Override\r\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\r\n\t}", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n }", "@Override\r\n\tprotected void onSaveInstanceState(Bundle outState) {\r\n\t\tsuper.onSaveInstanceState(outState);\r\n\t\toutState.putInt(\"pos\", mPos);\r\n\t\toutState.putInt(\"showpos\", mShowPos);\r\n\t\toutState.putParcelable(ShowTable.CONTENT_ITEM_TYPE, mUri);\r\n\t}", "@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }", "@Override\r\n public void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n // Save Instance State here\r\n }", "private void saveStateSnapshot(State state){\n\t\ttry{\n\t\t\tif(saveStateSnapshot){\n\t\t\t\t//System.out.println(Utils.treeDesc(state, 2, Tags.Role, Tags.Desc, Tags.Shape, Tags.Blocked));\n\t\t\t\tTaggable taggable = new TaggableBase();\n\t\t\t\ttaggable.set(SystemState, state);\n\t\t\t\tLogSerialiser.log(\"Saving state snapshot...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tFile file = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir), \"state_snapshot\");\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n\t\t\t\toos.writeObject(taggable);\n\t\t\t\toos.close();\n\t\t\t\tsaveStateSnapshot = false;\n\t\t\t\tLogSerialiser.log(\"Saved state snapshot to \" + file.getAbsolutePath() + \"\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t}\n\t\t}catch(IOException ioe){\n\t\t\tthrow new RuntimeException(ioe);\n\t\t}\n\t}", "@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t\tLog.i(TAG, \"onSaveInstanceState\");\n\t}", "protected void storeCurrentValues() {\n }", "public void saveState(IMemento memento) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onSaveInstanceState(Bundle arg0) {\n\t}", "public Object saveState(FacesContext context) {\n return null;\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putBoolean(\"AppRunning\",running);\n outState.putBoolean(\"Latest\",latestOp);\n outState.putBoolean(\"Started\",started);\n outState.putInt(\"Seconds\",sec);\n outState.putInt(\"Score\",score);\n outState.putInt(\"Total\",total);\n }", "@Override\n\t protected void onSaveInstanceState(Bundle outState) {\n\t super.onSaveInstanceState(outState);\n\t // save the current data, for instance when changing screen orientation\n\t outState.putSerializable(\"dataset\", mDataset);\n\t outState.putSerializable(\"renderer\", mRenderer);\n\t outState.putSerializable(\"current_series\", mCurrentSeries);\n\t outState.putSerializable(\"current_renderer\", mCurrentRenderer);\n\t }", "@Override\n\tpublic void onSaveInstanceState(Bundle outState) {\n\t\tsuper.onSaveInstanceState(outState);\n\t}", "public void onActivitySaveState(Bundle bundle) {\n if (currentScreen != null) {\n currentScreen.onActivitySaveState(bundle);\n }\n }", "private void saveState() {\n // Increase capacity if necessary\n if (nSaved == savedC.length) {\n Object tmp;\n tmp = savedC;\n savedC = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedC,0,nSaved);\n tmp = savedCT;\n savedCT = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedCT,0,nSaved);\n tmp = savedA;\n savedA = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedA,0,nSaved);\n tmp = savedB;\n savedB = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedB,0,nSaved);\n tmp = savedDelFF;\n savedDelFF = new boolean[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedDelFF,0,nSaved);\n }\n // Save the current sate\n savedC[nSaved] = c;\n savedCT[nSaved] = cT;\n savedA[nSaved] = a;\n savedB[nSaved] = b;\n savedDelFF[nSaved] = delFF;\n nSaved++;\n }", "public Parcelable onSaveInstanceState() {\n SavedState savedState = new SavedState(super.onSaveInstanceState());\n if (!(this.auk == null || this.auk.aun == null)) {\n savedState.aup = this.auk.aun.getItemId();\n }\n savedState.auq = isOverflowMenuShowing();\n return savedState;\n }", "public abstract String getSavedViewState();", "@Override\n protected void dispatchSaveInstanceState(SparseArray<Parcelable> container) {\n }", "@Override\n protected void onSaveInstanceState(Bundle outState)\n {\n super.onSaveInstanceState(outState);\n outState.putInt(\"arms\", arms.getVisibility());\n outState.putInt(\"mustache\", mustache.getVisibility());\n outState.putInt(\"nose\", nose.getVisibility());\n outState.putInt(\"shoes\", shoes.getVisibility());\n outState.putInt(\"glasses\", glasses.getVisibility());\n outState.putInt(\"eyes\", eyes.getVisibility());\n outState.putInt(\"hat\", hat.getVisibility());\n outState.putInt(\"ears\", ears.getVisibility());\n outState.putInt(\"mouth\", mouth.getVisibility());\n outState.putInt(\"eyebrows\", eyebrows.getVisibility());\n\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n // Save Instance State here\n }", "@Override\r\n\tprotected void onSaveInstanceState(Bundle savedInstanceState) {\n\t\tsuper.onSaveInstanceState(savedInstanceState);\r\n\t}", "@Override protected Parcelable onSaveInstanceState() {\n Parcelable superState = super.onSaveInstanceState();\n SavedState ss = new SavedState(superState);\n ss.rotated = rotated;\n ss.totalSpacingDegree = totalSpacingDegree;\n ss.satelliteDistance = satelliteDistance;\n ss.measureDiff = measureDiff;\n ss.expandDuration = expandDuration;\n ss.closeItemsOnClick = closeItemsOnClick;\n return ss;\n }", "@Override\n protected void onSaveInstanceState(Bundle outState){\n super.onSaveInstanceState(outState);\n\n long tiempo = SystemClock.elapsedRealtime() - cronometro.getBase();\n boolean estComenzar = estadoComenzar;\n boolean estPlay = estadoPlay;\n\n outState.putLong(\"crono\",tiempo);\n outState.putBoolean(\"pulsado_comenzar\",estComenzar);\n outState.putBoolean(\"pulsado_play\",estPlay);\n }", "@Override\r\n\tprotected void onSaveInstanceState(Bundle outState) {\n\t\tif (outState != null) {\r\n\t\t\toutState.putString(\"sCameraFilename\", sCameraFilename);\r\n\t\t\toutState.putSerializable(\"fCurrentFile\", fCurrentFile);\r\n\t\t\tPalmchatLogUtils.println(\"--cfd onSaveInstanceState sCameraFilename =\" + sCameraFilename);\r\n\t\t}\r\n\t\t\r\n\t\tsuper.onSaveInstanceState(outState);\r\n\t}", "@Override\n public Parcelable onSaveInstanceState() {\n Parcelable superState = super.onSaveInstanceState();\n SavedState ss = new SavedState(superState);\n \n ss.checked = isChecked();\n return ss;\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n super.onSaveInstanceState(savedInstanceState);\n\t}", "private void restoreState() {\n if (savedState != null) {\n// For Example\n//tv1.setText(savedState.getString(\"text\"));\n onRestoreState(savedState);\n }\n }", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putSerializable(ReportPeer.KEY_ID, mRowId);\n outState.putSerializable(ReportPeer.KEY_TASK_ID, mTaskId);\n outState.putSerializable(ReportPeer.KEY_DATE, mCalendar);\n // We don't need to save form values because this is handled\n // automatically for every View object\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n outState.putBoolean(REQUEST_SERVICE_ON_NETWORK_RECONNECTED, requestLocationOnNetworkReconnected);\n outState.putString(LAST_ADDRESS_SAVE_KEY, mLastAddress);\n outState.putParcelable(LAST_LOCATION_SAVE_KEY, mLastLocation);\n super.onSaveInstanceState(outState);\n }", "@Override\n\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\n\t\tsuper.onSaveInstanceState(savedInstanceState);\n\n\t\t/* save variables */\n\t\tsavedInstanceState.putLong(\"NumberOfSignalStrengthUpdates\",\n\t\t\t\tNumberOfSignalStrengthUpdates);\n\n\t\tsavedInstanceState.putLong(\"LastCellId\", LastCellId);\n\t\tsavedInstanceState.putLong(\"NumberOfCellChanges\", NumberOfCellChanges);\n\n\t\tsavedInstanceState.putLong(\"LastLacId\", LastLacId);\n\t\tsavedInstanceState.putLong(\"NumberOfLacChanges\", NumberOfLacChanges);\n\n\t\tsavedInstanceState.putLongArray(\"PreviousCells\", PreviousCells);\n\t\tsavedInstanceState.putInt(\"PreviousCellsIndex\", PreviousCellsIndex);\n\t\tsavedInstanceState.putLong(\"NumberOfUniqueCellChanges\",\n\t\t\t\tNumberOfUniqueCellChanges);\n\n\t\tsavedInstanceState.putBoolean(\"outputDebugInfo\", outputDebugInfo);\n\n\t\t/* save the trace data still in the write buffer into a file */\n\t\tsaveDataToFile(FileWriteBufferStr, \"---in save instance, \"\n\t\t\t\t+ DateFormat.getTimeInstance().format(new Date()) + \"\\r\\n\",\n\t\t\t\tcellLogFilename);\n\t\tFileWriteBufferStr = \"\";\n\n\t}", "private SavedState(Parcel parcel) {\n super(parcel);\n boolean bl2 = parcel.readInt() != 0;\n this.isOpen = bl2;\n }", "public String getState() {\n StringBuilder builder = new StringBuilder();\n //builder.append(muteMusic.getBackground().getLevel());\n //builder.append(',');\n builder.append(muteClicked);\n builder.append(',');\n builder.append(gameOver);\n builder.append(',');\n builder.append(wordsDetectedByUser.size());\n builder.append(',');\n for(int i =0;i<wordsDetectedByUser.size();i++)\n { builder.append(wordsDetectedByUser.get(i));\n builder.append(',');}\n builder.append(notValidWord);\n builder.append(',');\n // m1Handler.removeCallbacks(m1Runnable);\n mHandler.removeCallbacks(mRunnable);\n builder.append(phaseTwo);\n builder.append(',');\n builder.append(currentScore); //storing current score\n builder.append(',');\n builder.append(t); //storing timer state\n builder.append(',');\n Object a[] = DoneTiles.toArray();\n builder.append(a.length);\n builder.append(',');\n for(int i=0;i<a.length;i++) {\n builder.append(a[i].toString());\n builder.append(',');\n }\n builder.append(mLastLarge);\n builder.append(',');\n builder.append(mLastSmall);\n builder.append(',');\n for (int large = 0; large < 9; large++) {\n for (int small = 0; small < 9; small++) {\n builder.append(mSmallTiles[large][small].getOwner().name());\n builder.append(',');\n builder.append((((Button)mSmallTiles[large][small].getView()).getText()).toString());\n builder.append(',');\n //Log.d(DoneTiles);\n }\n }\n return builder.toString();\n }", "private void addStateLog(){\n int state = GUIState.getState();\n if(state == 1){\n addText(\"Beginning \" + GUIState.command + \" processing!\");\n addText(\"Choose which card this card will affect!\");\n } if(state == 2){\n if(GUIState.command.equals(\"Summon\") || GUIState.command.equals(\"Defense\")){\n addText(\"Beginning \" + GUIState.command + \" processing!\");\n }\n addText(\"Choose where to put this card!\");\n }\n }", "public abstract void setSavedViewState(String savedViewState);", "@Override\n public void onSaveInstanceState( @NonNull Bundle outState ) {\n super.onSaveInstanceState( outState );\n mMap.onSaveInstanceState( outState );\n }", "@Override\n\tpublic void setLastState(STATE state) {\n\n\t}", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState.putParcelable(INSTANCE_ALARM_ADDRESS_DATA, mMapDestination);\n outState.putInt(INSTANCE_ALARM_ID, mAlarmId);\n if(mAlarmRingtone != null)\n outState.putString(INSTANCE_ALARM_RINGTONE, mAlarmRingtone.toString());\n super.onSaveInstanceState(outState);\n }", "@Override\n\tpublic String getStateString() {\n\t\treturn null;\n\t}", "@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n /* Here we put code now to save the state */\n outState.putString(\"path\", mCurrentPhotoPath);\n outState.putString(\"caseId\", caseId.getText().toString());\n outState.putString(\"desc\", desc.getText().toString());\n outState.putString(\"imgName\", this.imgName);\n\n if (dialog != null && dialog.getUserInput() != \"\") {\n System.out.println(\"in onSvaeInstanceSteate \"+dialog.getUserInput());\n outState.putString(\"username\", dialog.getUserInput());\n }\n }", "@Override\n public String getState()\n {\n return state;\n }", "@Override\n public Map<String, String> getPersistedState()\n {\n return null;\n }", "public void saveCurrentUserState(){\n\t\tCurrentUserState currState = new CurrentUserState();\n\t\tcurrState.setBatchOutput(batchState.getBatchOutput());\n\t\tcurrState.setCurrFields(batchState.getFields());\n\t\tcurrState.setCurrProject(batchState.getProject());\n\t\tcurrState.setCurrScale(display.getScale());\n\t\tcurrState.setCurrSelectedCell(batchState.getSelectedCell());\n\t\tcurrState.setErrorCells(batchState.getErrors());\n\t\t\n\t\tcurrState.setHighlight(display.isToggleOn());\n\t\tcurrState.setInverted(display.isInverted());\n\t\t\n\t\tcurrState.setCurrWindowPos(getLocationOnScreen());\n\t\tcurrState.setCurrWindowSize(getSize());\n\t\t\n\t\tcurrState.setHorizontalDiv(bottomPanel.getDividerLocation());\n\t\tcurrState.setVertivalDiv(centerPanel.getDividerLocation());\n\t\t\n\t\tcurrState.setOriginX(display.getW_originX());\n\t\tcurrState.setOriginY(display.getW_originY());\n\t\t\n\t\tcurrState.setValues(batchState.getValues());\n\t\t\n\t\t//put to xstream\n\t\tXStream xstream = new XStream(new DomDriver());\n\t\ttry {\n\t\t\n\t\t\txstream.toXML(currState, new FileOutputStream(new File(info.getUsername() + \".xml\")));\n\t\t\tSystem.out.println(\"current state is saved!\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"file not found/ couldn't go to xml\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void onSaveInstanceState(Bundle outState)\n {\n /* Use the bad budget application wide data object to get a hold of all the user's losses */\n BadBudgetData bbd = ((BadBudgetApplication) this.getApplication()).getBadBudgetUserData();\n List<MoneyLoss> losses = bbd.getLosses();\n\n for (MoneyLoss currLoss : losses)\n {\n String currFreqShortHand = frequencyViews.get(currLoss.expenseDescription()).getText().toString();\n Frequency currFrequency = BadBudgetApplication.freqFromShortHand(currFreqShortHand);\n outState.putSerializable(BadBudgetApplication.TOGGLED_FREQUENCY_PREFIX_KEY + currLoss.expenseDescription(), currFrequency);\n }\n\n //Keep track of what the total freq's was toggled to and also the budget's freq\n Frequency totalFreq = BadBudgetApplication.freqFromShortHand(this.totalFreqView.getText().toString());\n outState.putSerializable(BadBudgetApplication.TOTAL_FREQ_KEY, totalFreq);\n Frequency budgetFreq = BadBudgetApplication.freqFromShortHand(this.budgetFreqView.getText().toString());\n outState.putSerializable(BadBudgetApplication.BUDGET_TOTAL_FREQ_KEY, budgetFreq);\n }", "@Override\n public void onSaveInstanceState(Bundle outState) {\n outState.putBundle(ICICLE_KEY, mSnakeView.saveState());\n super.onSaveInstanceState(outState);\n }", "@Override\r\n protected void onSaveInstanceState(Bundle outState) {\r\n super.onSaveInstanceState(outState);\r\n\r\n String stateSaveHome = home.getText().toString();\r\n outState.putString(\"save_state_home\", stateSaveHome);\r\n\r\n String stateSaveVisitor = visitor.getText().toString();\r\n outState.putString(\"save_state_visitor\", stateSaveVisitor);\r\n }", "@Override\r\n\tpublic void persist(Seat seatHoldState, SeatState value) {\n\t\t\r\n\t}", "@Override\r\n\tpublic GameState save() {\n\t\treturn null;\r\n\t}", "@Override // com.android.settingslib.SignalIcon$State\n public void toString(StringBuilder sb) {\n super.toString(sb);\n sb.append(\",ssid=\");\n sb.append(this.ssid);\n sb.append(\",isTransient=\");\n sb.append(this.isTransient);\n sb.append(\",isDefault=\");\n sb.append(this.isDefault);\n sb.append(\",statusLabel=\");\n sb.append(this.statusLabel);\n sb.append(\",isCarrierMerged=\");\n sb.append(this.isCarrierMerged);\n sb.append(\",subId=\");\n sb.append(this.subId);\n }", "public Parcelable onSaveInstanceState() {\n SavedState savedState = new SavedState(super.onSaveInstanceState());\n savedState.mRecyclerViewId = this.mRecyclerView.getId();\n int i = this.mPendingCurrentItem;\n if (i == -1) {\n i = this.mCurrentItem;\n }\n savedState.mCurrentItem = i;\n Parcelable parcelable = this.mPendingAdapterState;\n if (parcelable != null) {\n savedState.mAdapterState = parcelable;\n } else {\n RecyclerView.Adapter adapter = this.mRecyclerView.getAdapter();\n if (adapter instanceof StatefulAdapter) {\n savedState.mAdapterState = ((StatefulAdapter) adapter).saveState();\n }\n }\n return savedState;\n }" ]
[ "0.7265592", "0.69465405", "0.692166", "0.681302", "0.67222065", "0.6624355", "0.6612556", "0.6529513", "0.65272254", "0.65157866", "0.6490179", "0.6483473", "0.64632577", "0.6413106", "0.6382778", "0.6372594", "0.6363186", "0.63631344", "0.6345874", "0.6345874", "0.6341673", "0.6312304", "0.6308384", "0.62790245", "0.6220024", "0.61913556", "0.61913556", "0.61824256", "0.6180755", "0.61674076", "0.6167394", "0.6167052", "0.6152995", "0.61527795", "0.61469185", "0.6139589", "0.6124915", "0.6124433", "0.61179024", "0.611362", "0.6105868", "0.6100563", "0.60941386", "0.60880643", "0.6087693", "0.6083259", "0.6082958", "0.6081641", "0.6075607", "0.6075607", "0.60695547", "0.6067921", "0.6064421", "0.60530835", "0.60438764", "0.6043173", "0.6041921", "0.60393745", "0.603876", "0.6037472", "0.6030929", "0.60287064", "0.6011295", "0.6007002", "0.6004388", "0.59992564", "0.59992564", "0.59992564", "0.59992564", "0.59992564", "0.59992564", "0.59992564", "0.59922814", "0.59698796", "0.5967886", "0.5964454", "0.5954194", "0.5944525", "0.5942386", "0.594011", "0.59390056", "0.5934967", "0.5929422", "0.5926921", "0.5925309", "0.59018105", "0.5900626", "0.5898404", "0.5896333", "0.58956355", "0.5892575", "0.58921534", "0.5890984", "0.5890479", "0.58776265", "0.5876497", "0.5874802", "0.5871151", "0.5871047", "0.5869299", "0.58638746" ]
0.0
-1
Stopped the scan timer.
private synchronized void cancelScanTimer() { if (mScanTimerFuture != null) { mScanTimerFuture.cancel(true); mScanTimerFuture = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stop() {\n timer.stop();\n }", "public void stop() {timer.stop();}", "private void stopTime()\n {\n timer.stop();\n }", "private void stop() {\n timer.cancel();\n timer = null;\n }", "void afterStopScan();", "TimeInstrument stop();", "public void stop() {\n\t\tthis.timer.cancel();\n\t}", "public void stop() {\n\t\t_timer.cancel();\n\t}", "public static void stopTimer() {\n timerIsWorking = false;\r\n elapsedTime = 0;\r\n }", "public void stop() {\n if (timer != null) {\n timer.cancel();\n }\n }", "public void stopScan()\n {\n //------------------------------------------------------------\n // Stop BLE Scan\n Toolbox.toast(getContext(), \"Stopping scan...\");\n scanLeDevice(false);\n }", "public void stop(){\n\t\tif(timer == null){ return; }\n\t\ttimer.stop();\n\t\tmakeTimer();\n\t}", "public void stop() {\n\t\tthis.stopTime = System.nanoTime();\n\t\tthis.running = false;\n\t}", "public void stopTimer() {\n\t\trunFlag = false;\n\t\tses.shutdown();\n\t\tSystem.err.println(\"TIMER SHUTDOWN\");\n\t\tinstance = null;\n\t}", "public void stop() {\n executor.shutdownNow();\n rescanThread.interrupt();\n }", "@Override\n\tpublic void leave() {\n\t\ttimer.stop();\n\t\ttimer = null;\n\t}", "public void stop() {\n if (this.timer != null) {\n this.timer.cancel();\n }\n }", "public void stopTimer()\n {\n timer.cancel();\n }", "@Override\r\n\tpublic void stopped() {\r\n\r\n\t\t// Stop timers\r\n\t\tsuper.stopped();\r\n\r\n\t\t// Disconnect\r\n\t\tdisconnect();\r\n\t}", "public synchronized void stop()\r\n/* 78: */ {\r\n/* 79:203 */ if (!this.monitorActive) {\r\n/* 80:204 */ return;\r\n/* 81: */ }\r\n/* 82:206 */ this.monitorActive = false;\r\n/* 83:207 */ resetAccounting(milliSecondFromNano());\r\n/* 84:208 */ if (this.trafficShapingHandler != null) {\r\n/* 85:209 */ this.trafficShapingHandler.doAccounting(this);\r\n/* 86: */ }\r\n/* 87:211 */ if (this.scheduledFuture != null) {\r\n/* 88:212 */ this.scheduledFuture.cancel(true);\r\n/* 89: */ }\r\n/* 90: */ }", "public void stopTime() {\n if (isRunning) {\n timer.cancel();\n timer.purge();\n }\n isRunning = false;\n }", "public void stop() {}", "public void stopTimer() {\n maxAccelOutput.setText(String.valueOf(maxAccel));\n timeHandler.removeCallbacks(startTimer);\n startButton.setText(R.string.go_button);\n isRunning = false;\n }", "void stop(long timeout);", "@SuppressLint(\"NewApi\") \n\tprivate void stopScan() {\n\t\tif (mIsScanning) {\n\t\t\tDFUManager.log(TAG, \"stopScan\");\n\t\t\tmBluetoothAdapter.stopLeScan(mLEScanCallback);\n\t\t\tmIsScanning = false;\n\t\t}\n\t}", "public void endTimer(){\n timer.cancel();\n }", "public void stop() {\n cancelCallback();\n mStartTimeMillis = 0;\n mCurrentLoopNumber = -1;\n mListener.get().onStop();\n }", "public void stop() {\n endTime = System.currentTimeMillis();\n }", "@Override\n public void stop() {}", "@Override\n public void stop()\n {\n final String funcName = \"stop\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n if (playing)\n {\n analogOut.setAnalogOutputMode((byte) 0);\n analogOut.setAnalogOutputFrequency(0);\n analogOut.setAnalogOutputVoltage(0);\n playing = false;\n expiredTime = 0.0;\n setTaskEnabled(false);\n }\n }", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void stop();", "public void endTimer()\n\t{\n\t\ttimer.stopTimer();\n\t}", "public void stop() {\n clockThread = null;\n }", "public void stop() {\n _running = false;\n }", "@Override\r\n public void stop() {\r\n }", "@Override\r\n public void stop() {\r\n }", "@Override public void stop() {\n }", "public synchronized void stop() {\n this.running = false;\n }", "public void stop() {\n // If we weren't scanning, or Bluetooth is not supported, we're done.\n if (!scanning || adapter == null) {\n return;\n }\n\n // If Bluetooth is not enabled, scanning will automatically have been stopped.\n if (!adapter.isEnabled()) {\n scanning = false;\n Log.i(TAG, \"Scanning stopped by adapter.\");\n return;\n }\n\n // Get the BLE scanner. If this is null, Bluetooth may not be enabled.\n BluetoothLeScanner scanner = adapter.getBluetoothLeScanner();\n if (scanner == null) {\n Log.w(TAG, \"Could not retrieve scanner to stop scanning.\");\n return;\n }\n scanner.stopScan(scanCallback);\n\n scanning = false;\n Log.i(TAG, \"Stopped scanning.\");\n }", "@Override public void stop() {\n\t\t_active = false;\n\t}", "public void stopTimer() {\n if (mHandler != null) {\n mHandler.removeCallbacks(mStatusChecker);\n }\n }", "public void stop()\n\t{\n\t\trunning = false;\n\t}", "@Override\n public void stop() {\n GameManager.getInstance().stopTimer();\n }", "public void stop() {\n }", "public void stop() {\n }", "@Override\n public void stop() {\n }", "private void stop() {\n if (pollTimer != null) {\n pollTimer.cancel();\n pollTimer = null;\n }\n }", "public void\nstopTimer() {\n\t\n\tSystemDesign.logInfo(\"MetroParams.stopTimer: Killing annealing timer.\");\n\t\n\tif (metroTimer_ != null) {\n metroTimer_.stopPlease();\n\t metroTimer_ = null;\n }\n\tmetroThread_ = null;\n}", "public void stopped();", "public void stop() {\n aVideoAnalyzer.stop();\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "@Override\n public void stop() {\n }", "public void stopWaitTime(){\r\n\t\twaitTime.stop();\r\n\t}", "protected void stopWifiScan() {\r\n\r\n //TERMINA LA SCANSIONE BLUETOOTH\r\n\t\thideWifiScanDialog();\r\n BeaconsMonitoringService.action.set(BeaconSession.SCANNING_OFF);\r\n\r\n /*\r\n\t\tif (wifiBroadcastReceiver != null) {\r\n\r\n\t\t\tWifiScanner.stopScanner(this, wifiBroadcastReceiver);\r\n\t\t\twifiBroadcastReceiver = null;\r\n\r\n\t\t}\r\n\t\t// stop scan\r\n\t\t// oh, wait, we can't stop the scan, it's asynchronous!\r\n\t\t// we just have to ignore the result!\r\n\t\tignoreWifiResults = true;\r\n */\r\n\t}", "public void stop()\n\t{\n\t\t//get the time information as first part for better precision\n\t\tlong systemMs = SystemClock.elapsedRealtime();\n\n\t\t//if it was already stopped or did not even run, do nothing\n\t\tif (!m_running)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tm_elapsedMs += (systemMs - m_lastMs);\n\n\t\tm_running = false;\n\t}", "@Override\r\n public void stop() {\r\n\r\n }", "public void stopRideTime(){\r\n\t\trideTime.stop();\r\n\t}", "public void stop(){\n if (this.isActive()) {\n this.setEndTime(Calendar.getInstance());\n this.setTotalSeconds();\n this.setActive(false);\n }\n \n }", "public void stop(){\r\n\t\tmyTask.cancel();\r\n\t\ttimer.cancel();\r\n\t}", "@Override public void stop () {\n }", "public void stop(){\n\t\tthis.timer.stop();\n\t\t//whenever we stop the entire game, also calculate the endTime\n\t\tthis.endTime = System.nanoTime();\n\t\tthis.time = this.startTime - this.endTime;\t//calculate the time difference\n\t\t\n\t\tthis.stop = true;\n\t}", "private void stop() {\r\n\t\t\tstopped = true;\r\n\t\t}", "public void stop(){\n\t\t\n\t}", "public void stop() {\r\n running = false;\r\n }", "public void stop() {\n\t\tthis.stopper = true;\n\t}", "protected void stop() {\r\n\t\tif (active) {\r\n\t\t\tsource.stop();\r\n\t\t}\r\n\t}", "public void stop() {\n\t\t\n\t}", "public void stop(){\n }", "@Override\n public synchronized void stop() {\n final double temp = get();\n m_accumulatedTime = temp;\n m_running = false;\n }", "@Override\n public void scanAborted() {\n this.mplLiveData.stopAll();\n this.mplLiveData.emptyPool(); // CKA April 25, 2014\n }", "public void stopped()\n {\n super.stopped();\n muteControl.stop();\n }", "public void stopTimer(){\n this.timer.cancel();\n }", "public void stop() {\n\t}", "@Override\n\tpublic void stopCounter() {\n\n\t\tstop = true;\n\t}", "@Override\r\n\tpublic void stop() {\n\t\t\r\n\t}", "void stop();", "void stop();" ]
[ "0.73845583", "0.73705345", "0.7211061", "0.7177501", "0.7175413", "0.713201", "0.7123475", "0.71159023", "0.6927964", "0.68795997", "0.6861347", "0.68112344", "0.6799366", "0.679328", "0.6776395", "0.6775763", "0.67284155", "0.6702136", "0.6698395", "0.66874427", "0.6678395", "0.66565436", "0.6652858", "0.6650988", "0.6585458", "0.6577861", "0.6571566", "0.65712833", "0.6536427", "0.65156853", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.6501972", "0.647969", "0.64777404", "0.6471484", "0.646442", "0.646442", "0.6461514", "0.64316833", "0.64283043", "0.6424226", "0.6422335", "0.6420694", "0.64173967", "0.64132744", "0.64132744", "0.6410352", "0.6406789", "0.64032644", "0.6394108", "0.63847834", "0.63735604", "0.63735604", "0.63735604", "0.63735604", "0.63735604", "0.63735604", "0.63735604", "0.63735604", "0.63735604", "0.63735604", "0.63735604", "0.6372598", "0.63616633", "0.6355836", "0.63487566", "0.63438106", "0.63435864", "0.6338806", "0.6334102", "0.63323474", "0.6331702", "0.6329126", "0.6326863", "0.6320415", "0.63111293", "0.6309899", "0.6303299", "0.630179", "0.6301117", "0.6291319", "0.6286742", "0.62866783", "0.6286037", "0.627483", "0.6270063", "0.6270063" ]
0.7208081
3
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { if (e.getSource()==btn_aceptar) { try { obtenerIP(); } catch (Exception er) { //TODO: handle exception } } if (e.getSource()==btn_limpiar) { area_txt.setText(""); texto=""; } }
{ "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
DB2SqlStyle style = new DB2SqlStyle();
public static void main(String[] args) throws Exception{ MySqlStyle style = new MySqlStyle(); // OracleStyle style = new OracleStyle(); MySqlConnectoinSource cs = new MySqlConnectoinSource(); SQLLoader loader = new ClasspathLoader("/org/beetl/sql/test"); Interceptor[] inters = new Interceptor[]{ new DebugInterceptor()}; SQLManager sql = new SQLManager(style,loader,cs,new UnderlinedNameConversion(), inters); UserDao dao = sql.getMapper(UserDao.class); dao.getIds3(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BSQL2Java2 createBSQL2Java2();", "public abstract String getDB2ProductTypeTestSql();", "private void setAnsiMode() throws SQLException {\n Statement s = conn.createStatement();\n s.executeUpdate(\"SET sql_mode = 'ansi'\");\n s.close();\n }", "public int getDbType();", "public void writeSQL(SQLOutput stream) throws SQLException{\r\n}", "STYLE createSTYLE();", "public interface SQLConverter {\n String convert(Statement statement, Object params, String mapperId);\n}", "public Symbol getConnectionStyleSnapshot();", "public void createDBSchema() throws NoConnectionToDBException, SQLException, IOException {\n \n InputStream in = EDACCApp.class.getClassLoader().getResourceAsStream(\"edacc/resources/edacc.sql\");\n if (in == null) {\n throw new SQLQueryFileNotFoundException();\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line;\n String text = \"\";\n String l;\n while ((line = br.readLine()) != null) {\n if (!(l = line.replaceAll(\"\\\\s\", \"\")).isEmpty() && !l.startsWith(\"--\")) {\n text += line + \" \";\n }\n }\n in.close();\n Vector<String> queries = new Vector<String>();\n String query = \"\";\n String delimiter = \";\";\n int i = 0;\n while (i < text.length()) {\n if (text.toLowerCase().startsWith(\"delimiter\", i)) {\n i += 10;\n delimiter = text.substring(i, text.indexOf(' ', i));\n i = text.indexOf(' ', i);\n } else if (text.startsWith(delimiter, i)) {\n queries.add(query);\n i += delimiter.length();\n query = \"\";\n } else {\n query += text.charAt(i);\n i++;\n }\n }\n if (!query.replaceAll(\" \", \"\").equals(\"\")) {\n queries.add(query);\n }\n boolean autoCommit = getConn().getAutoCommit();\n try {\n getConn().setAutoCommit(false);\n Statement st = getConn().createStatement();\n for (String q : queries) {\n st.execute(q);\n }\n st.close();\n getConn().commit();\n } catch (SQLException e) {\n getConn().rollback();\n throw e;\n } finally {\n getConn().setAutoCommit(autoCommit);\n }\n }", "@Override\n\tpublic StyleDatabase getStyleDatabase() {\n\t\tStyleDatabase sdb = null;\n\t\tif (targetMedium != null) {\n\t\t\tDeviceFactory df = getStyleSheetFactory().getDeviceFactory();\n\t\t\tif (df != null) {\n\t\t\t\tsdb = df.getStyleDatabase(targetMedium);\n\t\t\t}\n\t\t}\n\t\treturn sdb;\n\t}", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "Statement createStatement();", "Statement createStatement();", "Statement createStatement();", "@Override\r\n\tpublic boolean supportsDb(String type) {\r\n \treturn true;\r\n }", "public interface SQLV4 {\n\n //数据统计\n String ALTER_TABLE_DATASTATISTICS_TYPE = \"ALTER TABLE \" + DataStatisticsTable.TABLE_DATA_STATISTICS\n + \" ADD COLUMN \" + DataStatisticsTable.COLUMN_DATA_TYPE + \" INTEGER DEFAULT 0\";\n}", "BSQL2Java2Package getBSQL2Java2Package();", "String toSql();", "public abstract TC createStyle();", "public abstract String toSQL();", "public void writeSQL(SQLOutput stream) throws SQLException {\n}", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(444, \"\\u0005:\\\"w[K<d qEB$)|,^\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\":\", (DBTable) null, dBDataType0, integer0, integer0);\n StringBuilder stringBuilder0 = new StringBuilder(444);\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"\\u0005:\\\"W[K<D QEB$)|,^(2,2)\", stringBuilder0.toString());\n }", "public void styleMe(){\n\t}", "SQLCaseWhens createSQLCaseWhens();", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(\"Illegal column type format: \");\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, false, nameSpec0, mockPrintWriter0);\n assertNull(defaultDBTable0.getDoc());\n }", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, MANUAL_PRIORITY, STATE, CLASSIFICATION_CATEGORY, \"\n + \"TCLASSIFICATION_KEY, CLASSIFICATION_ID, \"\n + \"WORKBASKET_ID, WORKBASKET_KEY, DOMAIN, \"\n + \"BUSINESS_PROCESS_ID, PARENT_BUSINESS_PROCESS_ID, OWNER, POR_COMPANY, POR_SYSTEM, \"\n + \"POR_INSTANCE, POR_TYPE, POR_VALUE, IS_READ, IS_TRANSFERRED, CUSTOM_1, CUSTOM_2, \"\n + \"CUSTOM_3, CUSTOM_4, CUSTOM_5, CUSTOM_6, CUSTOM_7, CUSTOM_8, CUSTOM_9, CUSTOM_10, \"\n + \"CUSTOM_11, CUSTOM_12, CUSTOM_13, CUSTOM_14, CUSTOM_15, CUSTOM_16, \"\n + \"CUSTOM_INT_1, CUSTOM_INT_2, CUSTOM_INT_3, CUSTOM_INT_4, CUSTOM_INT_5, \"\n + \"CUSTOM_INT_6, CUSTOM_INT_7, CUSTOM_INT_8\"\n + \"<if test=\\\"addClassificationNameToSelectClauseForOrdering\\\">, CNAME</if>\"\n + \"<if test=\\\"addAttachmentClassificationNameToSelectClauseForOrdering\\\">, ACNAME</if>\"\n + \"<if test=\\\"addAttachmentColumnsToSelectClauseForOrdering\\\">\"\n + \", ACLASSIFICATION_ID, ACLASSIFICATION_KEY, CHANNEL, REF_VALUE, ARECEIVED\"\n + \"</if>\"\n + \"<if test=\\\"addWorkbasketNameToSelectClauseForOrdering\\\">, WNAME</if>\"\n + \"<if test=\\\"joinWithUserInfo\\\">, ULONG_NAME </if>\";\n }", "DatabaseClient newTraceDbClient();", "public DB2SqlStatementBuilder(Delimiter defaultDelimiter) {\n super(defaultDelimiter);\n }", "@Test\n public void testSfSqlRead() throws SQLException {\n\n GeometryColumnsUtils.testSfSqlRead(geoPackage, null);\n\n }", "public void drawSelectedStyle(Graphics2D g2) {\n final int PADDING = 2;\n final Color selectColor = new Color(100, 100, 100);\n\n final BasicStroke dashed = new BasicStroke(1.0f, BasicStroke.CAP_BUTT,\n BasicStroke.JOIN_MITER, 10.0f, new float[] {2f}, 0.0f);\n\n final Rectangle inRectangle = new Rectangle(bounds.x + PADDING, bounds.y\n + PADDING, bounds.width - 2 * PADDING,\n bounds.height - 2 * PADDING);\n\n final Rectangle outRectangle = new Rectangle(bounds.x - PADDING, bounds.y\n - PADDING, bounds.width + 2 * PADDING,\n bounds.height + 2 * PADDING);\n\n g2.setStroke(dashed);\n g2.setColor(selectColor);\n\n g2.drawRect(inRectangle.x, inRectangle.y, inRectangle.width,\n inRectangle.height);\n g2.drawRect(outRectangle.x, outRectangle.y, outRectangle.width,\n outRectangle.height);\n }", "public DBMS(Context context) {\n super(context, DBName, null, DBVersion);\n Log.e(\"DBMS=>\", \"yes Db bna d ha\");\n }", "public int getDbType() {\n return dbType;\n }", "public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"XSRSH.S\", (DBTable) null, (-2837), \"qfck0HL\");\n defaultDBColumn0.setDefaultValue(\"2GY_\");\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"XSRSH.S QFCK0HL DEFAULT 2GY_ NULL\", string0);\n }", "java.lang.String getSqlState();", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle getBand2V()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTablePartStyle)get_store().find_element_user(BAND2V$10, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "SqlPackage getSqlPackage();", "private DBParameter() {\n }", "public static void main(String[] args) throws SQLException {\n\t\ttry {\n\t\t\tDriverManager.registerDriver(new com.ibm.db2.jcc.DB2Driver());\n\t\t} catch (Exception cnfe) {\n\t\t\tSystem.out.println(\"Cannot find class!!!\");\n\t\t}\n\t\t\n\n\t\t// connect to database\n\t\t\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:db2://db2:50000/cs421\", \"dwu18\", \"\");\n\t\tStatement statement = conn.createStatement ();\n\n\t\ttry {\n\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\tProcess pr = rt.exec(\"db2 -f project3C.clp\");\n\t\t} catch (Exception e) {\n\t\t}\n\n\t\t\n\t\tint sqlCode=0; // Variable to hold SQLCODE\n \t\tString sqlState=\"00000\"; // Variable to hold SQLSTATE\n\n\n\t\ttry {\n\t\t\tString query = \"select p.providerID, p.firstName, p.lastName, p.specialty, p.experience, p.averageMemberCost, count(*) as count from provider p, services s where p.providerID = s.providerID group by p.providerID, p.firstName, p.lastName, p.specialty, p.experience, p.averageMemberCost order by count desc\"; \n\t\t\t//without indexing\n\t\t\tlong startTime = System.currentTimeMillis();\n\n\t\t\tjava.sql.ResultSet rs1 = statement.executeQuery(query);\n\t\t\twhile (rs1.next()) {\n\t\t\t\tint providerID = rs1.getInt(1);\n\t\t\t\tint averageMemberCost = rs1.getInt(6);\n\t\t\t\tint count = rs1.getInt(7);\n\t\t\t\tSystem.out.println(\"providerID = \" + providerID + \" averageMemberCost = \" + averageMemberCost + \" count = \" + count);\n\t\t\t}\n\t\t\tSystem.out.println (\"DONE\"); \n\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\tlong time = (endTime - startTime);\n\t\t\tSystem.out.println(\"time = \" + time);\n\n\n\t\t\t\t\n\t\t\tString indexing = \"create index ind1 on Provider(providerID)\"; \n\t\t\t\t\t\t\t\n\t\t\tstatement.executeUpdate(indexing);\n\t\t\t\t\n\n\t\t\t//with indexing\n\t\t\tstartTime = System.currentTimeMillis();\n\t\t\t\n\t\t\tjava.sql.ResultSet rs2 = statement.executeQuery(query);\n\t\t\twhile (rs2.next()) {\n\t\t\t\tint providerID = rs2.getInt(1);\n\t\t\t\tint averageMemberCost = rs2.getInt(6);\n\t\t\t\tint count = rs2.getInt(7);\n\t\t\t\tSystem.out.println(\"providerID = \" + providerID + \" averageMemberCost = \" + averageMemberCost + \" count = \" + count);\n\t\t\t}\n\t\t\tSystem.out.println (\"DONE\"); \n\n\t\t\tendTime = System.currentTimeMillis();\n\t\t\ttime = (endTime - startTime);\n\t\t\tSystem.out.println(\"time = \" + time);\n\n\n\n\t\t} catch (SQLException e) {\n \t\t\t\t\t\tsqlCode = e.getErrorCode(); // Get SQLCODE\n \t\t\t\tsqlState = e.getSQLState(); // Get SQLSTATE\n \t\t\t\t\t\tSystem.out.println(\"Code: \" + sqlCode + \" sqlState: \" + sqlState);\n\t\t\t\t\t\tSystem.out.println(\"please try again\");\n\t\t}\n\n\t\n\t\ttry {\n\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\tProcess pr = rt.exec(\"db2 -f project3D.clp\");\n\t\t} catch (Exception e) {\n\t\t}\n\t}", "<DB extends ODatabase> DB getUnderlying();", "protected static Statement newStatement(ReviewDb db) throws SQLException {\n return ((JdbcSchema) db).getConnection().createStatement();\n }", "@Test(timeout = 4000)\n public void test117() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(33554432, \" zELECT l `kROM&\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\" zELECT l `kROM&\", (DBTable) null, dBDataType0);\n defaultDBColumn0.setDefaultValue(\" NULL\");\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\" zELECT l `kROM& ZELECT L `KROM& DEFAULT NULL NULL\", string0);\n }", "private TexeraDb() {\n super(\"texera_db\", null);\n }", "public DataGridColumnStyle(java.lang.Object instance) throws Throwable {\n super(instance);\n if (instance instanceof JCObject) {\n classInstance = (JCObject) instance;\n } else\n throw new Exception(\"Cannot manage object, it is not a JCObject\");\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(40, \"_G\");\n Integer integer0 = RawTransaction.SAVEPOINT_ROLLBACK;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"_G\", defaultDBTable0, dBDataType0, integer0);\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"_G(2)\", stringBuilder0.toString());\n }", "public abstract void toSQL(StringBuilder ret);", "SELECT createSELECT();", "public static void main(String[] args) throws Exception {\n\t\tConvertDB2ToOracle_v2 convert = getInstance();\n\t\tconvert.provide(\"D:\\\\others\\\\temp\\\\db2-extra-tables.txt\");\n\t\tconvert.extractSQL(\"D:\\\\others\\\\temp\\\\ddlfile.sql\");\n\t}", "public abstract String getStyle();", "protected void preUpdateSchema(CiDb db) throws OrmException, SQLException {\n }", "DatabaseClient newStagingClient();", "boolean isSQL();", "public StyleId getStyleId ();", "public int getJdbcType();", "public interface Sql {\n public java.sql.Connection InitConnection() throws RmodelException.CommonException, RmodelException.SqlException;\n public void setConnection(Connection connection);\n public void CloseConnection() throws RmodelException.SqlException;\n public java.sql.Connection getSqlConnection() throws RmodelException.SqlException;\n}", "final public SqlStatement AlterStatement() throws ParseException {SqlStatement st;\n jj_consume_token(ALTER);\n st = AlterTableStatement();\nreturn st;\n}", "public interface DatabaseCondition extends SQLObject {\n \n}", "DbObjectName createDbObjectName();", "public boolean isStoredProcDB2Error(){\r\n\treturn getERR_FLAG().equals(STORED_PROC_ERROR_FLAG) && getRETURN_CODE().equals(DB2_ERROR_CODE);\r\n}", "@Override \r\n protected Object determineCurrentLookupKey() {\n return DbContextHolder.getDbType(); \r\n }", "public VisualizationStyle getOldStyle()\r\n {\r\n return myOldStyle;\r\n }", "private DbQuery() {}", "public XSSFBorderFormatting createBorderFormatting(){\n CTDxf dxf = getDxf(true);\n CTBorder border;\n if(!dxf.isSetBorder()) {\n border = dxf.addNewBorder();\n } else {\n border = dxf.getBorder();\n }\n\n return new XSSFBorderFormatting(border, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }", "public static DatabaseType getDatabaseType(DatabaseMetaData dbmd) throws SQLException {\n\n\tDatabaseType databaseType = DatabaseType.unknown;\n\n\tboolean transactionsSupported = dbmd.supportsTransactions();\n\tint transactionIsolation = dbmd.getDefaultTransactionIsolation();\n\tboolean subqueriesSupported = dbmd.supportsCorrelatedSubqueries();\n\tboolean scrollResultsSupported;\n\n\ttry {\n\t scrollResultsSupported = dbmd.supportsResultSetType(ResultSet.TYPE_SCROLL_INSENSITIVE);\n\t} catch (Exception e) {\n\t scrollResultsSupported = false;\n\t}\n\n\t// Supports batch updates.\n\tboolean batchUpdatesSupported = dbmd.supportsBatchUpdates();\n\t// Set defaults for other meta properties.\n\tboolean streamTextRequired = false;\n\tboolean maxRowsSupported = true;\n\tboolean fetchSizeSupported = true;\n\tboolean streamBlobRequired = false;\n\n\t// Get the database name so that we can perform meta\n\t// data settings.\n\tString dbName = dbmd.getDatabaseProductName().toLowerCase();\n\tString driverName = dbmd.getDriverName().toLowerCase();\n\tString dbVersion = dbmd.getDatabaseProductVersion();\n\n\tString databaseProductName = dbmd.getDatabaseProductName();\n\tString databaseProductVersion = dbmd.getDatabaseProductVersion();\n\tString jdbcDriverName = dbmd.getDriverName();\n\tString jdbcDriverVersion = dbmd.getDriverVersion();\n\n\tif (dbName.indexOf(\"oracle\") != -1) {\n\t databaseType = DatabaseType.oracle;\n\t streamTextRequired = true;\n\t scrollResultsSupported = false;\n\t // The i-net AUGURO JDBC driver\n\t if (driverName.indexOf(\"auguro\") != -1) {\n\t\tstreamTextRequired = false;\n\t\tfetchSizeSupported = true;\n\t\tmaxRowsSupported = false;\n\t } else if (driverName.indexOf(\"Weblogic, Inc. Java-OCI JDBC Driver\") != -1)\n\t\tstreamTextRequired = false;\n\t} else\n\t// Postgres properties\n\tif (dbName.indexOf(\"postgres\") != -1) {\n\t databaseType = DatabaseType.postgresql;\n\t scrollResultsSupported = false;\n\t streamBlobRequired = true;\n\t fetchSizeSupported = false;\n\t} else if (dbName.indexOf(\"interbase\") != -1) {\n\t fetchSizeSupported = false;\n\t maxRowsSupported = false;\n\t} else if (dbName.indexOf(\"sql server\") != -1) {\n\t databaseType = DatabaseType.sqlserver;\n\t if (driverName.indexOf(\"una\") != -1) {\n\t\tfetchSizeSupported = true;\n\t\tmaxRowsSupported = false;\n\t }\n\t if (driverName.indexOf(\"jtds\") != -1) {\n\t\tfetchSizeSupported = true;\n\t\tmaxRowsSupported = true;\n\t } else {\n\t\tstreamBlobRequired = true;\n\t\tfetchSizeSupported = false;\n\t\tmaxRowsSupported = false;\n\t\tscrollResultsSupported = false;\n\t }\n\t} else if (dbName.indexOf(\"mysql\") != -1) {\n\t if (dbVersion != null && dbVersion.startsWith(\"3.\"))\n\t\tdatabaseType = DatabaseType.mysql;\n\t else\n\t\tdatabaseType = DatabaseType.mysql;\n\n\t transactionsSupported = false;\n\t} else if (dbName.indexOf(\"derby\") != -1)\n\t databaseType = DatabaseType.derby;\n\telse if (dbName.indexOf(\"db2\") != -1)\n\t databaseType = DatabaseType.db2;\n\telse if (dbName.indexOf(\"hsql\") != -1)\n\t databaseType = DatabaseType.hsqldb;\n\n\tdatabaseType.transactionsSupported = transactionsSupported;\n\tdatabaseType.batchUpdatesSupported = batchUpdatesSupported;\n\tdatabaseType.transactionIsolation = transactionIsolation;\n\tdatabaseType.streamTextRequired = streamTextRequired;\n\tdatabaseType.streamBlobRequired = streamBlobRequired;\n\tdatabaseType.fetchSizeSupported = fetchSizeSupported;\n\tdatabaseType.subqueriesSupported = subqueriesSupported;\n\tdatabaseType.maxRowsSupported = maxRowsSupported;\n\tdatabaseType.scrollResultsSupported = scrollResultsSupported;\n\tdatabaseType.databaseProductName = databaseProductName;\n\tdatabaseType.databaseProductVersion = databaseProductVersion;\n\tdatabaseType.jdbcDriverVersion = jdbcDriverVersion;\n\tdatabaseType.jdbcDriverName = jdbcDriverName;\n\n\treturn databaseType;\n\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n DBSchema dBSchema0 = new DBSchema(\"\");\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"k4#~A6 _d6{6v)5_\", dBSchema0);\n DBDataType dBDataType0 = DBDataType.getInstance((-280560843), \"\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"new org.apache.derby.catalog.TriggerOldTransitionRows() \", defaultDBTable0, dBDataType0);\n StringBuilder stringBuilder0 = new StringBuilder(\"\");\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"\", stringBuilder0.toString());\n }", "protected void initializer() {\n\t\tselect = new DBSelect();\n\t\ttry {\n\t\t\tselect.setDriverName(\"com.ibm.as400.access.AS400JDBCDriver\");\n\t\t\tselect.setUrl(\"jdbc:as400://192.168.101.14\");\n\t\t\tselect.setCommand(\n\t\t\t\"SELECT DISTINCT artitda.codaat, articulo.descma, articulo.des1ma, articulo.des2ma, articulo.unvema, SUBSTR(VARCHAR(ARTITDA.CODAAT), 1, 2) as departamento, SUBSTR(VARCHAR(ARTITDA.CODAAT), 3, 2) as lineaseccion, costos.coslllca, artitda.prevat, artitda.impuat as impuesto, articulo.empvma as empaque, articulo.povema as descuentoempaque, articulo.deemma as descuentoempleado, articulo.esrema, articulo.fecama \t\t\tFROM SISTEMA.ARTICULO as articulo inner join COMPRAS.LMLCA03 as costos on (articulo.codama = costos.artillca) inner join COMPRAS.ARTITDA as artitda on (articulo.codama = artitda.codaat) \t\t\tWHERE artitda.codaat IN (SELECT articulo.codama FROM SISTEMA.ARTICULO as articulo, COMPRAS.ARTITDA as artitda \t\t\tWHERE (CAST (ARTITDA.TIENAT AS SMALLINT) = 3) AND (ARTICULO.ESREMA = 'V') AND (ARTITDA.EXACAT <> 0) AND ((SUBSTR(VARCHAR(ARTITDA.CODAAT), 1, 2) = '90') OR (ARTITDA.CODAAT < 3500000)) and (articulo.codama = artitda.codaat) )\"); \n\t\t\t\t//\"SELECT * FROM COMPRAS.ARTITDA, SISTEMA.ARTICULO WHERE (COMPRAS.ARTITDA.CODAAT = SISTEMA.ARTICULO.CODAMA) AND (CAST (COMPRAS.ARTITDA.TIENAT AS SMALLINT) = 3) AND (SISTEMA.ARTICULO.ESREMA = 'V') AND (COMPRAS.ARTITDA.EXACAT <> 0) AND ((SUBSTR(VARCHAR(COMPRAS.ARTITDA.CODAAT), 1, 2) = '90') OR (COMPRAS.ARTITDA.CODAAT < 3500000))\");\n\t\t\t//\"SELECT count(*) FROM SISTEMA.ARTICULO as articulo inner join COMPRAS.ARTITDA as artitda on (articulo.codama = artitda.codaat) WHERE (CAST (ARTITDA.TIENAT AS SMALLINT) = 3) AND (ARTICULO.ESREMA = 'V') AND (ARTITDA.EXACAT <> 0) AND ((SUBSTR(VARCHAR(ARTITDA.CODAAT), 1, 2) = '90') OR (ARTITDA.CODAAT < 3500000))\"\t\t\t\n\t\t\t//DBParameterMetaData parmMetaData = select.getParameterMetaData();\n\t\t} catch (SQLException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "protected abstract NativeSQLStatement createNativeSridStatement();", "public CreateJavaDBDatabaseOperator() {\n super(Bundle.getStringTrimmed(\"org.netbeans.modules.derby.Bundle\", \"LBL_CreateDatabaseTitle\"));\n }", "protected void decorateSQL(Statement stmt) throws SQLException\n {\n getConnection();\n\n // create a table with some data\n stmt.executeUpdate(\n \"CREATE TABLE foo (a int, b char(100))\");\n stmt.execute(\"insert into foo values (1, 'hello world')\");\n stmt.execute(\"insert into foo values (2, 'happy world')\");\n stmt.execute(\"insert into foo values (3, 'sad world')\");\n stmt.execute(\"insert into foo values (4, 'crazy world')\");\n for (int i=0 ; i<7 ; i++)\n stmt.execute(\"insert into foo select * from foo\");\n stmt.execute(\"create index fooi on foo(a, b)\");\n }", "@Test(timeout = 4000)\n public void test074() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"dKop matrUalized view\", (DBTable) null, 149, \"org.h2.store.LobStorage\");\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"ORG.H2.STORE.LOBSTORAGE\", stringBuilder0.toString());\n }", "public CellStyle createCellStyle() {\n\t\treturn null;\n\t}", "void setStyle(String style);", "B database(S database);", "private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed\n String sql[] = new String[3];\n \n jButton2.setText(\"Reset\");\n \n try\n {\n Class.forName(\"com.ibm.db2.jcc.DB2Driver\");\n sqlBuilder(1000);\n }\n catch(Exception ex)\n {\n ex.printStackTrace();\n return;\n } \n }", "public interface BSQL2Java2Factory extends EFactory\n{\n /**\n * The singleton instance of the factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @generated\n */\n BSQL2Java2Factory eINSTANCE = bsql2java.bSQL2Java2.impl.BSQL2Java2FactoryImpl.init();\n\n /**\n * Returns a new object of class '<em>BSQL2 Java2</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSQL2 Java2</em>'.\n * @generated\n */\n BSQL2Java2 createBSQL2Java2();\n\n /**\n * Returns a new object of class '<em>BSQL Machine</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSQL Machine</em>'.\n * @generated\n */\n BSQLMachine createBSQLMachine();\n\n /**\n * Returns a new object of class '<em>BOperation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BOperation</em>'.\n * @generated\n */\n BOperation createBOperation();\n\n /**\n * Returns a new object of class '<em>BTable</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BTable</em>'.\n * @generated\n */\n BTable createBTable();\n\n /**\n * Returns a new object of class '<em>Attribute</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Attribute</em>'.\n * @generated\n */\n Attribute createAttribute();\n\n /**\n * Returns a new object of class '<em>BType</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BType</em>'.\n * @generated\n */\n BType createBType();\n\n /**\n * Returns a new object of class '<em>Bool Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Bool Operation</em>'.\n * @generated\n */\n BoolOperation createBoolOperation();\n\n /**\n * Returns a new object of class '<em>BSub True</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSub True</em>'.\n * @generated\n */\n BSubTrue createBSubTrue();\n\n /**\n * Returns a new object of class '<em>BSub False</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSub False</em>'.\n * @generated\n */\n BSubFalse createBSubFalse();\n\n /**\n * Returns a new object of class '<em>String Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>String Operation</em>'.\n * @generated\n */\n StringOperation createStringOperation();\n\n /**\n * Returns a new object of class '<em>BAny Block</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BAny Block</em>'.\n * @generated\n */\n BAnyBlock createBAnyBlock();\n\n /**\n * Returns a new object of class '<em>Void Operation</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Void Operation</em>'.\n * @generated\n */\n VoidOperation createVoidOperation();\n\n /**\n * Returns a new object of class '<em>BPredicate</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BPredicate</em>'.\n * @generated\n */\n BPredicate createBPredicate();\n\n /**\n * Returns a new object of class '<em>SQL Call</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>SQL Call</em>'.\n * @generated\n */\n SQLCall createSQLCall();\n\n /**\n * Returns a new object of class '<em>Table Instance</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>Table Instance</em>'.\n * @generated\n */\n TableInstance createTableInstance();\n\n /**\n * Returns a new object of class '<em>TI Assignment</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>TI Assignment</em>'.\n * @generated\n */\n TIAssignment createTIAssignment();\n\n /**\n * Returns a new object of class '<em>BParameter Typing</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BParameter Typing</em>'.\n * @generated\n */\n BParameterTyping createBParameterTyping();\n\n /**\n * Returns a new object of class '<em>BSubstitution</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSubstitution</em>'.\n * @generated\n */\n BSubstitution createBSubstitution();\n\n /**\n * Returns a new object of class '<em>BUnion</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BUnion</em>'.\n * @generated\n */\n BUnion createBUnion();\n\n /**\n * Returns a new object of class '<em>BElement Structure</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BElement Structure</em>'.\n * @generated\n */\n BElementStructure createBElementStructure();\n\n /**\n * Returns a new object of class '<em>BElement</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BElement</em>'.\n * @generated\n */\n BElement createBElement();\n\n /**\n * Returns a new object of class '<em>BSet</em>'.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return a new object of class '<em>BSet</em>'.\n * @generated\n */\n BSet createBSet();\n\n /**\n * Returns the package supported by this factory.\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * @return the package supported by this factory.\n * @generated\n */\n BSQL2Java2Package getBSQL2Java2Package();\n\n}", "public void styleforOne() {\r\n\t\t\r\n\r\n\t\tsuper.styleforOne();\r\n\t\t\r\n\t}", "public void formDatabaseTable() {\n }", "final public SqlStatement ScriptStatement() throws ParseException {SqlStatement st = null;\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USE:\n case CREATE:\n case DROP:\n case SET:\n case INSERT:\n case ALTER:\n case LOCK:\n case UNLOCK:\n case START:\n case COMMIT:\n case 117:{\n st = Statement();\n jj_consume_token(117);\n break;\n }\n case 0:{\n jj_consume_token(0);\n break;\n }\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\nreturn st;\n}", "public int getStyle() {\n\treturn style;\n }", "public void setStyle(String st){\n style = st;\n }", "public String getSQLTimestampFormat();", "public CodeStyle getStyle(){\r\n\t\treturn m_style;\r\n\t}", "public SQLHandler(Context context) {\n \t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n \t}", "private DBContract() {}", "private DBContract() {}", "public Style createSelectBoxStyle() {\n \t \tStroke stroke = styleFactory.createStroke(\n \t \t\t\tfilterFactory.literal(Color.BLUE),\n \t \t\t\tfilterFactory.literal(1),\n \tnull,\n \tnull,\n \tnull,\n \tnew float[] { 5, 2 },\n \tnull,\n \tnull,\n \tnull\n\t\t);\n\t\t//Cria um Symbolizer para linha.\n\t\tPolygonSymbolizer polygonSymbolizer = styleFactory.createPolygonSymbolizer(stroke, null, null);\n\t\t//Regra para um estilo de fei��o.\n\t\tRule rulePoly = styleFactory.createRule();\n\t\t\n\t\t//Adiciona o PointSymbolizer na regra.\n\t\t//rulePoly.setName(\"Polygon\"); \n\t\t//ruleLine.setFilter(filterFactory.equals(filterFactory.property(\"geom\"), filterFactory.literal(false)));\n\t\trulePoly.symbolizers().add(polygonSymbolizer); \n\t\t\t \n\t\t//Adiciona uma ou N regras em uma estilo de uma determinada fei��o.\n\t\tFeatureTypeStyle ftsPoly = styleFactory.createFeatureTypeStyle(new Rule[]{rulePoly});\n\t\t \n\t\t//Cria o estilo (SLD).\n\t\tStyle style = styleFactory.createStyle();\n\t\tstyle.featureTypeStyles().add(ftsPoly);\n\t\t \n\t\treturn style;\n }", "public void setDbTable(String v) {this.dbTable = v;}", "BTable createBTable();", "public DB() {\r\n\t\r\n\t}", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n DBCatalog dBCatalog0 = new DBCatalog(\"6-ui>g+Hd$kU3\");\n DBSchema dBSchema0 = new DBSchema(\"execute\", dBCatalog0);\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"WoBY)&<$HMN(Y=8C aU\", dBSchema0);\n DBDataType dBDataType0 = DBDataType.getInstance(39, \">n'?\");\n Integer integer0 = RawTransaction.LOCK_ESCALATE;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"/2Wp5dC9l(vh\", defaultDBTable0, dBDataType0, integer0, integer0);\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"/2Wp5dC9l(vh >N'?(3,3) NULL\", string0);\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"4$\");\n DBDataType dBDataType0 = DBDataType.getInstance(\"BLOB\");\n Integer integer0 = RawTransaction.ABORT;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"glkT7%5\", defaultDBTable0, dBDataType0, integer0);\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0, stringBuilder0);\n assertEquals(\"BLOB\", stringBuilder0.toString());\n }", "public StrColumn getPdbFormatCompatible() {\n return delegate.getColumn(\"pdb_format_compatible\", DelegatingStrColumn::new);\n }", "private DbConnection() {\n }", "@Test\n public void test1() throws SQLException {\n EmbeddedDatabase db = new EmbeddedDatabaseBuilder()\n .generateUniqueName(true)\n .setType(EmbeddedDatabaseType.H2)\n .setScriptEncoding(\"UTF-8\")\n .ignoreFailedDrops(true)\n .addScript(\"schema.sql\")\n .addScripts(\"data.sql\")\n .build();\n\n JdbcTemplate jdbcTemplate = new JdbcTemplate(db);\n jdbcTemplate.execute(\"insert into user (userName, password) values ('xxx1', 'zzz')\");\n jdbcTemplate.execute(\"insert into user (userName, password) values ('xxx2', 'zzz')\");\n ResultSet resultSet = db.getConnection().createStatement().executeQuery(\"select * from user\");\n DBTablePrinter.printResultSet(resultSet);\n\n Connection connection = db.getConnection();\n DBTablePrinter.printTable(connection, \"user\");\n\n // perform actions against the db (EmbeddedDatabase extends javax.sql.DataSource)\n\n db.shutdown();\n }", "public void setDc2( String dc2 )\n {\n this.dc2 = dc2;\n }", "public int getSqlType() { return _type; }", "JavaStatement createJavaStatement();", "@Override\n\tpublic String getDbType() {\n\t\treturn this.dbType;\n\t}", "@Test(timeout = 4000)\n public void test114() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(\"null\");\n Integer integer0 = RawTransaction.COMMIT;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"null\", defaultDBTable0, dBDataType0, integer0, integer0);\n String string0 = SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0);\n assertEquals(\"NULL(0,0)\", string0);\n }", "public final static int getRecordStyle(int dbIdx, String styleStr) {\n\t\tint type = Constants.NULL_INTEGER;\n\n\t\ttry {\n\t\t\ttype = Integer.parseInt(styleStr);\n\t\t} catch (Exception e) {\t}\n\n\t\treturn type;\n\t}" ]
[ "0.63155437", "0.5811064", "0.5420267", "0.5272113", "0.52667475", "0.524964", "0.52044696", "0.5200416", "0.5169156", "0.5104837", "0.5095521", "0.50663465", "0.50663465", "0.50663465", "0.5040769", "0.50387406", "0.50380373", "0.50286406", "0.50200456", "0.5013286", "0.500468", "0.5001447", "0.49913284", "0.4970143", "0.4945017", "0.4936768", "0.49366048", "0.49266264", "0.49025255", "0.48905867", "0.48837358", "0.48782885", "0.48716512", "0.48682323", "0.4858678", "0.48544413", "0.48450437", "0.484167", "0.4838642", "0.48325562", "0.48322818", "0.48276502", "0.4824328", "0.48044354", "0.4797955", "0.47939962", "0.47918245", "0.47887304", "0.47811165", "0.47771573", "0.47763047", "0.47742352", "0.47636342", "0.4760048", "0.47584617", "0.47578776", "0.475413", "0.47501314", "0.47470525", "0.47453243", "0.473501", "0.47300568", "0.4724307", "0.47229877", "0.46996653", "0.46988347", "0.4694482", "0.46838087", "0.46758118", "0.46750164", "0.46685937", "0.46409738", "0.46406588", "0.46396083", "0.46392828", "0.4636642", "0.46358326", "0.46345967", "0.46282443", "0.46229574", "0.46229044", "0.46218795", "0.4621052", "0.4619833", "0.4619306", "0.4619306", "0.46180606", "0.4613831", "0.46135193", "0.4606677", "0.46011183", "0.45947084", "0.45945066", "0.4588143", "0.45880684", "0.4586817", "0.45834136", "0.45822883", "0.45802027", "0.45784494", "0.45776245" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.addresses attribute.
public List<Address> getAddresses(final SessionContext ctx) { List<Address> coll = (List<Address>)getProperty( ctx, ADDRESSES); return coll != null ? coll : Collections.EMPTY_LIST; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAddresses()\n {\n return _addresses;\n }", "public List<Address> getAddresses() {\r\n\r\n if (this.addresses == null) {\r\n\r\n this.addresses = new ArrayList<Address>();\r\n\r\n }\r\n\r\n return this.addresses;\r\n\r\n }", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public ArrayList<Address> getAddresses() {\n return addresses;\n }", "public String getCustomerAddress() {\n return customerAddress;\n }", "public org.nhind.config.Address[] getAddress() {\n return address;\n }", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public com.commercetools.api.models.common.Address getAddress() {\n return this.address;\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "public Address getAddress() {\n return address;\n }", "public Address getAddress() {\n return address;\n }", "public Address getAddress() {\n return address;\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "public String getAddress(){\n return address;\n\n }", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public Address getAddress(){\n\t\treturn address;\n\t}", "public String getAddress() {\n return m_Address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "public List<String> getAddresses() {\n // Lazy initialization with double-check.\n List<String> a = this.addresses;\n if (a == null) {\n synchronized (this) {\n a = this.addresses;\n if (a == null) {\n this.addresses = a = new ArrayList<String>();\n }\n }\n }\n return a;\n }", "public String getAddress(){\n\t\treturn address;\n\t}", "public String getCustomerAddr() {\n return customerAddr;\n }", "public Collection<Address> getAddressCollection(){\r\n\t\treturn addressCollection;\r\n\t}", "public String getAddress(){\r\n return address;\r\n }", "@Override\n\tpublic String getAddressDetails() {\n\t\treturn \"[\" + this.street + \" \" + this.city + \" \" + this.state + \" \" + this.zip + \"]\";\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public java.lang.String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n\t\treturn this.address;\r\n\t}", "public final String getAddress() {\n return address;\n }", "public String getAddress() {\n return this._address;\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn this.address;\n\t}", "@Override\n public String getAddress() {\n\n if(this.address == null){\n\n this.address = TestDatabase.getInstance().getClientField(token, id, \"address\");\n }\n\n return address;\n }", "public String getAddress() {return address;}", "public String getAddress() {\n return (this.addresses == null) ? null\n : (this.addresses.isEmpty() ? null : this.addresses.get(0));\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "@java.lang.Override\n public com.google.protobuf.StringValueOrBuilder getAddressOrBuilder() {\n return getAddress();\n }", "public byte[] getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n return m_address;\n }", "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "public List<String> getAddresses() {\n return mIPs;\n }", "public List getAddressList() {\r\n System.out.println(\"List Elements :\" + addressList);\r\n return addressList;\r\n }", "@Override\r\n\tpublic String getAddress() {\n\t\treturn address;\r\n\t}" ]
[ "0.76104677", "0.7305901", "0.7272523", "0.72413975", "0.7148282", "0.6955154", "0.6931093", "0.6909391", "0.6811776", "0.6811776", "0.6811776", "0.6811776", "0.6811776", "0.6811776", "0.6811776", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.6801688", "0.67936707", "0.67936707", "0.6776931", "0.6776931", "0.6775143", "0.6764565", "0.6764565", "0.6764565", "0.67526144", "0.674792", "0.6746041", "0.6744931", "0.6742854", "0.6733345", "0.6722004", "0.67163754", "0.67119265", "0.6703962", "0.67003536", "0.66780156", "0.6671606", "0.6664433", "0.6664433", "0.6664433", "0.665627", "0.665627", "0.6651567", "0.6640454", "0.66366076", "0.66313636", "0.6609045", "0.6609045", "0.66062015", "0.66062015", "0.66062015", "0.66062015", "0.66062015", "0.66062015", "0.66062015", "0.6573257", "0.6568573", "0.6557775", "0.65520257", "0.6550848", "0.6550848", "0.6540241", "0.6535503", "0.6529077", "0.6510393", "0.6485522", "0.6469829", "0.64655983" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.addresses attribute.
public List<Address> getAddresses() { return getAddresses( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAddresses()\n {\n return _addresses;\n }", "public List<Address> getAddresses() {\r\n\r\n if (this.addresses == null) {\r\n\r\n this.addresses = new ArrayList<Address>();\r\n\r\n }\r\n\r\n return this.addresses;\r\n\r\n }", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public ArrayList<Address> getAddresses() {\n return addresses;\n }", "public String getCustomerAddress() {\n return customerAddress;\n }", "public org.nhind.config.Address[] getAddress() {\n return address;\n }", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public com.commercetools.api.models.common.Address getAddress() {\n return this.address;\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getAddress() {\n return this.address;\n }", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "public Address getAddress() {\n return address;\n }", "public Address getAddress() {\n return address;\n }", "public Address getAddress() {\n return address;\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address.getModelObjectAsString();\r\n\t}", "public String getAddress(){\n return address;\n\n }", "public String getAddress(){\n\t\treturn this.address;\n\t}", "public Address getAddress(){\n\t\treturn address;\n\t}", "public String getAddress() {\n return m_Address;\n }", "public String getAddress()\n {\n \treturn address;\n }", "public String getAddress()\r\n\t{\r\n\t\treturn address;\r\n\t}", "public List<String> getAddresses() {\n // Lazy initialization with double-check.\n List<String> a = this.addresses;\n if (a == null) {\n synchronized (this) {\n a = this.addresses;\n if (a == null) {\n this.addresses = a = new ArrayList<String>();\n }\n }\n }\n return a;\n }", "public String getAddress(){\n\t\treturn address;\n\t}", "public String getCustomerAddr() {\n return customerAddr;\n }", "public Collection<Address> getAddressCollection(){\r\n\t\treturn addressCollection;\r\n\t}", "public String getAddress(){\r\n return address;\r\n }", "@Override\n\tpublic String getAddressDetails() {\n\t\treturn \"[\" + this.street + \" \" + this.city + \" \" + this.state + \" \" + this.zip + \"]\";\n\t}", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public String getAddress() {\r\n\t\treturn address;\r\n\t}", "public java.lang.String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n\t\treturn this.address;\r\n\t}", "public final String getAddress() {\n return address;\n }", "public String getAddress() {\n return this._address;\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress()\r\n {\r\n return address.getFullAddress();\r\n }", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n\t\treturn this.address;\n\t}", "@Override\n public String getAddress() {\n\n if(this.address == null){\n\n this.address = TestDatabase.getInstance().getClientField(token, id, \"address\");\n }\n\n return address;\n }", "public String getAddress() {return address;}", "public String getAddress() {\n return (this.addresses == null) ? null\n : (this.addresses.isEmpty() ? null : this.addresses.get(0));\n }", "public java.lang.String getAddress() {\n\treturn address;\n}", "public java.lang.String getAddress() {\n\treturn address;\n}", "@java.lang.Override\n public com.google.protobuf.StringValueOrBuilder getAddressOrBuilder() {\n return getAddress();\n }", "public byte[] getAddress() {\n\t\treturn address;\n\t}", "public String getAddress() {\n return m_address;\n }", "public String getAddress() {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\treturn address;\t\t\r\n\t}", "public List<String> getAddresses() {\n return mIPs;\n }", "public List getAddressList() {\r\n System.out.println(\"List Elements :\" + addressList);\r\n return addressList;\r\n }", "@Override\r\n\tpublic String getAddress() {\n\t\treturn address;\r\n\t}" ]
[ "0.76101476", "0.7304804", "0.72727066", "0.724095", "0.71483946", "0.6954168", "0.6930529", "0.69091123", "0.6811878", "0.6811878", "0.6811878", "0.6811878", "0.6811878", "0.6811878", "0.6811878", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6801852", "0.6794104", "0.6794104", "0.6776963", "0.6776963", "0.67747265", "0.67653286", "0.67653286", "0.67653286", "0.67526996", "0.67488277", "0.6746108", "0.67453915", "0.67428654", "0.67335624", "0.6721946", "0.6715866", "0.67121065", "0.67040616", "0.67001486", "0.66788346", "0.66706955", "0.6665325", "0.6665325", "0.6665325", "0.6656066", "0.6656066", "0.66515315", "0.66402274", "0.6636298", "0.66311634", "0.66088367", "0.66088367", "0.6606002", "0.6606002", "0.6606002", "0.6606002", "0.6606002", "0.6606002", "0.6606002", "0.65730214", "0.6569062", "0.6558414", "0.6551493", "0.6551371", "0.6551371", "0.65411437", "0.65348834", "0.6528906", "0.6509613", "0.6484685", "0.6468839", "0.6465959" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.addresses attribute.
public void setAddresses(final SessionContext ctx, final List<Address> value) { setProperty(ctx, ADDRESSES,value == null || !value.isEmpty() ? value : null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void setAddresses(final List<Address> value)\n\t{\n\t\tsetAddresses( getSession().getSessionContext(), value );\n\t}", "public void setAddress(String address) {\n this.address = address;\n }", "public abstract void setCustomerAddress(Address address);", "public String getAddresses()\n {\n return _addresses;\n }", "@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}", "public void setAddress(String address) { this.address = address; }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "public void setBillingAddressInCart(Address addr);", "public void setAddress(String address)\n {\n this.address = address;\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(final String address){\n this.address=address;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "Builder setAddress(String address);", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public Builder setAddress(\n\t\t\t\t\t\tjava.lang.String value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\n\t\t\t\t\taddress_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public String getCustomerAddress() {\n return customerAddress;\n }", "public List<Address> getAddresses() {\r\n\r\n if (this.addresses == null) {\r\n\r\n this.addresses = new ArrayList<Address>();\r\n\r\n }\r\n\r\n return this.addresses;\r\n\r\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "@Generated(hash = 607080948)\n public void setAddress(Address address) {\n synchronized (this) {\n this.address = address;\n addressId = address == null ? null : address.getId();\n address__resolvedKey = addressId;\n }\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "HandlebarsKnotOptions setAddress(String address) {\n this.address = address;\n return this;\n }", "public ArrayList<Address> getAddresses() {\n return addresses;\n }", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public Collection<Address> getAddressCollection(){\r\n\t\treturn addressCollection;\r\n\t}", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public void setAddressCollection(Collection<Address> addressCollection){\r\n\t\tthis.addressCollection = addressCollection;\r\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public String getAddress(){\n return address;\n\n }", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) { throw new NullPointerException(); }\n checkByteStringIsUtf8(value);\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public void setAddress(PostalAddress address) {\n this.address = address;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(final String address) {\n this._address = address;\n }", "public void setAddress(String address) {\n\t\tthis.address = StringUtils.trimString( address );\n\t}", "@Override\n\tpublic void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\r\n return address;\r\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "Restaurant setRestaurantAddress(Address address);", "public void setInternalAddress(String address);" ]
[ "0.7392891", "0.70560163", "0.6881006", "0.6401508", "0.63963234", "0.63737285", "0.6370734", "0.6369875", "0.63591224", "0.62919587", "0.62919587", "0.62919587", "0.62789047", "0.62684566", "0.6243039", "0.62428856", "0.62031627", "0.6200422", "0.6200422", "0.6200422", "0.6200422", "0.6196047", "0.6194524", "0.6190226", "0.6190226", "0.6169487", "0.6160743", "0.6160743", "0.6160743", "0.61473244", "0.61473244", "0.61033463", "0.61033463", "0.6097045", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.6082684", "0.60809875", "0.60619646", "0.6057824", "0.6044005", "0.6044005", "0.60106105", "0.5985798", "0.5981156", "0.5971652", "0.59684545", "0.59684545", "0.59644616", "0.5964113", "0.59638184", "0.5927881", "0.5891809", "0.5891497", "0.58893454", "0.58892685", "0.5884418", "0.5879551", "0.5879551", "0.5879551", "0.5879551", "0.5879551", "0.58762866", "0.5874562", "0.58352953", "0.5830574", "0.58256245", "0.581074", "0.5810516", "0.5809233", "0.5808679", "0.57923216", "0.5774001", "0.57708836", "0.57616085", "0.57437414", "0.57437414", "0.57437414", "0.57418156", "0.57418156", "0.57418156", "0.57418156", "0.57418156", "0.57418156", "0.57418156", "0.57260877", "0.5725843" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.addresses attribute.
public void setAddresses(final List<Address> value) { setAddresses( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setAddresses(List<Address> addresses) {\r\n\r\n this.addresses = addresses;\r\n\r\n }", "public void setAddresses(List<String> addresses) {\n this.addresses = addresses;\n }", "public final void setAdresses(List<Address> addresses) {\r\n\t\tthis.addresses = addresses;\r\n\t}", "public void setAddress(String address) {\n this.address = address;\n }", "public abstract void setCustomerAddress(Address address);", "@Test\n\tvoid testSetAddress() {\n\t\tassertNull(this.customer.getAddress());\n\t\t\n\t\t//sets address for customer\n\t\tthis.customer.setAddress(\"Brooklyn, NY\");\n\t\t\n\t\t//checks that address was set correctly\n\t\tassertEquals(\"Brooklyn, NY\", this.customer.getAddress());\n\t\t\n\t\t//reset address for customer\n\t\tthis.customer.setAddress(\"Cranston, RI\");\n\t\t\n\t\t//checks that address was reset correctly\n\t\tassertEquals(\"Cranston, RI\", this.customer.getAddress());\n\t}", "public String getAddresses()\n {\n return _addresses;\n }", "public void setAddress(String address) { this.address = address; }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(Address address) {\n this.address = address;\n }", "public void setAddress(String _address){\n address = _address;\n }", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "public void setBillingAddressInCart(Address addr);", "public void setAddress(String address)\n {\n this.address = address;\n }", "public void setAddress(String adrs) {\n address = adrs;\n }", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(String address);", "public void setAddress(final String address){\n this.address=address;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(org.nhind.config.Address[] address) {\n this.address = address;\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n address_ = value;\n onChanged();\n return this;\n }", "Builder setAddress(String address);", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public void setAddress(String address) {\n this.address = address;\n }", "public Builder setAddress(\n\t\t\t\t\t\tjava.lang.String value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\n\t\t\t\t\taddress_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}", "public void setAddress(String newAddress) {\r\n\t\tthis.address = newAddress;\r\n\t}", "public void setAddress2(String address2);", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public void setAddress(String address){\n\t\tthis.address = address;\n\t}", "public String getCustomerAddress() {\n return customerAddress;\n }", "public List<Address> getAddresses() {\r\n\r\n if (this.addresses == null) {\r\n\r\n this.addresses = new ArrayList<Address>();\r\n\r\n }\r\n\r\n return this.addresses;\r\n\r\n }", "public void setAddress(int address)\n {\n this.address = address;\n }", "@Generated(hash = 607080948)\n public void setAddress(Address address) {\n synchronized (this) {\n this.address = address;\n addressId = address == null ? null : address.getId();\n address__resolvedKey = addressId;\n }\n }", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "public void setAddress(java.lang.String newAddress) {\n\taddress = newAddress;\n}", "HandlebarsKnotOptions setAddress(String address) {\n this.address = address;\n return this;\n }", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public ArrayList<Address> getAddresses() {\n return addresses;\n }", "public void setAddress(String s) {\r\n\t\t// Still deciding how to do the address to incorporate apartments\r\n\t\taddress = s;\t\t\r\n\t}", "public void setAdress(Adress adr) {\r\n // Bouml preserved body begin 00040F82\r\n\t this.adress = adr;\r\n // Bouml preserved body end 00040F82\r\n }", "public Collection<Address> getAddressCollection(){\r\n\t\treturn addressCollection;\r\n\t}", "public void setAddressCollection(Collection<Address> addressCollection){\r\n\t\tthis.addressCollection = addressCollection;\r\n\t}", "public Builder setAddress(\n java.lang.String value) {\n if (value == null) { throw new NullPointerException(); }\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setAddress(final String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public void setAddress(String string) {\n\t\tthis.address = string;\n\t}", "public String getAddress(){\n return address;\n\n }", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public void setAddressList(List addressList) {\r\n this.addressList = addressList;\r\n }", "public void setAddress(java.lang.String address) {\r\n this.address = address;\r\n }", "public void setAddress(String address) {\n if (getAddresses().isEmpty()) {\n getAddresses().add(address);\n } else {\n getAddresses().set(0, address);\n }\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) { throw new NullPointerException(); }\n checkByteStringIsUtf8(value);\n address_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public void setAddress(PostalAddress address) {\n this.address = address;\n }", "public Builder setAddressBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n address_ = value;\n onChanged();\n return this;\n }", "public void setAddress(final String address) {\n this._address = address;\n }", "public void setAddress(String address) {\n\t\tthis.address = StringUtils.trimString( address );\n\t}", "@Override\n\tpublic void setAddress(String address) {\n\t\tthis.address = address;\n\t}", "public String getAddress(){\r\n return address;\r\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress(){\n return address;\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "public String getAddress() {\r\n return address;\r\n }", "Restaurant setRestaurantAddress(Address address);", "public void setInternalAddress(String address);" ]
[ "0.7392211", "0.7054625", "0.6881061", "0.6397645", "0.6376404", "0.63719976", "0.6369589", "0.6360252", "0.62932163", "0.62932163", "0.62932163", "0.6280305", "0.6271086", "0.6244728", "0.62438786", "0.62034774", "0.6201599", "0.6201599", "0.6201599", "0.6201599", "0.6197336", "0.61949617", "0.61905354", "0.61905354", "0.6169777", "0.6161707", "0.6161707", "0.6161707", "0.61482817", "0.61482817", "0.6103638", "0.6103638", "0.6097727", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.6083511", "0.60811746", "0.6063152", "0.6058927", "0.6044855", "0.6044855", "0.6012305", "0.5983343", "0.5982242", "0.59733605", "0.5969918", "0.5969918", "0.5965515", "0.59644526", "0.5962105", "0.5929476", "0.5894239", "0.58911383", "0.58901256", "0.58892363", "0.58856", "0.5880402", "0.5880402", "0.5880402", "0.5880402", "0.5880402", "0.5877072", "0.5874788", "0.5835987", "0.5831412", "0.58264595", "0.581147", "0.58110774", "0.58100474", "0.58089316", "0.5793484", "0.57755136", "0.5772401", "0.5761886", "0.5744052", "0.5744052", "0.5744052", "0.57416415", "0.57416415", "0.57416415", "0.57416415", "0.57416415", "0.57416415", "0.57416415", "0.5727294", "0.5726821" ]
0.64024734
3
Generated method Getter of the BraintreeCustomerDetails.company attribute.
public String getCompany(final SessionContext ctx) { return (String)getProperty( ctx, COMPANY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCompany() {\n return (String) get(\"company\");\n }", "public String getCompany() {\n return company;\n }", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public Company getCompany() {\n\t\treturn company;\n\t}", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "public static final String getCompany() { return company; }", "public Company getCompany() {\r\n return this.company;\r\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n }\n }", "public String getCompanyCode() {\n return companyCode;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Company getCompany() {\n return company;\n }", "public String getCarCompany() {\n\t\treturn carCompany;\n\t}", "public String getContactCompany() {\n return contactCompany;\n }", "public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public CompanyTO getCompany() {\n\t\t\r\n\t\treturn CompanyService.getInstance().getCompany();\r\n\t}", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompany()\n {\n return (String) getProperty(PropertyIDMap.PID_COMPANY);\n }", "public java.lang.Integer getCompany() {\n\treturn company;\n}", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyCity() {\n return companyCity;\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\n return companyId;\n }", "public String getCompanyname() {\n return companyname;\n }", "String getCompany();", "public String getCompany()\n\t{\n\t\treturn getCompany( getSession().getSessionContext() );\n\t}", "public String getCompanyId()\n {\n return companyId;\n }", "public String getJdCompany() {\r\n\t\treturn jdCompany;\r\n\t}", "public String getCompanyName() {\r\n\r\n\t\treturn this.companyName;\r\n\t}", "public long getCompanyId() {\n return companyId;\n }", "public String getCompanyName() {\r\n\t\treturn companyName;\r\n\t}", "public com.hps.july.persistence.Company getCompany() throws Exception {\n\tif (getDivision() == null) {\n\t\tCompanyAccessBean bean = constructCompanies();\n\t\tif (bean != null)\n\t\t return (Company)bean.getEJBRef();\n\t\telse\n\t\t return null;\n\t}\n\telse\n\t\treturn null;\n\t\t\n}", "public java.lang.Integer getCompanycode() {\n\treturn companycode;\n}", "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public String getCompanyName() {\n\t\treturn companyName;\n\t}", "public Long getCompanyId() {\n return companyId;\n }", "public java.lang.String getDocumentCompany() {\n return documentCompany;\n }", "public SSNewCompany getCompany() {\n iCompany.setTaxrate1( iTaxRate1.getValue() );\n iCompany.setTaxrate2( iTaxRate2.getValue() );\n iCompany.setTaxrate3( iTaxRate3.getValue() );\n\n return iCompany;\n }", "public String getCompanyContact() {\n\t\treturn companyContact;\n\t}", "public String getCompanySymbol() {\n\t\treturn companySymbol;\n\t}", "public String getCompanyName() {\n\t\treturn companyName + \"\\\"\";\n\t}", "public java.lang.String getCompanyname() {\n\treturn companyname;\n}", "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public static String getCompanyName() {\n\t\treturn CompanyName;\n\t}", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public String getCompanyCountry() {\n return companyCountry;\n }", "public Integer getCompanyId() {\n return this.companyId;\n }", "@Nullable\n public String getCompanyName() {\n return this.companyName;\n }", "public int getCompanyId() {\n return companyId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "public String getcompanyURL() {\n return companyURL;\n }", "public String getCompanyno() {\n return companyno;\n }", "public Integer getCarCompanyCd() {\n\t\treturn carCompanyCd;\n\t}", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "public AddressForm getCompanyAddress() {\n\tcompanyAddress.setAddressType(\"C\");\n\t\treturn companyAddress;\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}", "public void setCompany(String company) {\n this.company = company;\n }", "public java.lang.String getCompanyName () {\n\t\treturn companyName;\n\t}", "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public String getPrimaryCompanyName() {\r\n return primaryCompanyName;\r\n }", "@ApiModelProperty(value = \"Company name of master account organization\")\n public String getCompanyName() {\n return companyName;\n }", "public String getSrcCompany() {\r\n return (String) getAttributeInternal(SRCCOMPANY);\r\n }", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}", "public String getSCompanyName() {\n return sCompanyName;\n }", "@Nonnull\n public Optional<List<CustomerCompany>> getCustomerCompanyIfPresent() {\n return Optional.ofNullable(toCustomerCompany);\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "com.google.protobuf.ByteString\n getCompanyNameBytes();", "com.google.protobuf.ByteString\n getCompanyNameBytes();", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}", "public Company getCompany(String companyShortName);" ]
[ "0.79885477", "0.7964839", "0.7954062", "0.79353625", "0.79353625", "0.7901496", "0.7901496", "0.7758355", "0.774702", "0.772887", "0.76516294", "0.76229703", "0.76138955", "0.75568485", "0.7552136", "0.7552136", "0.75140226", "0.7463223", "0.74475724", "0.7438716", "0.74239326", "0.7418313", "0.735829", "0.735829", "0.7353015", "0.73473746", "0.71891177", "0.71891177", "0.71891177", "0.71891177", "0.71879613", "0.71879613", "0.71879613", "0.7136088", "0.7099834", "0.7099834", "0.7091", "0.70576304", "0.7052349", "0.7039449", "0.70316726", "0.69858664", "0.6978599", "0.6975003", "0.69749415", "0.69571465", "0.69377", "0.6937583", "0.69336194", "0.69324", "0.6923559", "0.69213134", "0.6905227", "0.68558323", "0.68356276", "0.6810221", "0.6798697", "0.679785", "0.6795944", "0.6795944", "0.67957693", "0.6790633", "0.6787709", "0.6785527", "0.67728984", "0.67728984", "0.67728984", "0.67571187", "0.6745026", "0.6728108", "0.67017895", "0.67017895", "0.66996586", "0.66281337", "0.6624148", "0.6619052", "0.6588621", "0.6550832", "0.65327495", "0.6528135", "0.65250397", "0.6502019", "0.6502019", "0.6502019", "0.6502019", "0.6498749", "0.64915866", "0.64515275", "0.64098835", "0.63979256", "0.6381311", "0.6381311", "0.6381311", "0.6381311", "0.6381311", "0.6371631", "0.63652015", "0.63652015", "0.6357759", "0.6340016" ]
0.6876514
53
Generated method Getter of the BraintreeCustomerDetails.company attribute.
public String getCompany() { return getCompany( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCompany() {\n return (String) get(\"company\");\n }", "public String getCompany() {\n return company;\n }", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public Company getCompany() {\n\t\treturn company;\n\t}", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "public static final String getCompany() { return company; }", "public Company getCompany() {\r\n return this.company;\r\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n }\n }", "public String getCompanyCode() {\n return companyCode;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Company getCompany() {\n return company;\n }", "public String getCarCompany() {\n\t\treturn carCompany;\n\t}", "public String getContactCompany() {\n return contactCompany;\n }", "public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public CompanyTO getCompany() {\n\t\t\r\n\t\treturn CompanyService.getInstance().getCompany();\r\n\t}", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompany()\n {\n return (String) getProperty(PropertyIDMap.PID_COMPANY);\n }", "public java.lang.Integer getCompany() {\n\treturn company;\n}", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyCity() {\n return companyCity;\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\n return companyId;\n }", "public String getCompanyname() {\n return companyname;\n }", "String getCompany();", "public String getCompanyId()\n {\n return companyId;\n }", "public String getJdCompany() {\r\n\t\treturn jdCompany;\r\n\t}", "public String getCompanyName() {\r\n\r\n\t\treturn this.companyName;\r\n\t}", "public long getCompanyId() {\n return companyId;\n }", "public String getCompanyName() {\r\n\t\treturn companyName;\r\n\t}", "public com.hps.july.persistence.Company getCompany() throws Exception {\n\tif (getDivision() == null) {\n\t\tCompanyAccessBean bean = constructCompanies();\n\t\tif (bean != null)\n\t\t return (Company)bean.getEJBRef();\n\t\telse\n\t\t return null;\n\t}\n\telse\n\t\treturn null;\n\t\t\n}", "public java.lang.Integer getCompanycode() {\n\treturn companycode;\n}", "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public String getCompanyName() {\n\t\treturn companyName;\n\t}", "public Long getCompanyId() {\n return companyId;\n }", "public java.lang.String getDocumentCompany() {\n return documentCompany;\n }", "public SSNewCompany getCompany() {\n iCompany.setTaxrate1( iTaxRate1.getValue() );\n iCompany.setTaxrate2( iTaxRate2.getValue() );\n iCompany.setTaxrate3( iTaxRate3.getValue() );\n\n return iCompany;\n }", "public String getCompanyContact() {\n\t\treturn companyContact;\n\t}", "public String getCompany(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, COMPANY);\n\t}", "public String getCompanySymbol() {\n\t\treturn companySymbol;\n\t}", "public String getCompanyName() {\n\t\treturn companyName + \"\\\"\";\n\t}", "public java.lang.String getCompanyname() {\n\treturn companyname;\n}", "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public static String getCompanyName() {\n\t\treturn CompanyName;\n\t}", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public String getCompanyCountry() {\n return companyCountry;\n }", "public Integer getCompanyId() {\n return this.companyId;\n }", "@Nullable\n public String getCompanyName() {\n return this.companyName;\n }", "public int getCompanyId() {\n return companyId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}", "public String getcompanyURL() {\n return companyURL;\n }", "public String getCompanyno() {\n return companyno;\n }", "public Integer getCarCompanyCd() {\n\t\treturn carCompanyCd;\n\t}", "java.lang.String getCompanyName();", "java.lang.String getCompanyName();", "public AddressForm getCompanyAddress() {\n\tcompanyAddress.setAddressType(\"C\");\n\t\treturn companyAddress;\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}", "public void setCompany(String company) {\n this.company = company;\n }", "public java.lang.String getCompanyName () {\n\t\treturn companyName;\n\t}", "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public String getPrimaryCompanyName() {\r\n return primaryCompanyName;\r\n }", "@ApiModelProperty(value = \"Company name of master account organization\")\n public String getCompanyName() {\n return companyName;\n }", "public String getSrcCompany() {\r\n return (String) getAttributeInternal(SRCCOMPANY);\r\n }", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId();", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}", "public String getSCompanyName() {\n return sCompanyName;\n }", "@Nonnull\n public Optional<List<CustomerCompany>> getCustomerCompanyIfPresent() {\n return Optional.ofNullable(toCustomerCompany);\n }", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "com.google.protobuf.ByteString\n getCompanyNameBytes();", "com.google.protobuf.ByteString\n getCompanyNameBytes();", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}", "public Company getCompany(String companyShortName);" ]
[ "0.79891217", "0.79647577", "0.79534495", "0.79346323", "0.79346323", "0.7901872", "0.7901872", "0.77570456", "0.7747561", "0.7729345", "0.76516026", "0.7621718", "0.76132953", "0.7556906", "0.755223", "0.755223", "0.75122553", "0.74634767", "0.7446329", "0.7438668", "0.7422753", "0.7417417", "0.73587334", "0.73587334", "0.7353719", "0.7348381", "0.7189029", "0.7189029", "0.7189029", "0.7189029", "0.71879315", "0.71879315", "0.71879315", "0.71366215", "0.70998347", "0.70998347", "0.70909345", "0.7057755", "0.70545375", "0.7032343", "0.6986057", "0.69776386", "0.6974955", "0.6973922", "0.69562584", "0.69382286", "0.69367343", "0.6932453", "0.6932146", "0.69230676", "0.69205046", "0.6903646", "0.6876153", "0.6853838", "0.6834693", "0.68100244", "0.6797629", "0.67970395", "0.6796218", "0.6796218", "0.6795945", "0.67907965", "0.67871803", "0.67862135", "0.6773074", "0.6773074", "0.6773074", "0.67570376", "0.67451304", "0.67275816", "0.6703427", "0.6703427", "0.6698117", "0.662796", "0.6624711", "0.66176754", "0.65884644", "0.65504616", "0.65321356", "0.6528873", "0.65247446", "0.6502833", "0.6502833", "0.6502833", "0.6502833", "0.64987344", "0.6492096", "0.6452122", "0.64103436", "0.63967645", "0.63829255", "0.63829255", "0.63829255", "0.63829255", "0.63829255", "0.63719875", "0.6365247", "0.6365247", "0.635815", "0.6341964" ]
0.70388675
39
Generated method Setter of the BraintreeCustomerDetails.company attribute.
public void setCompany(final SessionContext ctx, final String value) { setProperty(ctx, COMPANY,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public void setCompany(String company) {\n this.company = company;\n }", "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "public void setCompany(String company) {\n\t\tthis.company = StringUtils.trimString( company );\n\t}", "public Builder setCompany(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n company_ = value;\n onChanged();\n return this;\n }", "public String getCompany() {\n return company;\n }", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public void setCarCompany(String carCompany) {\n\t\tthis.carCompany = carCompany;\n\t}", "public Builder setCompanyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n company_ = value;\n onChanged();\n return this;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\n return companyCode;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public GoldenContactBuilder company(String value) {\n company = value;\n return this;\n }", "public void setContactCompany(String contactCompany) {\n this.contactCompany = contactCompany;\n }", "public void setCompany(final String value)\n\t{\n\t\tsetCompany( getSession().getSessionContext(), value );\n\t}", "public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}", "@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}", "public Company getCompany() {\n\t\treturn company;\n\t}", "public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Company getCompany() {\r\n return this.company;\r\n }", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public static final String getCompany() { return company; }", "@java.lang.Override\n public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n }\n }", "public String getContactCompany() {\n return contactCompany;\n }", "public String getCarCompany() {\n\t\treturn carCompany;\n\t}", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public void setCompanycode(java.lang.Integer newCompany) {\n\tcompanycode = newCompany;\n}", "public String getCompany() {\n return (String) get(\"company\");\n }", "void setAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData auditingCompany);", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public Company getCompany() {\n return company;\n }", "public void setUWCompany(entity.UWCompany value);", "public void setCompany(SSNewCompany iCompany) {\n this.iCompany = iCompany;\n\n iTaxRate1.setValue( iCompany.getTaxRate1() );\n iTaxRate2.setValue( iCompany.getTaxRate2() );\n iTaxRate3.setValue( iCompany.getTaxRate3() );\n }", "public String getCompanyId() {\n return companyId;\n }", "public void setCustomerCompany(\n @Nonnull\n final List<CustomerCompany> value) {\n if (toCustomerCompany == null) {\n toCustomerCompany = Lists.newArrayList();\n }\n toCustomerCompany.clear();\n toCustomerCompany.addAll(value);\n }", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public void setCompnayNum(String comnayNum) {\n this.companyNum = FileUtils.hexStringFromatByF(10, \"\");\n }", "@Override\r\n\tpublic Company updateCompany(Company company) {\n\t\treturn null;\r\n\t}", "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "public void setCompany(Company company, Context context) {\n // TODO: Perform networking operations here to upload company to database\n this.company = company;\n invoiceController = new InvoiceController(context, company);\n }", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "public long getCompanyId() {\n return companyId;\n }", "public String getCompanyId()\n {\n return companyId;\n }", "void setCompanyBaseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData companyBaseData);", "public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Long getCompanyId() {\n return companyId;\n }", "public ComputerBuilder company(Company company) {\n this.computer.setCompany(company);\n return this;\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public void setCompanyCode(String companyCode) {\r\n this.companyCode = companyCode == null ? null : companyCode.trim();\r\n }", "public void setCompanyCode(String companyCode) {\r\n this.companyCode = companyCode == null ? null : companyCode.trim();\r\n }", "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }", "public String getCompanyname() {\n return companyname;\n }", "public void setSrcCompany(String value) {\r\n setAttributeInternal(SRCCOMPANY, value);\r\n }", "public void setCompanyCode(String companyCode) {\n this.companyCode = companyCode == null ? null : companyCode.trim();\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public void setDocumentCompany(java.lang.String documentCompany) {\n this.documentCompany = documentCompany;\n }", "public String getCompanyCity() {\n return companyCity;\n }", "public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }", "public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }", "public void setCompanyname(java.lang.String newCompanyname) {\n\tcompanyname = newCompanyname;\n}", "public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }", "public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }", "public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }", "public Builder clearCompany() {\n \n company_ = getDefaultInstance().getCompany();\n onChanged();\n return this;\n }", "@Nonnull\n public Customer.CustomerBuilder customerCompany(CustomerCompany... value) {\n return toCustomerCompany(Lists.newArrayList(value));\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "private Company(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Company, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public void setCompanyName(String name) {\n this.companyName = name;\n }", "public int getCompanyId() {\n return companyId;\n }", "public void setCompanyName(String companyName) {\n this.companyName = companyName;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public String getCompanyName() {\r\n\t\treturn companyName;\r\n\t}" ]
[ "0.77300256", "0.7642997", "0.7633246", "0.75564325", "0.7444474", "0.73452157", "0.7289264", "0.70740557", "0.7065917", "0.7008863", "0.7008863", "0.6997503", "0.6997503", "0.6923113", "0.69205886", "0.6838887", "0.6838887", "0.6810895", "0.67909193", "0.6750798", "0.674822", "0.67295223", "0.6712148", "0.66818815", "0.66427964", "0.6603161", "0.6590962", "0.65909106", "0.65909106", "0.65909106", "0.65909106", "0.65909106", "0.6587552", "0.65859145", "0.65564126", "0.6539215", "0.65331304", "0.65331304", "0.6532503", "0.65242153", "0.6520804", "0.6516662", "0.6516662", "0.65008163", "0.6465517", "0.6464416", "0.6462362", "0.6445469", "0.64401424", "0.64327025", "0.64327025", "0.64287543", "0.6423395", "0.6402786", "0.6381147", "0.6381147", "0.6381147", "0.6381147", "0.6380866", "0.63747555", "0.63620603", "0.635056", "0.63505477", "0.6347805", "0.63252836", "0.6305761", "0.63053864", "0.63053864", "0.63053864", "0.63038254", "0.63038254", "0.6299918", "0.6297322", "0.6283464", "0.62824595", "0.6265016", "0.6264065", "0.6264065", "0.6264065", "0.6264065", "0.62614346", "0.6261017", "0.62603796", "0.62603796", "0.62580657", "0.62561244", "0.624238", "0.624238", "0.62319726", "0.62307006", "0.6216257", "0.6216257", "0.6212681", "0.61947995", "0.61552405", "0.61536115", "0.6138053", "0.6130532", "0.6130532", "0.61193436" ]
0.654622
35
Generated method Setter of the BraintreeCustomerDetails.company attribute.
public void setCompany(final String value) { setCompany( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public void setCompany(String company) {\n this.company = company;\n }", "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "public void setCompany(String company) {\n\t\tthis.company = StringUtils.trimString( company );\n\t}", "public Builder setCompany(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n company_ = value;\n onChanged();\n return this;\n }", "public String getCompany() {\n return company;\n }", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public void setCarCompany(String carCompany) {\n\t\tthis.carCompany = carCompany;\n\t}", "public Builder setCompanyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n company_ = value;\n onChanged();\n return this;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\n return companyCode;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public GoldenContactBuilder company(String value) {\n company = value;\n return this;\n }", "public void setContactCompany(String contactCompany) {\n this.contactCompany = contactCompany;\n }", "public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}", "@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}", "public Company getCompany() {\n\t\treturn company;\n\t}", "public com.google.protobuf.ByteString\n getCompanyBytes() {\n java.lang.Object ref = company_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n company_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Company getCompany() {\r\n return this.company;\r\n }", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public void setCompanyId(long companyId);", "public static final String getCompany() { return company; }", "@java.lang.Override\n public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n }\n }", "public String getContactCompany() {\n return contactCompany;\n }", "public void setCompany(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, COMPANY,value);\n\t}", "public String getCarCompany() {\n\t\treturn carCompany;\n\t}", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public String getCompanyCd() {\r\n return companyCd;\r\n }", "public void setCompanycode(java.lang.Integer newCompany) {\n\tcompanycode = newCompany;\n}", "public String getCompany() {\n return (String) get(\"company\");\n }", "void setAuditingCompany(ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData auditingCompany);", "public String getCompanyId() {\r\n return companyId;\r\n }", "public String getCompanyId() {\r\n return companyId;\r\n }", "public Company getCompany() {\n return company;\n }", "public void setUWCompany(entity.UWCompany value);", "public void setCompany(SSNewCompany iCompany) {\n this.iCompany = iCompany;\n\n iTaxRate1.setValue( iCompany.getTaxRate1() );\n iTaxRate2.setValue( iCompany.getTaxRate2() );\n iTaxRate3.setValue( iCompany.getTaxRate3() );\n }", "public String getCompanyId() {\n return companyId;\n }", "public void setCustomerCompany(\n @Nonnull\n final List<CustomerCompany> value) {\n if (toCustomerCompany == null) {\n toCustomerCompany = Lists.newArrayList();\n }\n toCustomerCompany.clear();\n toCustomerCompany.addAll(value);\n }", "public void setCompanyId(Integer value) {\n this.companyId = value;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public void setCompnayNum(String comnayNum) {\n this.companyNum = FileUtils.hexStringFromatByF(10, \"\");\n }", "@Override\r\n\tpublic Company updateCompany(Company company) {\n\t\treturn null;\r\n\t}", "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "@Override\n\tpublic void setCompanyId(long companyId);", "public void setCompany(Company company, Context context) {\n // TODO: Perform networking operations here to upload company to database\n this.company = company;\n invoiceController = new InvoiceController(context, company);\n }", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "public long getCompanyId() {\n return companyId;\n }", "public String getCompanyId()\n {\n return companyId;\n }", "void setCompanyBaseData(ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData companyBaseData);", "public java.lang.String getCompany() {\n java.lang.Object ref = company_;\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 company_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Long getCompanyId() {\n return companyId;\n }", "public ComputerBuilder company(Company company) {\n this.computer.setCompany(company);\n return this;\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public String getCompanyName() {\r\n return companyName;\r\n }", "public void setCompanyCode(String companyCode) {\r\n this.companyCode = companyCode == null ? null : companyCode.trim();\r\n }", "public void setCompanyCode(String companyCode) {\r\n this.companyCode = companyCode == null ? null : companyCode.trim();\r\n }", "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }", "public String getCompanyname() {\n return companyname;\n }", "public void setSrcCompany(String value) {\r\n setAttributeInternal(SRCCOMPANY, value);\r\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public String getCompanyName() {\n return companyName;\n }", "public void setCompanyCode(String companyCode) {\n this.companyCode = companyCode == null ? null : companyCode.trim();\n }", "public void setDocumentCompany(java.lang.String documentCompany) {\n this.documentCompany = documentCompany;\n }", "public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }", "public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }", "public String getCompanyCity() {\n return companyCity;\n }", "public void setCompanyname(java.lang.String newCompanyname) {\n\tcompanyname = newCompanyname;\n}", "public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }", "public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }", "public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }", "public Builder clearCompany() {\n \n company_ = getDefaultInstance().getCompany();\n onChanged();\n return this;\n }", "@Nonnull\n public Customer.CustomerBuilder customerCompany(CustomerCompany... value) {\n return toCustomerCompany(Lists.newArrayList(value));\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "public void setCompanyCd(String companyCd) {\r\n this.companyCd = companyCd;\r\n }", "@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }", "private Company(com.google.protobuf.GeneratedMessage.ExtendableBuilder<cb.Careerbuilder.Company, ?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public void setCompanyName(String name) {\n this.companyName = name;\n }", "public int getCompanyId() {\n return companyId;\n }", "public void setCompanyName(String companyName) {\n this.companyName = companyName;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public Integer getCompanyId() {\n return companyId;\n }", "public String getCompanyName() {\r\n\t\treturn companyName;\r\n\t}" ]
[ "0.77286446", "0.7642605", "0.7633117", "0.75564003", "0.7442381", "0.73442966", "0.7288784", "0.70745933", "0.7066518", "0.7009464", "0.7009464", "0.69979143", "0.69979143", "0.6923835", "0.69213295", "0.68394953", "0.68394953", "0.68115467", "0.6792778", "0.6750796", "0.6747883", "0.6709857", "0.66822", "0.6643481", "0.660506", "0.6591599", "0.6589467", "0.6589467", "0.6589467", "0.6589467", "0.6589467", "0.6588401", "0.6586917", "0.65563726", "0.6544114", "0.6540402", "0.6533714", "0.6533714", "0.6530809", "0.6524877", "0.6519643", "0.651694", "0.651694", "0.6501234", "0.64634854", "0.6463109", "0.6462712", "0.6444904", "0.64394104", "0.643268", "0.643268", "0.64278996", "0.642242", "0.64032024", "0.638077", "0.638077", "0.638077", "0.638077", "0.6380458", "0.6374962", "0.6362236", "0.6350703", "0.63492626", "0.6348765", "0.6325644", "0.630643", "0.6306403", "0.6306403", "0.6306403", "0.63036317", "0.63036317", "0.6300254", "0.6297535", "0.6284396", "0.6281629", "0.62651336", "0.62651336", "0.62651336", "0.62651336", "0.6264924", "0.62615097", "0.6260656", "0.6260656", "0.6260415", "0.62571603", "0.6256192", "0.6243365", "0.6243365", "0.62321514", "0.62310576", "0.621642", "0.621642", "0.621101", "0.61968374", "0.6156066", "0.6153555", "0.61391723", "0.61308587", "0.61308587", "0.6120494" ]
0.6727101
21
Generated method Getter of the BraintreeCustomerDetails.createdAt attribute.
public Date getCreatedAt(final SessionContext ctx) { return (Date)getProperty( ctx, CREATEDAT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\n return this.createdAt;\n }", "public DateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public DateTime createdAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\r\n\t\treturn createdAt;\r\n\t}", "public Date getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public Date getCreatedAt() {\n\t\treturn _created_at;\n\t}", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public String getCreated_at() {\n return created_at;\n }", "public long getCreatedAt() {\n return createdAt;\n }", "@JsonGetter(\"created_at\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getCreatedAt() {\r\n return createdAt;\r\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Long getCreatedAt() {\n return createdAt;\n }", "public OffsetDateTime createdAt() {\n return this.createdAt;\n }", "public long getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public String getCreatedAt() {\n return (String) get(\"created_at\");\n }", "String getCreated_at();", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "@JsonProperty(\"created_at\")\n@ApiModelProperty(example = \"2001-08-28T00:23:41Z\", value = \"ISO-8601 date of when virtual instance was created.\")\n public String getCreatedAt() {\n return createdAt;\n }", "@NotNull\n @JsonProperty(\"createdAt\")\n public ZonedDateTime getCreatedAt();", "@JsonProperty(\"created_at\")\n public Date getCreatedAt() {\n return createdAt;\n }", "public Long getCreateAt() {\n return createAt;\n }", "public Date getCateCreated() {\n return cateCreated;\n }", "public ZonedDateTime getCreatedDateTime() {\n return createdDateTime;\n }", "public DateTime createdDateTime() {\n return this.createdDateTime;\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public Long getCreatedAtDD() {\n return getCreatedAt() == null ? null : getCreatedAt().getTime();\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public java.util.Date getCreatedate () {\n\t\treturn createdate;\n\t}", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "@ApiModelProperty(value = \"The time when the merchant initiated the refund for Square to process, in ISO 8601 format.\")\n public String getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public DateTime getCreatedDateTime() {\n return createdDateTime;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public DateTime getCreatedOn();", "public Timestamp getCreateDate() {\n return createDate;\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public String getDatecreated() {\n return datecreated;\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time of labeling (timestamp)\")\n public Long getCreatedAt() {\n return createdAt;\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn this.createdTimestamp;\n\t}", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public Date getCreatedAt()\n\t{\n\t\treturn getCreatedAt( getSession().getSessionContext() );\n\t}", "public Date getCreated() {\n return mCreated;\n }", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public Date getCreateddate() {\n return createddate;\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public String getCurrentDate() {\n return createdDate;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getCreatedAtOrBuilder() {\n return getCreatedAt();\n }", "public Date getCreatedon()\n {\n return (Date)getAttributeInternal(CREATEDON);\n }" ]
[ "0.7967178", "0.78548616", "0.78548616", "0.78420687", "0.78415245", "0.77776676", "0.77776676", "0.77776676", "0.77584654", "0.77584654", "0.77527726", "0.77324706", "0.77324706", "0.77324706", "0.77324706", "0.77324706", "0.77324706", "0.77324706", "0.77324706", "0.7722873", "0.7722873", "0.7722873", "0.7691377", "0.767315", "0.76573026", "0.7648427", "0.7648427", "0.7580455", "0.7555082", "0.7551571", "0.75449234", "0.75449234", "0.75422215", "0.7515278", "0.74895704", "0.7419788", "0.7415249", "0.7407141", "0.7407141", "0.7377734", "0.7377734", "0.7377734", "0.7377734", "0.73344684", "0.73179007", "0.7305225", "0.72966284", "0.72841465", "0.7269531", "0.72077584", "0.7188299", "0.717077", "0.7168531", "0.71673375", "0.71538985", "0.71289766", "0.70963025", "0.7073136", "0.7065542", "0.70598346", "0.70598346", "0.7058801", "0.7031927", "0.7031927", "0.7031649", "0.701643", "0.70037013", "0.70037013", "0.70005935", "0.70002055", "0.70002055", "0.6988197", "0.69850993", "0.6974803", "0.6959929", "0.69401425", "0.69323015", "0.6928247", "0.69221103", "0.69221103", "0.6916583", "0.6916583", "0.69142735", "0.69142735", "0.69142735", "0.69142735", "0.689445", "0.689445", "0.689445", "0.689445", "0.68904567", "0.6889806", "0.6888529", "0.68879765", "0.6886127", "0.6884621", "0.6884621", "0.68792504", "0.6877115", "0.6870195", "0.68635404" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.createdAt attribute.
public Date getCreatedAt() { return getCreatedAt( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\n return this.createdAt;\n }", "public DateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public DateTime createdAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\r\n\t\treturn createdAt;\r\n\t}", "public Date getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public Date getCreatedAt() {\n\t\treturn _created_at;\n\t}", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public String getCreated_at() {\n return created_at;\n }", "public long getCreatedAt() {\n return createdAt;\n }", "@JsonGetter(\"created_at\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getCreatedAt() {\r\n return createdAt;\r\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Long getCreatedAt() {\n return createdAt;\n }", "public OffsetDateTime createdAt() {\n return this.createdAt;\n }", "public long getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public String getCreatedAt() {\n return (String) get(\"created_at\");\n }", "String getCreated_at();", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "@JsonProperty(\"created_at\")\n@ApiModelProperty(example = \"2001-08-28T00:23:41Z\", value = \"ISO-8601 date of when virtual instance was created.\")\n public String getCreatedAt() {\n return createdAt;\n }", "@NotNull\n @JsonProperty(\"createdAt\")\n public ZonedDateTime getCreatedAt();", "@JsonProperty(\"created_at\")\n public Date getCreatedAt() {\n return createdAt;\n }", "public Long getCreateAt() {\n return createAt;\n }", "public Date getCateCreated() {\n return cateCreated;\n }", "public ZonedDateTime getCreatedDateTime() {\n return createdDateTime;\n }", "public DateTime createdDateTime() {\n return this.createdDateTime;\n }", "public Timestamp getCreatedDate() {\n return (Timestamp)getAttributeInternal(CREATEDDATE);\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"createdAt\")\n public Long getCreatedAtDD() {\n return getCreatedAt() == null ? null : getCreatedAt().getTime();\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }", "public Date getCreatedOn()\n {\n return _model.getCreatedOn();\n }", "public java.util.Date getCreatedate () {\n\t\treturn createdate;\n\t}", "public Timestamp getCreatedDate() {\n return (Timestamp) getAttributeInternal(CREATEDDATE);\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "@ApiModelProperty(value = \"The time when the merchant initiated the refund for Square to process, in ISO 8601 format.\")\n public String getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreatedDate() {\n return this.createdDate;\n }", "public Date getCreated() {\r\n return createdDate;\r\n }", "public DateTime getCreatedDateTime() {\n return createdDateTime;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public Date getCreatedDate() {\n return createdDate;\n }", "public OffsetDateTime createdDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().createdDateTime();\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public Date getCreatedDate() {\r\n return createdDate;\r\n }", "public java.lang.String getCreatedDate() {\r\n return createdDate;\r\n }", "public DateTime getCreatedOn();", "public Timestamp getCreateDate() {\n return createDate;\n }", "public Date getCreatedDate() {\n return (Date) getAttributeInternal(CREATEDDATE);\n }", "public String getDatecreated() {\n return datecreated;\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time of labeling (timestamp)\")\n public Long getCreatedAt() {\n return createdAt;\n }", "public DateTime getCreatedTimestamp() {\n\t\treturn this.createdTimestamp;\n\t}", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated() {\n return dateCreated;\n }", "public Date getDateCreated()\n {\n return dateCreated;\n }", "public String getDatecreated() {\n\t\treturn datecreated;\n\t}", "public Date getCreated() {\n return mCreated;\n }", "public Date getCreateddate() {\n return createddate;\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public String getDateCreated() {\n return this.dateCreated.toString();\n }", "public Date getDateCreated(){\n\t\treturn dateCreated;\n\t}", "public String getCurrentDate() {\n return createdDate;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getCreatedAtOrBuilder() {\n return getCreatedAt();\n }", "public Date getCreatedon()\n {\n return (Date)getAttributeInternal(CREATEDON);\n }" ]
[ "0.79661435", "0.7853898", "0.7853898", "0.78410214", "0.78402716", "0.77764666", "0.77764666", "0.77764666", "0.7757523", "0.7757523", "0.7752322", "0.77314734", "0.77314734", "0.77314734", "0.77314734", "0.77314734", "0.77314734", "0.77314734", "0.77314734", "0.7722181", "0.7722181", "0.7722181", "0.7690542", "0.7672298", "0.7656439", "0.76479423", "0.76479423", "0.7580147", "0.7554056", "0.75516963", "0.7544238", "0.7544238", "0.75411624", "0.7514974", "0.7488696", "0.74195987", "0.7413775", "0.7406676", "0.7406676", "0.73772687", "0.73772687", "0.73772687", "0.73772687", "0.73340815", "0.7316941", "0.73051083", "0.7295991", "0.7283847", "0.72687113", "0.72079754", "0.7187742", "0.71704364", "0.71682453", "0.7165974", "0.71531856", "0.7128036", "0.7095225", "0.70726466", "0.70651484", "0.705876", "0.705876", "0.70586926", "0.7031413", "0.7031413", "0.70309454", "0.70157516", "0.70031774", "0.70031774", "0.6999921", "0.6999702", "0.6999702", "0.69883287", "0.6983314", "0.697419", "0.6959699", "0.6940163", "0.69313854", "0.69276565", "0.6920991", "0.6920991", "0.6915612", "0.6915612", "0.69132537", "0.69132537", "0.69132537", "0.69132537", "0.6893904", "0.6893904", "0.6893904", "0.6893904", "0.68897945", "0.68882895", "0.68874437", "0.6885818", "0.6884172", "0.6884172", "0.6878771", "0.68769383", "0.6869154", "0.6863481" ]
0.6889181
91
Generated method Setter of the BraintreeCustomerDetails.createdAt attribute.
public void setCreatedAt(final SessionContext ctx, final Date value) { setProperty(ctx, CREATEDAT,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public void setCreatedAt(final ZonedDateTime createdAt);", "@JsonProperty(\"created_at\")\n public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public Date getCreatedAt() {\n return this.createdAt;\n }", "public DateTime getCreatedAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public Date getCreatedAt() {\r\n\t\treturn createdAt;\r\n\t}", "public void setCreatedAt( Date createdAt ) {\n this.createdAt = createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public void setCreatedAt(Date createdAt) {\r\n\t\tthis.createdAt = createdAt;\r\n\t}", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(long createdAt) {\n this.createdAt = createdAt;\n }", "public Date getCreatedAt() {\n\t\treturn _created_at;\n\t}", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n\t\tthis.createdAt = createdAt;\n\t}", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public DateTime createdAt() {\n return this.createdAt;\n }", "public void setCreatedAt(Date date) {\n\t\t\n\t}", "@NotNull\n @JsonProperty(\"createdAt\")\n public ZonedDateTime getCreatedAt();", "public long getCreatedAt() {\n return createdAt;\n }", "public long getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Long getCreatedAt() {\n return createdAt;\n }", "public void setCreatedOn(DateTime createdOn);", "public void setCreatedAt(Long createdAt) {\n this.createdAt = createdAt;\n }", "@JsonProperty(\"created_at\")\n@ApiModelProperty(example = \"2001-08-28T00:23:41Z\", value = \"ISO-8601 date of when virtual instance was created.\")\n public String getCreatedAt() {\n return createdAt;\n }", "@JsonProperty(\"created_at\")\n public Date getCreatedAt() {\n return createdAt;\n }", "public String getCreated_at() {\n return created_at;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "@JsonGetter(\"created_at\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getCreatedAt() {\r\n return createdAt;\r\n }", "public void setCreatedDate(Date createdDate);", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "void setCreatedDate(Date createdDate);", "public OffsetDateTime createdAt() {\n return this.createdAt;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedAt(final Date value)\n\t{\n\t\tsetCreatedAt( getSession().getSessionContext(), value );\n\t}", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "@ApiModelProperty(value = \"The time when the merchant initiated the refund for Square to process, in ISO 8601 format.\")\n public String getCreatedAt() {\n return createdAt;\n }", "public Long getCreateAt() {\n return createAt;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setDateCreated(Date dateCreated);", "@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }", "@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }", "String getCreated_at();", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "public String getCreatedAt() {\n return (String) get(\"created_at\");\n }", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreationDate(Date creationDate);", "public ZonedDateTime getCreatedDateTime() {\n return createdDateTime;\n }", "public Timestamp getCreatedDate() {\n return createdDate;\n }" ]
[ "0.7308242", "0.72488374", "0.72488374", "0.7230309", "0.7230309", "0.721801", "0.71830887", "0.71661425", "0.71412", "0.7137153", "0.7137153", "0.71244997", "0.71244997", "0.7094093", "0.7088939", "0.7073343", "0.7073343", "0.7073343", "0.7073343", "0.7073343", "0.7073343", "0.7073343", "0.7073343", "0.70711005", "0.70711005", "0.70711005", "0.70315117", "0.7022901", "0.70180655", "0.70180655", "0.70180655", "0.70180655", "0.70180655", "0.70180655", "0.70180655", "0.7014238", "0.7014238", "0.7004417", "0.6973011", "0.69659835", "0.69659835", "0.69659835", "0.6963962", "0.69481677", "0.69481677", "0.69481677", "0.6935049", "0.6935049", "0.68528336", "0.6851686", "0.68503124", "0.6825825", "0.6824021", "0.6800505", "0.6794993", "0.6794993", "0.679179", "0.6786453", "0.676572", "0.6755952", "0.6748663", "0.67434955", "0.6728021", "0.6728021", "0.67246914", "0.6697063", "0.66881895", "0.66881895", "0.6680786", "0.6680786", "0.666914", "0.66632676", "0.6624204", "0.6624204", "0.6624204", "0.6624204", "0.66153365", "0.65932083", "0.65932083", "0.65932083", "0.65932083", "0.65876144", "0.654808", "0.65315247", "0.65315247", "0.65188146", "0.6457938", "0.6425754", "0.6393156", "0.63926965", "0.63926965", "0.6376717", "0.6376332", "0.6355589", "0.6355589", "0.6354764", "0.6348627", "0.6348403", "0.6345948", "0.634549" ]
0.6327459
100
Generated method Setter of the BraintreeCustomerDetails.createdAt attribute.
public void setCreatedAt(final Date value) { setCreatedAt( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public void setCreatedAt(Date value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public java.time.ZonedDateTime getCreatedAt() {\n return this.createdAt;\n }", "public void setCreatedAt(final ZonedDateTime createdAt);", "@JsonProperty(\"created_at\")\n public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public Date getCreatedAt() {\n return this.createdAt;\n }", "public DateTime getCreatedAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public Date getCreatedAt() {\r\n return createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public void setCreatedAt(Date createdAt) {\r\n this.createdAt = createdAt;\r\n }", "public Date getCreatedAt() {\r\n\t\treturn createdAt;\r\n\t}", "public void setCreatedAt( Date createdAt ) {\n this.createdAt = createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public Date getCreatedAt() {\n return createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public java.util.Date getCreatedAt() {\n return this.createdAt;\n }", "public Date getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public void setCreatedAt(Date createdAt) {\r\n\t\tthis.createdAt = createdAt;\r\n\t}", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(String createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(long createdAt) {\n this.createdAt = createdAt;\n }", "public Date getCreatedAt() {\n\t\treturn _created_at;\n\t}", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(java.util.Date createdAt) {\n this.createdAt = createdAt;\n }", "public void setCreatedAt(Date createdAt) {\n\t\tthis.createdAt = createdAt;\n\t}", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public String getCreatedAt() {\n return createdAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public Date getCreateAt() {\n return createAt;\n }", "public void setCreatedAt(Timestamp value) {\n setAttributeInternal(CREATEDAT, value);\n }", "public DateTime createdAt() {\n return this.createdAt;\n }", "public void setCreatedAt(Date date) {\n\t\t\n\t}", "@NotNull\n @JsonProperty(\"createdAt\")\n public ZonedDateTime getCreatedAt();", "public long getCreatedAt() {\n return createdAt;\n }", "public long getCreatedAt() {\n\t\treturn createdAt;\n\t}", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Date getCreatedAt() {\n return (Date)getAttributeInternal(CREATEDAT);\n }", "public Long getCreatedAt() {\n return createdAt;\n }", "public void setCreatedOn(DateTime createdOn);", "public void setCreatedAt(Long createdAt) {\n this.createdAt = createdAt;\n }", "@JsonProperty(\"created_at\")\n@ApiModelProperty(example = \"2001-08-28T00:23:41Z\", value = \"ISO-8601 date of when virtual instance was created.\")\n public String getCreatedAt() {\n return createdAt;\n }", "@JsonProperty(\"created_at\")\n public Date getCreatedAt() {\n return createdAt;\n }", "public String getCreated_at() {\n return created_at;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "public void setCreatedDate(Date value) {\n this.createdDate = value;\n }", "@JsonGetter(\"created_at\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getCreatedAt() {\r\n return createdAt;\r\n }", "public void setCreatedDate(Date createdDate);", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public Date getCreatedate() {\r\n return createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "public void setCreatedate(Date createdate) {\r\n this.createdate = createdate;\r\n }", "void setCreatedDate(Date createdDate);", "public OffsetDateTime createdAt() {\n return this.createdAt;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public void setCreatedate(Date createdate) {\n this.createdate = createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "public Date getCreatedate() {\n return createdate;\n }", "@ApiModelProperty(value = \"The time when the merchant initiated the refund for Square to process, in ISO 8601 format.\")\n public String getCreatedAt() {\n return createdAt;\n }", "public Long getCreateAt() {\n return createAt;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setCreateAt(Date createAt) {\n this.createAt = createAt;\n }", "public void setDateCreated(Date dateCreated);", "@SuppressWarnings(\"JdkObsolete\")\n public void setCreated(Instant date) {\n this.created = Timestamp.from(date);\n }", "@PrePersist\n protected void onCreate(){\n this.createdAt = new Date();\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public void setCreated(Date created) {\r\n this.created = created;\r\n }", "public final Date getCreatedAt( )\n\t{\n\t\treturn new Date( this.data.getLong( \"createdAt\" ) );\n\t}", "public Timestamp getCreatedAt() {\n return (Timestamp) getAttributeInternal(CREATEDAT);\n }", "String getCreated_at();", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getCreatedAt() {\n return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_;\n }", "public String getCreatedAt() {\n return (String) get(\"created_at\");\n }", "public void setCreatedDate(Timestamp value) {\n setAttributeInternal(CREATEDDATE, value);\n }", "public void setCreationDate(Date creationDate);", "public Timestamp getCreatedDate() {\n return createdDate;\n }", "public ZonedDateTime getCreatedDateTime() {\n return createdDateTime;\n }", "public void setCreatedAt(final SessionContext ctx, final Date value)\n\t{\n\t\tsetProperty(ctx, CREATEDAT,value);\n\t}" ]
[ "0.7306132", "0.72474444", "0.72474444", "0.7227888", "0.7227888", "0.7215738", "0.71807724", "0.71641564", "0.713955", "0.7135173", "0.7135173", "0.7122012", "0.7122012", "0.70918274", "0.70862633", "0.7071333", "0.7071333", "0.7071333", "0.7071333", "0.7071333", "0.7071333", "0.7071333", "0.7071333", "0.7069028", "0.7069028", "0.7069028", "0.7029226", "0.7020197", "0.70153934", "0.70153934", "0.70153934", "0.70153934", "0.70153934", "0.70153934", "0.70153934", "0.7011294", "0.7011294", "0.70023674", "0.6970673", "0.6963229", "0.6963229", "0.6963229", "0.69611996", "0.69460756", "0.69460756", "0.69460756", "0.69331056", "0.69331056", "0.68517834", "0.68505085", "0.6848342", "0.68239146", "0.6822498", "0.6798847", "0.6793205", "0.6793205", "0.6790157", "0.6785033", "0.676339", "0.6754747", "0.67466336", "0.6742077", "0.6726646", "0.6726646", "0.6723355", "0.6696591", "0.66867614", "0.66867614", "0.6679617", "0.6679617", "0.66690063", "0.6661844", "0.66229683", "0.66229683", "0.66229683", "0.66229683", "0.65918046", "0.65918046", "0.65918046", "0.65918046", "0.65868217", "0.65467155", "0.65291643", "0.65291643", "0.65185976", "0.64578205", "0.642512", "0.639155", "0.639155", "0.63909817", "0.6375198", "0.6374564", "0.63538384", "0.63538384", "0.6352908", "0.63481", "0.63478327", "0.6344057", "0.6343962", "0.6326449" ]
0.66147125
76
Generated method Getter of the BraintreeCustomerDetails.customFields attribute.
public Map<String,String> getAllCustomFields(final SessionContext ctx) { Map<String,String> map = (Map<String,String>)getProperty( ctx, CUSTOMFIELDS); return map != null ? map : Collections.EMPTY_MAP; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }", "public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }", "@Column(name = \"customfields\")\n\t@Type(type = \"CustomFields\")\n\tpublic Map<String, String> getCustomFields() {\n\t\treturn customFields;\n\t}", "public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }", "public Map<String,String> getAllCustomFields()\n\t{\n\t\treturn getAllCustomFields( getSession().getSessionContext() );\n\t}", "public Map<String, String> customDetails() {\n return this.innerProperties() == null ? null : this.innerProperties().customDetails();\n }", "public String getCustomData() {\r\n\t\treturn customData;\r\n\t}", "public java.lang.String getCustom() {\r\n return custom;\r\n }", "public List getCustomFieldsForTx(TransactionItem transactionItem) {\n Session session = getSession();\n String query = \"select custom_field_id as customFieldId from (\"\n + \" select cf.custom_field_id, cf.custom_field_name, cfTx.value\"\n + \" from custom_field cf, cf_tx_level cfTx\"\n + \" where cf.custom_field_id = cfTx.custom_field_id and cfTx.transaction_id = :transID\"\n + \" order by value, custom_field_name ) A\";\n SQLQuery sqlQuery = session.createSQLQuery(query.toString());\n sqlQuery.setLong(\"transID\", (Long) transactionItem.getId());\n sqlQuery.addScalar(\"customFieldId\", Hibernate.LONG);\n sqlQuery.setCacheable(false);\n sqlQuery.setCacheMode(CacheMode.IGNORE);\n List results = sqlQuery.list();\n releaseSession(session);\n return results;\n }", "x0401.oecdStandardAuditFileTaxPT1.CustomsDetails getCustomsDetails();", "public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemCustom getCustom() {\n return custom;\n }", "@Nullable\n public Map<String, List<String>> getCustomFlags() {\n return mCustomFlags;\n }", "public java.util.List<io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder> \n getCustomTagsBuilderList() {\n return getCustomTagsFieldBuilder().getBuilderList();\n }", "@java.lang.Override\n public java.util.List<io.envoyproxy.envoy.type.tracing.v3.CustomTag> getCustomTagsList() {\n return customTags_;\n }", "@java.lang.Override\n public java.util.List<? extends io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> \n getCustomTagsOrBuilderList() {\n return customTags_;\n }", "private static List<CustomFieldValue> getCustomFieldsValuesFromDemoLoc() throws MambuApiException {\n\n\t\treturn DemoUtil.getDemoLineOfCredit(DemoUtil.demoLineOfCreditId).getCustomFieldValues();\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCustomInstrumentationData() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get());\n }", "public String getCustCode() {\n return custCode;\n }", "public String getCustCode() {\n return custCode;\n }", "public String getCustomerCode() {\n\t\treturn customerCode;\n\t}", "public JSONObject getCustomParameters() {\n\n\t\treturn customParameters;\n\t}", "public GFRecordDataModel getCustomerLocalCustomerInformation()\n\t{\n\t\treturn getCustomerLocalCustomerInformation(system, unit, customerNumber);\n\t}", "public java.util.List<? extends io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> \n getCustomTagsOrBuilderList() {\n if (customTagsBuilder_ != null) {\n return customTagsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(customTags_);\n }\n }", "com.google.protobuf.ByteString\n getField1598Bytes();", "public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1028Bytes();", "public String getCustomerReference() {\n return customerReference;\n }", "public String[] getCustomFields(String collectionId) {\r\n String[] toReturn = new String[0];\r\n if (null == collectionId || 0 == collectionId.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"item_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"custom_field_list\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY,\r\n \"\", paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0461\", \"getting list of custom fields wasn't successful: coll_id=\" + collectionId);\r\n } else {\r\n wrapError(\"APIL_0461\", \"getting list of custom fields wasn't successful: coll_id=\" + collectionId);\r\n }\r\n } else {\r\n toReturn = StringTool.stringToArray(response.getValue(\"fields\"), ITEM_DELIMITER);\r\n }\r\n return toReturn;\r\n }", "public String getCustomerMobile() {\n return customerMobile;\n }", "public com.vodafone.global.er.decoupling.binding.request.CatalogServiceFullType.CustomFieldsType createCatalogServiceFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogServiceFullTypeImpl.CustomFieldsTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1510Bytes();", "public CustomerNumberElements getCustomerNumberAccess() {\n\t\treturn pCustomerNumber;\n\t}", "@Override\r\n\tpublic String getCustomInfo() {\n\t\treturn null;\r\n\t}", "com.google.protobuf.ByteString\n getField1512Bytes();", "public com.commercetools.history.models.common.LocalizedString getCustomLineItem() {\n return this.customLineItem;\n }", "@Nullable\n public com.commercetools.api.models.type.FieldContainer getFields() {\n return this.fields;\n }", "com.google.protobuf.ByteString\n getField1215Bytes();", "public amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom getDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public java.util.List<io.envoyproxy.envoy.type.tracing.v3.CustomTag> getCustomTagsList() {\n if (customTagsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(customTags_);\n } else {\n return customTagsBuilder_.getMessageList();\n }\n }", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "com.google.protobuf.ByteString\n getField1815Bytes();", "com.google.protobuf.ByteString\n getField1518Bytes();", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.CustomFieldsType createCatalogPackageFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.CustomFieldsTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1514Bytes();", "public HashMap<String, String> getCustomMessageProperties() {\n return this.customMessageProperties;\n }", "public List<AccountingLineViewField> getFields() {\n return fields;\n }", "com.google.protobuf.ByteString\n getField1564Bytes();", "public io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder getCustomerOrBuilder() {\n return getCustomer();\n }", "public String getCustomHeader() {\n return this.customHeader;\n }", "com.google.protobuf.ByteString\n getField1511Bytes();", "com.google.protobuf.ByteString\n getField1410Bytes();", "public SchemaCustom getSchemaCustom() {\n return m_schemaCustom;\n }", "com.google.protobuf.ByteString\n getField1898Bytes();", "public List<Element> getCustomElements() {\r\n return customElements;\r\n }", "public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "public String getCustomerType() \n {\n return customerType;\n }", "public String getCustomerContactRecordAuthenticationLevel() {\n return customerContactRecordAuthenticationLevel;\n }", "com.google.protobuf.ByteString\n getField1599Bytes();", "com.google.protobuf.ByteString\n getField1810Bytes();", "com.google.protobuf.ByteString\n getField1532Bytes();", "public com.google.protobuf.ByteString\n getField1512Bytes() {\n java.lang.Object ref = field1512_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1512_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getField1814Bytes();", "public String getCustomer() {\n return customer;\n }", "com.google.protobuf.ByteString\n getField1549Bytes();", "private String getCustomAttributes() {\n StringBuilder sb = new StringBuilder();\n\n customAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "com.google.protobuf.ByteString\n getField1509Bytes();", "@JsonAnyGetter\n public Map<String, Object[]> otherFields() {\n return disciplineFields;\n }", "boolean isSetCustomsDetails();", "com.google.protobuf.ByteString\n getField1595Bytes();", "private com.google.protobuf.SingleFieldBuilderV3<\n io.opencannabis.schema.commerce.OrderCustomer.Customer, io.opencannabis.schema.commerce.OrderCustomer.Customer.Builder, io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder> \n getCustomerFieldBuilder() {\n if (customerBuilder_ == null) {\n customerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.opencannabis.schema.commerce.OrderCustomer.Customer, io.opencannabis.schema.commerce.OrderCustomer.Customer.Builder, io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder>(\n getCustomer(),\n getParentForChildren(),\n isClean());\n customer_ = null;\n }\n return customerBuilder_;\n }", "com.google.protobuf.ByteString\n getField1585Bytes();", "com.google.protobuf.ByteString\n getField1498Bytes();", "com.google.protobuf.ByteString\n getField1418Bytes();", "com.google.protobuf.ByteString\n getField1812Bytes();", "public String getCustomerPhone() {\n return customerPhone;\n }", "com.google.protobuf.ByteString\n getField1539Bytes();", "com.google.protobuf.ByteString\n getField1015Bytes();", "public Object getCustomerContactRecord() {\n return customerContactRecord;\n }", "com.google.protobuf.ByteString\n getField1513Bytes();", "com.google.protobuf.ByteString\n getField1547Bytes();", "com.google.protobuf.ByteString\n getField1115Bytes();", "com.google.protobuf.ByteString\n getField1025Bytes();", "public Map<String, Customer> getCustomer(){\r\n\t\treturn treeData;\r\n\t}", "public com.google.protobuf.ByteString\n getField1512Bytes() {\n java.lang.Object ref = field1512_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1512_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" HBLNM, HBCFR, HBCFL, HBRNM, HBDLM \";\n\t\treturn fields;\n\t}", "public String getCustomerContactRecordCustomerReference() {\n return customerContactRecordCustomerReference;\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CustomFieldsType createPricePointFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CustomFieldsTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1594Bytes();", "com.google.protobuf.ByteString\n getField1584Bytes();", "com.google.protobuf.ByteString\n getField1597Bytes();", "@java.lang.Override\n public io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder getCustomTagsOrBuilder(\n int index) {\n return customTags_.get(index);\n }", "public com.vodafone.global.er.decoupling.binding.request.CustomFieldType createCustomFieldType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1218Bytes();", "com.google.protobuf.ByteString\n getField1545Bytes();", "com.google.protobuf.ByteString\n getField1811Bytes();", "com.google.protobuf.ByteString\n getField1485Bytes();", "List<FieldNode> getFields() {\n return this.classNode.fields;\n }", "com.google.protobuf.ByteString\n getField1098Bytes();", "public Map<String,Object> getCustomClaims();", "public com.ipcommerce.schemas.CWS.v2_0.Transactions.PersonalInfo getAdditionalBillingData() {\n return additionalBillingData;\n }" ]
[ "0.77094644", "0.77094644", "0.68861866", "0.612994", "0.60419345", "0.60081285", "0.5939166", "0.59306145", "0.58655757", "0.58524615", "0.5822963", "0.57768404", "0.56534255", "0.5645257", "0.5612436", "0.55799073", "0.5546202", "0.55216366", "0.55216366", "0.54838455", "0.54284924", "0.5377349", "0.5375083", "0.53640497", "0.53408456", "0.53259206", "0.5311974", "0.5309732", "0.52852726", "0.528397", "0.5280059", "0.5274628", "0.5266959", "0.52592766", "0.52397263", "0.5220012", "0.5218126", "0.5217747", "0.5211539", "0.5208347", "0.5206594", "0.519923", "0.5195304", "0.51883787", "0.5175769", "0.51694", "0.51659554", "0.5165761", "0.51643336", "0.5163917", "0.516305", "0.5162326", "0.51584303", "0.5148427", "0.51455164", "0.5143513", "0.51324266", "0.5129603", "0.51276195", "0.5122712", "0.5116939", "0.5110376", "0.510832", "0.5105473", "0.5102011", "0.5093783", "0.5089424", "0.50882", "0.5087755", "0.5080546", "0.50792974", "0.5078978", "0.5074918", "0.5073381", "0.50729007", "0.50704265", "0.5069448", "0.50679594", "0.5067671", "0.5061699", "0.5061641", "0.5058825", "0.50499815", "0.5047855", "0.5045542", "0.50442755", "0.5041771", "0.5041331", "0.50410634", "0.50399756", "0.50381416", "0.503705", "0.50367224", "0.50363034", "0.50358963", "0.50327164", "0.5029353", "0.5025936", "0.5023132", "0.502287" ]
0.58840734
8
Generated method Getter of the BraintreeCustomerDetails.customFields attribute.
public Map<String,String> getAllCustomFields() { return getAllCustomFields( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }", "public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }", "@Column(name = \"customfields\")\n\t@Type(type = \"CustomFields\")\n\tpublic Map<String, String> getCustomFields() {\n\t\treturn customFields;\n\t}", "public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }", "public Map<String, String> customDetails() {\n return this.innerProperties() == null ? null : this.innerProperties().customDetails();\n }", "public String getCustomData() {\r\n\t\treturn customData;\r\n\t}", "public java.lang.String getCustom() {\r\n return custom;\r\n }", "public Map<String,String> getAllCustomFields(final SessionContext ctx)\n\t{\n\t\tMap<String,String> map = (Map<String,String>)getProperty( ctx, CUSTOMFIELDS);\n\t\treturn map != null ? map : Collections.EMPTY_MAP;\n\t}", "public List getCustomFieldsForTx(TransactionItem transactionItem) {\n Session session = getSession();\n String query = \"select custom_field_id as customFieldId from (\"\n + \" select cf.custom_field_id, cf.custom_field_name, cfTx.value\"\n + \" from custom_field cf, cf_tx_level cfTx\"\n + \" where cf.custom_field_id = cfTx.custom_field_id and cfTx.transaction_id = :transID\"\n + \" order by value, custom_field_name ) A\";\n SQLQuery sqlQuery = session.createSQLQuery(query.toString());\n sqlQuery.setLong(\"transID\", (Long) transactionItem.getId());\n sqlQuery.addScalar(\"customFieldId\", Hibernate.LONG);\n sqlQuery.setCacheable(false);\n sqlQuery.setCacheMode(CacheMode.IGNORE);\n List results = sqlQuery.list();\n releaseSession(session);\n return results;\n }", "x0401.oecdStandardAuditFileTaxPT1.CustomsDetails getCustomsDetails();", "public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemCustom getCustom() {\n return custom;\n }", "@Nullable\n public Map<String, List<String>> getCustomFlags() {\n return mCustomFlags;\n }", "public java.util.List<io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder> \n getCustomTagsBuilderList() {\n return getCustomTagsFieldBuilder().getBuilderList();\n }", "@java.lang.Override\n public java.util.List<io.envoyproxy.envoy.type.tracing.v3.CustomTag> getCustomTagsList() {\n return customTags_;\n }", "@java.lang.Override\n public java.util.List<? extends io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> \n getCustomTagsOrBuilderList() {\n return customTags_;\n }", "private static List<CustomFieldValue> getCustomFieldsValuesFromDemoLoc() throws MambuApiException {\n\n\t\treturn DemoUtil.getDemoLineOfCredit(DemoUtil.demoLineOfCreditId).getCustomFieldValues();\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCustomInstrumentationData() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get());\n }", "public String getCustCode() {\n return custCode;\n }", "public String getCustCode() {\n return custCode;\n }", "public String getCustomerCode() {\n\t\treturn customerCode;\n\t}", "public JSONObject getCustomParameters() {\n\n\t\treturn customParameters;\n\t}", "public GFRecordDataModel getCustomerLocalCustomerInformation()\n\t{\n\t\treturn getCustomerLocalCustomerInformation(system, unit, customerNumber);\n\t}", "public java.util.List<? extends io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> \n getCustomTagsOrBuilderList() {\n if (customTagsBuilder_ != null) {\n return customTagsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(customTags_);\n }\n }", "com.google.protobuf.ByteString\n getField1598Bytes();", "public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1028Bytes();", "public String getCustomerReference() {\n return customerReference;\n }", "public String[] getCustomFields(String collectionId) {\r\n String[] toReturn = new String[0];\r\n if (null == collectionId || 0 == collectionId.length()) {\r\n setError(\"APIL_0100\", \"argument's not valid.\");\r\n return toReturn;\r\n }\r\n\r\n String[] paramFields = {\"collection_id\", \"item_delimiter\"};\r\n SocketMessage request = new SocketMessage(\"retriever\", \"custom_field_list\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY,\r\n \"\", paramFields);\r\n request.setValue(\"collection_id\", collectionId);\r\n request.setValue(\"item_delimiter\", ITEM_DELIMITER);\r\n\r\n SocketMessage response = handleMessage(request);\r\n if (!isSuccessful(response)) {\r\n if (\"\".equals(response.getErrorCode())) {\r\n setError(\"APIL_0461\", \"getting list of custom fields wasn't successful: coll_id=\" + collectionId);\r\n } else {\r\n wrapError(\"APIL_0461\", \"getting list of custom fields wasn't successful: coll_id=\" + collectionId);\r\n }\r\n } else {\r\n toReturn = StringTool.stringToArray(response.getValue(\"fields\"), ITEM_DELIMITER);\r\n }\r\n return toReturn;\r\n }", "public String getCustomerMobile() {\n return customerMobile;\n }", "public com.vodafone.global.er.decoupling.binding.request.CatalogServiceFullType.CustomFieldsType createCatalogServiceFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogServiceFullTypeImpl.CustomFieldsTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1510Bytes();", "public CustomerNumberElements getCustomerNumberAccess() {\n\t\treturn pCustomerNumber;\n\t}", "@Override\r\n\tpublic String getCustomInfo() {\n\t\treturn null;\r\n\t}", "com.google.protobuf.ByteString\n getField1512Bytes();", "public com.commercetools.history.models.common.LocalizedString getCustomLineItem() {\n return this.customLineItem;\n }", "@Nullable\n public com.commercetools.api.models.type.FieldContainer getFields() {\n return this.fields;\n }", "com.google.protobuf.ByteString\n getField1215Bytes();", "public amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom getDataCustom()\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public java.util.List<io.envoyproxy.envoy.type.tracing.v3.CustomTag> getCustomTagsList() {\n if (customTagsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(customTags_);\n } else {\n return customTagsBuilder_.getMessageList();\n }\n }", "public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "com.google.protobuf.ByteString\n getField1815Bytes();", "com.google.protobuf.ByteString\n getField1518Bytes();", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.CustomFieldsType createCatalogPackageFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.CustomFieldsTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1514Bytes();", "public HashMap<String, String> getCustomMessageProperties() {\n return this.customMessageProperties;\n }", "public List<AccountingLineViewField> getFields() {\n return fields;\n }", "com.google.protobuf.ByteString\n getField1564Bytes();", "public io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder getCustomerOrBuilder() {\n return getCustomer();\n }", "public String getCustomHeader() {\n return this.customHeader;\n }", "com.google.protobuf.ByteString\n getField1511Bytes();", "com.google.protobuf.ByteString\n getField1410Bytes();", "public SchemaCustom getSchemaCustom() {\n return m_schemaCustom;\n }", "com.google.protobuf.ByteString\n getField1898Bytes();", "public List<Element> getCustomElements() {\r\n return customElements;\r\n }", "public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "public String getCustomerType() \n {\n return customerType;\n }", "public String getCustomerContactRecordAuthenticationLevel() {\n return customerContactRecordAuthenticationLevel;\n }", "com.google.protobuf.ByteString\n getField1599Bytes();", "com.google.protobuf.ByteString\n getField1810Bytes();", "com.google.protobuf.ByteString\n getField1532Bytes();", "public com.google.protobuf.ByteString\n getField1512Bytes() {\n java.lang.Object ref = field1512_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1512_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getField1814Bytes();", "public String getCustomer() {\n return customer;\n }", "com.google.protobuf.ByteString\n getField1549Bytes();", "private String getCustomAttributes() {\n StringBuilder sb = new StringBuilder();\n\n customAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }", "com.google.protobuf.ByteString\n getField1509Bytes();", "@JsonAnyGetter\n public Map<String, Object[]> otherFields() {\n return disciplineFields;\n }", "com.google.protobuf.ByteString\n getField1595Bytes();", "boolean isSetCustomsDetails();", "com.google.protobuf.ByteString\n getField1498Bytes();", "com.google.protobuf.ByteString\n getField1585Bytes();", "private com.google.protobuf.SingleFieldBuilderV3<\n io.opencannabis.schema.commerce.OrderCustomer.Customer, io.opencannabis.schema.commerce.OrderCustomer.Customer.Builder, io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder> \n getCustomerFieldBuilder() {\n if (customerBuilder_ == null) {\n customerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.opencannabis.schema.commerce.OrderCustomer.Customer, io.opencannabis.schema.commerce.OrderCustomer.Customer.Builder, io.opencannabis.schema.commerce.OrderCustomer.CustomerOrBuilder>(\n getCustomer(),\n getParentForChildren(),\n isClean());\n customer_ = null;\n }\n return customerBuilder_;\n }", "com.google.protobuf.ByteString\n getField1418Bytes();", "com.google.protobuf.ByteString\n getField1812Bytes();", "public String getCustomerPhone() {\n return customerPhone;\n }", "com.google.protobuf.ByteString\n getField1539Bytes();", "com.google.protobuf.ByteString\n getField1015Bytes();", "com.google.protobuf.ByteString\n getField1513Bytes();", "public Object getCustomerContactRecord() {\n return customerContactRecord;\n }", "com.google.protobuf.ByteString\n getField1547Bytes();", "com.google.protobuf.ByteString\n getField1115Bytes();", "com.google.protobuf.ByteString\n getField1025Bytes();", "public Map<String, Customer> getCustomer(){\r\n\t\treturn treeData;\r\n\t}", "@Override\n\tprotected String getFields()\n\t{\n\t\tString fields = \" HBLNM, HBCFR, HBCFL, HBRNM, HBDLM \";\n\t\treturn fields;\n\t}", "public com.google.protobuf.ByteString\n getField1512Bytes() {\n java.lang.Object ref = field1512_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n field1512_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCustomerContactRecordCustomerReference() {\n return customerContactRecordCustomerReference;\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CustomFieldsType createPricePointFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CustomFieldsTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1594Bytes();", "com.google.protobuf.ByteString\n getField1584Bytes();", "com.google.protobuf.ByteString\n getField1597Bytes();", "@java.lang.Override\n public io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder getCustomTagsOrBuilder(\n int index) {\n return customTags_.get(index);\n }", "public com.vodafone.global.er.decoupling.binding.request.CustomFieldType createCustomFieldType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldTypeImpl();\n }", "com.google.protobuf.ByteString\n getField1545Bytes();", "com.google.protobuf.ByteString\n getField1218Bytes();", "com.google.protobuf.ByteString\n getField1811Bytes();", "com.google.protobuf.ByteString\n getField1485Bytes();", "List<FieldNode> getFields() {\n return this.classNode.fields;\n }", "com.google.protobuf.ByteString\n getField1098Bytes();", "public String getCustomerMobile() {\n\t\treturn customerMobile;\n\t}", "public Map<String,Object> getCustomClaims();" ]
[ "0.7710128", "0.7710128", "0.68881476", "0.61325544", "0.60093945", "0.59402627", "0.59309065", "0.5885915", "0.586699", "0.585305", "0.5823902", "0.5777971", "0.5653385", "0.56463975", "0.5613202", "0.5580057", "0.5548041", "0.5523282", "0.5523282", "0.5484722", "0.54292136", "0.53790927", "0.5375623", "0.5364814", "0.5342845", "0.53265965", "0.5312042", "0.53115857", "0.52866197", "0.5284955", "0.52801335", "0.5275212", "0.526796", "0.5259589", "0.52412266", "0.52228194", "0.5218508", "0.5218146", "0.5212271", "0.5209832", "0.5206947", "0.5199633", "0.51960444", "0.51891214", "0.5178203", "0.5171834", "0.51668376", "0.5166352", "0.51658994", "0.51644343", "0.51637256", "0.51624537", "0.515927", "0.51497626", "0.5145152", "0.5144306", "0.5133929", "0.51299417", "0.5127838", "0.512317", "0.5116366", "0.5111324", "0.51085883", "0.51066184", "0.5103115", "0.50944334", "0.5090661", "0.5088931", "0.50881135", "0.50803053", "0.50802", "0.50795287", "0.5075835", "0.50739187", "0.50736475", "0.5071746", "0.5069851", "0.5068798", "0.5068165", "0.50630766", "0.50619966", "0.50585365", "0.5050329", "0.5047763", "0.5047334", "0.5044518", "0.5043283", "0.5042675", "0.504171", "0.5040814", "0.5038472", "0.50377434", "0.5037414", "0.50372726", "0.50365937", "0.50341547", "0.5032257", "0.5026614", "0.5023898", "0.50236046" ]
0.6044243
4
Generated method Setter of the BraintreeCustomerDetails.customFields attribute.
public void setAllCustomFields(final SessionContext ctx, final Map<String,String> value) { setProperty(ctx, CUSTOMFIELDS,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }", "public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }", "void setCustomsDetails(x0401.oecdStandardAuditFileTaxPT1.CustomsDetails customsDetails);", "@Column(name = \"customfields\")\n\t@Type(type = \"CustomFields\")\n\tpublic Map<String, String> getCustomFields() {\n\t\treturn customFields;\n\t}", "public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }", "public void setCustomData(final String customData) {\r\n\t\tthis.customData = customData;\r\n\t}", "public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }", "x0401.oecdStandardAuditFileTaxPT1.CustomsDetails addNewCustomsDetails();", "@Test\n public void updateShoppingCartConnectionCustomFieldsTest() throws ApiException {\n ShoppingCartConnection body = null;\n api.updateShoppingCartConnectionCustomFields(body);\n\n // TODO: test validations\n }", "public void setDataCustom(amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }", "public void setCustom(vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemCustom custom) {\n this.custom = custom;\n }", "public void setCustomHeader(String customHeader) {\n this.customHeader = customHeader;\n }", "public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }", "public static void saveCustom(Vendor vendor, HttpServletRequest request,\n SessionManager sessionMgr)\n {\n FieldSecurity fs = (FieldSecurity) sessionMgr\n .getAttribute(VendorConstants.FIELD_SECURITY_CHECK_PROJS);\n if (fs != null)\n {\n String access = fs.get(VendorSecureFields.CUSTOM_FIELDS);\n if (\"hidden\".equals(access) || \"locked\".equals(access))\n {\n return;\n }\n }\n Hashtable fields = vendor.getCustomFields();\n if (fields == null)\n {\n fields = new Hashtable();\n }\n ArrayList list = CustomPageHelper.getCustomFieldNames();\n for (int i = 0; i < list.size(); i++)\n {\n String key = (String) list.get(i);\n String value = (String) request.getParameter(key);\n if (value == null)\n {\n fields.remove(key);\n }\n else\n {\n // if already in the list\n CustomField cf = (CustomField) fields.get(key);\n if (cf != null)\n {\n cf.setValue(value);\n }\n else\n {\n cf = new CustomField(key, value);\n }\n fields.put(key, cf);\n\n }\n }\n vendor.setCustomFields(fields);\n }", "public DataResourceBuilder _customLicense_(URI _customLicense_) {\n this.dataResourceImpl.setCustomLicense(_customLicense_);\n return this;\n }", "public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemCustom getCustom() {\n return custom;\n }", "@Autowired\n\tpublic void setCustomInterceptor(CustomInterceptor customInterceptor) {\n\t\tthis.customInterceptor = customInterceptor;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.CatalogServiceFullType.CustomFieldsType createCatalogServiceFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogServiceFullTypeImpl.CustomFieldsTypeImpl();\n }", "private static List<CustomFieldValue> getCustomFieldsValuesFromDemoLoc() throws MambuApiException {\n\n\t\treturn DemoUtil.getDemoLineOfCredit(DemoUtil.demoLineOfCreditId).getCustomFieldValues();\n\t}", "boolean isSetCustomsDetails();", "public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }", "public void setCustomerMobile(String customerMobile) {\n this.customerMobile = customerMobile;\n }", "private void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }", "public void setDataCustom(amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }", "@Test\n public void createCustomFieldTest() throws ApiException {\n CustomFieldDefinitionJsonBean body = null;\n FieldDetails response = api.createCustomField(body);\n\n // TODO: test validations\n }", "public com.vodafone.global.er.decoupling.binding.request.CustomFieldType createCustomFieldType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldTypeImpl();\n }", "public void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.CustomFieldsType createCatalogPackageFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.CustomFieldsTypeImpl();\n }", "public void setCustCode(String custCode) {\n this.custCode = custCode == null ? null : custCode.trim();\n }", "public void setCustCode(String custCode) {\n this.custCode = custCode == null ? null : custCode.trim();\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CustomFieldsType createPricePointFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CustomFieldsTypeImpl();\n }", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public final void setCustomMessages(final String ccustomMessages) {\n\t\tthis.customMessages = ccustomMessages;\n\t}", "public String getCustomData() {\r\n\t\treturn customData;\r\n\t}", "public void setAllCustomFields(final Map<String,String> value)\n\t{\n\t\tsetAllCustomFields( getSession().getSessionContext(), value );\n\t}", "public void mo55177a() {\n C3767w0.m1812b().mo55895a((HashMap<String, Object>) this.f1473a, C3615m3.this.f1442a);\n AnalyticsBridge.getInstance().reportSetCustomParametersEvent(this.f1473a);\n }", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "public abstract void setCustomData(Object data);", "private void processCustomFields(Object value, ProcessorContext<T> processorContext,\r\n Class<CustomFieldProcessor<T, ?>> processorClass)\r\n {\r\n CustomFieldProcessor cfp = getFieldProcessor(processorClass);\r\n if (cfp != null) {\r\n cfp.processCustomField(value, processorContext);\r\n }\r\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }", "public Builder setField1152(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1152_ = value;\n onChanged();\n return this;\n }", "protected void addCust_val9PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val9_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val9_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL9,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData to1411CustomData() {\n com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData custom = new com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData();\n custom.setAny(this.any);\n return custom;\n }", "protected void addCust_val8PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val8_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val8_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL8,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public void setCustomerCode(String customerCode)\n\t{\n\t\tsetColumn(customerCode, OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public String getCustCode() {\n return custCode;\n }", "public String getCustCode() {\n return custCode;\n }", "protected void addCust_val5PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val5_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val5_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL5,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public java.lang.String getCustom() {\r\n return custom;\r\n }", "public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }", "public Builder setField1512(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1512_ = value;\n onChanged();\n return this;\n }", "public String getCustomerCode() {\n\t\treturn customerCode;\n\t}", "public Builder setField1215(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1215_ = value;\n onChanged();\n return this;\n }", "public Builder setField1115(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1115_ = value;\n onChanged();\n return this;\n }", "public Builder setField1811(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1811_ = value;\n onChanged();\n return this;\n }", "public getEmployeeCustomFieldsConf_args(getEmployeeCustomFieldsConf_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.companyId = other.companyId;\n }", "private void fillMandatoryFields_custom() {\n\n }", "public Builder setField1115Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1115_ = value;\n onChanged();\n return this;\n }", "public Builder setField1512Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1512_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void modifyCustomer(Customer customer, Branch branch) {\n\t\t\n\t}", "public Builder setField1511(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1511_ = value;\n onChanged();\n return this;\n }", "public void setCustomerCode(String customerCode) {\n\t\tthis.customerCode = customerCode == null ? null : customerCode.trim();\n\t}", "x0401.oecdStandardAuditFileTaxPT1.CustomsDetails getCustomsDetails();", "public Builder setField1815(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1815_ = value;\n onChanged();\n return this;\n }", "public Builder setField1215Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1215_ = value;\n onChanged();\n return this;\n }", "public void setCustomPreSyncConfiguration(final BiConsumer<SyncNode, SyncNode> customPreSyncConfiguration) {\n this.customPreSyncConfiguration = customPreSyncConfiguration;\n }", "@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}", "public getEmployeeCustomFieldsConf_result(getEmployeeCustomFieldsConf_result other) {\n if (other.isSetSuccess()) {\n java.util.List<com.moseeker.thrift.gen.employee.struct.EmployeeCustomFieldsConf> __this__success = new java.util.ArrayList<com.moseeker.thrift.gen.employee.struct.EmployeeCustomFieldsConf>(other.success.size());\n for (com.moseeker.thrift.gen.employee.struct.EmployeeCustomFieldsConf other_element : other.success) {\n __this__success.add(new com.moseeker.thrift.gen.employee.struct.EmployeeCustomFieldsConf(other_element));\n }\n this.success = __this__success;\n }\n }", "public void readCustomerFields(Customer customer) {\n\t\tString email = request.getParameter(\"email\");\n\t\tString fullName = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString phone = request.getParameter(\"phone\");\n\t\tString address = request.getParameter(\"address\");\n\t\tString city = request.getParameter(\"city\");\n\t\tString zipCode = request.getParameter(\"zipCode\");\n\t\tString country = request.getParameter(\"country\");\n\t\t\n\t\tif(email!=null && !email.equals(\"\")) {\n\t\t\tcustomer.setEmail(email);\n\t\t}\n\t\t\n\t\tcustomer.setFullname(fullName);\n\t\t\n\t\tif(password!=null && !password.equals(\"\")) {\n\t\t\tcustomer.setPassword(password);\n\t\t}\n\t\t\n\t\tcustomer.setPhoneNumber(phone);\n\t\tcustomer.setAddress(address);\n\t\tcustomer.setCity(city);\n\t\tcustomer.setZipCode(zipCode);\n\t\tcustomer.setCountry(country);\n\t}", "public Builder setField1511Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1511_ = value;\n onChanged();\n return this;\n }", "public Map<String, String> customDetails() {\n return this.innerProperties() == null ? null : this.innerProperties().customDetails();\n }", "public void setCustomerCode(String customerCode) {\n\t\tthis.customerCode = customerCode;\n\t}", "public void setCustomMetricNameBytes(ByteString value) {\n if (value != null) {\n this.bitField0_ |= 4;\n this.customMetricName_ = value.toStringUtf8();\n return;\n }\n throw new NullPointerException();\n }", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder addCustomTagsBuilder() {\n return getCustomTagsFieldBuilder().addBuilder(\n io.envoyproxy.envoy.type.tracing.v3.CustomTag.getDefaultInstance());\n }", "public List getCustomFieldsForTx(TransactionItem transactionItem) {\n Session session = getSession();\n String query = \"select custom_field_id as customFieldId from (\"\n + \" select cf.custom_field_id, cf.custom_field_name, cfTx.value\"\n + \" from custom_field cf, cf_tx_level cfTx\"\n + \" where cf.custom_field_id = cfTx.custom_field_id and cfTx.transaction_id = :transID\"\n + \" order by value, custom_field_name ) A\";\n SQLQuery sqlQuery = session.createSQLQuery(query.toString());\n sqlQuery.setLong(\"transID\", (Long) transactionItem.getId());\n sqlQuery.addScalar(\"customFieldId\", Hibernate.LONG);\n sqlQuery.setCacheable(false);\n sqlQuery.setCacheMode(CacheMode.IGNORE);\n List results = sqlQuery.list();\n releaseSession(session);\n return results;\n }", "public Customer(String CustomerDetails) throws CustomException \n {\n if(CustomerDetails.trim().length()==0)\n {\n throw new CustomException(\"Empty customer Details are not allowed.\");\n }\n\n String[] CustomerDetail = CustomerDetails.split(\", \");\n setCustomerId(Integer.parseInt(CustomerDetail[0]));\n setCustomerName(CustomerDetail[1]);\n setCustomerType(CustomerDetail[2]);\n }", "public Builder setField1812(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1812_ = value;\n onChanged();\n return this;\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "public setEmployeeCustomInfo_args(setEmployeeCustomInfo_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.employeeId = other.employeeId;\n if (other.isSetCustomValues()) {\n this.customValues = other.customValues;\n }\n }", "public Builder setField1598(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1598_ = value;\n onChanged();\n return this;\n }", "public String getCustomerMobile() {\n return customerMobile;\n }", "public setCacheEmployeeCustomInfo_args(setCacheEmployeeCustomInfo_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.userId = other.userId;\n this.companyId = other.companyId;\n if (other.isSetCustomValues()) {\n this.customValues = other.customValues;\n }\n }", "@java.lang.Override\n public java.util.List<? extends io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> \n getCustomTagsOrBuilderList() {\n return customTags_;\n }", "public void setCustomerType(String customerType) \n {\n this.customerType = customerType;\n }", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void setFields(List<AccountingLineViewField> fields) {\n this.fields = fields;\n }", "public Builder setField1028(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1028_ = value;\n onChanged();\n return this;\n }", "public Builder setField1539Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1539_ = value;\n onChanged();\n return this;\n }", "public Builder setField1518(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1518_ = value;\n onChanged();\n return this;\n }", "public Builder setField1185(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1185_ = value;\n onChanged();\n return this;\n }", "public Builder setField1532(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1532_ = value;\n onChanged();\n return this;\n }", "public void setCustomInitialization(final BiConsumer<SyncNode, SyncNode> customInitialization) {\n this.customInitialization = customInitialization;\n }", "public Builder setField1885(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1885_ = value;\n onChanged();\n return this;\n }", "public Builder setField1510(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1510_ = value;\n onChanged();\n return this;\n }" ]
[ "0.61794364", "0.61794364", "0.57026255", "0.561635", "0.55084276", "0.54108965", "0.53968745", "0.53242946", "0.5304357", "0.5288384", "0.5234268", "0.5225268", "0.51532227", "0.5111276", "0.50687677", "0.5051464", "0.5038293", "0.5006989", "0.4989846", "0.4984296", "0.49749348", "0.49731645", "0.49627626", "0.4933994", "0.49289638", "0.4909833", "0.49067193", "0.490293", "0.48713544", "0.48639536", "0.48607007", "0.48607007", "0.48590922", "0.48468307", "0.4846377", "0.48116618", "0.48040152", "0.48037457", "0.48001635", "0.4798823", "0.47968367", "0.4788979", "0.47660884", "0.47634277", "0.4727594", "0.4725939", "0.47168455", "0.4710566", "0.47049898", "0.46953973", "0.46953973", "0.46949965", "0.4692055", "0.46913987", "0.46897876", "0.46605173", "0.46448222", "0.4643167", "0.46200287", "0.4616943", "0.46144542", "0.46071175", "0.46069846", "0.4606516", "0.46045843", "0.45965537", "0.45943126", "0.45872024", "0.45739624", "0.4571577", "0.4563466", "0.45614836", "0.45584705", "0.45527858", "0.45527828", "0.4550949", "0.45487422", "0.4536372", "0.45341054", "0.45283097", "0.4520347", "0.45165455", "0.45121694", "0.4508446", "0.450492", "0.4504463", "0.44971445", "0.4496767", "0.44948885", "0.44932213", "0.44920784", "0.44914106", "0.44845355", "0.44760883", "0.4475637", "0.44723132", "0.44654745", "0.4465247", "0.446075", "0.44582453" ]
0.54576325
5
Generated method Setter of the BraintreeCustomerDetails.customFields attribute.
public void setAllCustomFields(final Map<String,String> value) { setAllCustomFields( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }", "public com.commercetools.api.models.type.CustomFields getCustom() {\n return this.custom;\n }", "void setCustomsDetails(x0401.oecdStandardAuditFileTaxPT1.CustomsDetails customsDetails);", "@Column(name = \"customfields\")\n\t@Type(type = \"CustomFields\")\n\tpublic Map<String, String> getCustomFields() {\n\t\treturn customFields;\n\t}", "public void setCustom(java.lang.String custom) {\r\n this.custom = custom;\r\n }", "public void setAllCustomFields(final SessionContext ctx, final Map<String,String> value)\n\t{\n\t\tsetProperty(ctx, CUSTOMFIELDS,value);\n\t}", "public void setCustomData(final String customData) {\r\n\t\tthis.customData = customData;\r\n\t}", "public OrderSetCustomTypeActionBuilder fields(\n @Nullable final com.commercetools.api.models.type.FieldContainer fields) {\n this.fields = fields;\n return this;\n }", "x0401.oecdStandardAuditFileTaxPT1.CustomsDetails addNewCustomsDetails();", "@Test\n public void updateShoppingCartConnectionCustomFieldsTest() throws ApiException {\n ShoppingCartConnection body = null;\n api.updateShoppingCartConnectionCustomFields(body);\n\n // TODO: test validations\n }", "public void setDataCustom(amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.bundlecomponents.bundledetailsinputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointType.CustomFieldsType createPricePointTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointTypeImpl.CustomFieldsTypeImpl();\n }", "public void setCustom(vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemCustom custom) {\n this.custom = custom;\n }", "public void setCustomHeader(String customHeader) {\n this.customHeader = customHeader;\n }", "public static List<CustomFields> createCustomFieldsList() {\r\n List<CustomFields> customFields = new ArrayList<CustomFields>();\r\n\r\n customFields.add(createCustomFields(2, 15472, \"COMPANY\", \"1\", \"c1\", \"CORRELATION_ID\", \"0\"));\r\n customFields.add(createCustomFields(3, 15472, \"COMPANY\", \"2\", \"c2\", \"GROUP_ID\", \"0\"));\r\n return customFields;\r\n }", "public static void saveCustom(Vendor vendor, HttpServletRequest request,\n SessionManager sessionMgr)\n {\n FieldSecurity fs = (FieldSecurity) sessionMgr\n .getAttribute(VendorConstants.FIELD_SECURITY_CHECK_PROJS);\n if (fs != null)\n {\n String access = fs.get(VendorSecureFields.CUSTOM_FIELDS);\n if (\"hidden\".equals(access) || \"locked\".equals(access))\n {\n return;\n }\n }\n Hashtable fields = vendor.getCustomFields();\n if (fields == null)\n {\n fields = new Hashtable();\n }\n ArrayList list = CustomPageHelper.getCustomFieldNames();\n for (int i = 0; i < list.size(); i++)\n {\n String key = (String) list.get(i);\n String value = (String) request.getParameter(key);\n if (value == null)\n {\n fields.remove(key);\n }\n else\n {\n // if already in the list\n CustomField cf = (CustomField) fields.get(key);\n if (cf != null)\n {\n cf.setValue(value);\n }\n else\n {\n cf = new CustomField(key, value);\n }\n fields.put(key, cf);\n\n }\n }\n vendor.setCustomFields(fields);\n }", "public DataResourceBuilder _customLicense_(URI _customLicense_) {\n this.dataResourceImpl.setCustomLicense(_customLicense_);\n return this;\n }", "public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemCustom getCustom() {\n return custom;\n }", "@Autowired\n\tpublic void setCustomInterceptor(CustomInterceptor customInterceptor) {\n\t\tthis.customInterceptor = customInterceptor;\n\t}", "public com.vodafone.global.er.decoupling.binding.request.CatalogServiceFullType.CustomFieldsType createCatalogServiceFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogServiceFullTypeImpl.CustomFieldsTypeImpl();\n }", "private static List<CustomFieldValue> getCustomFieldsValuesFromDemoLoc() throws MambuApiException {\n\n\t\treturn DemoUtil.getDemoLineOfCredit(DemoUtil.demoLineOfCreditId).getCustomFieldValues();\n\t}", "boolean isSetCustomsDetails();", "public OrderSetCustomTypeActionBuilder fields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainerBuilder> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of()).build();\n return this;\n }", "public void setCustomerMobile(String customerMobile) {\n this.customerMobile = customerMobile;\n }", "private void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }", "public void setDataCustom(amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom dataCustom)\n {\n synchronized (monitor())\n {\n check_orphaned();\n amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom target = null;\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().find_element_user(DATACUSTOM$2, 0);\n if (target == null)\n {\n target = (amdocs.iam.pd.webservices.offer.billdiscountofferlistoutputimpl.DataCustom)get_store().add_element_user(DATACUSTOM$2);\n }\n target.set(dataCustom);\n }\n }", "@Test\n public void createCustomFieldTest() throws ApiException {\n CustomFieldDefinitionJsonBean body = null;\n FieldDetails response = api.createCustomField(body);\n\n // TODO: test validations\n }", "public com.vodafone.global.er.decoupling.binding.request.CustomFieldType createCustomFieldType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CustomFieldTypeImpl();\n }", "public void setCustomInstrumentationData(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get(), value);\n }", "public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }", "public com.vodafone.global.er.decoupling.binding.request.CatalogPackageFullType.CustomFieldsType createCatalogPackageFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.CatalogPackageFullTypeImpl.CustomFieldsTypeImpl();\n }", "public void setCustCode(String custCode) {\n this.custCode = custCode == null ? null : custCode.trim();\n }", "public void setCustCode(String custCode) {\n this.custCode = custCode == null ? null : custCode.trim();\n }", "public com.vodafone.global.er.decoupling.binding.request.PricePointFullType.CustomFieldsType createPricePointFullTypeCustomFieldsType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.PricePointFullTypeImpl.CustomFieldsTypeImpl();\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "public final void setCustomMessages(final String ccustomMessages) {\n\t\tthis.customMessages = ccustomMessages;\n\t}", "public String getCustomData() {\r\n\t\treturn customData;\r\n\t}", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "public void mo55177a() {\n C3767w0.m1812b().mo55895a((HashMap<String, Object>) this.f1473a, C3615m3.this.f1442a);\n AnalyticsBridge.getInstance().reportSetCustomParametersEvent(this.f1473a);\n }", "public abstract void setCustomData(Object data);", "private void processCustomFields(Object value, ProcessorContext<T> processorContext,\r\n Class<CustomFieldProcessor<T, ?>> processorClass)\r\n {\r\n CustomFieldProcessor cfp = getFieldProcessor(processorClass);\r\n if (cfp != null) {\r\n cfp.processCustomField(value, processorContext);\r\n }\r\n }", "public void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);", "public OrderSetCustomTypeActionBuilder withFields(\n Function<com.commercetools.api.models.type.FieldContainerBuilder, com.commercetools.api.models.type.FieldContainer> builder) {\n this.fields = builder.apply(com.commercetools.api.models.type.FieldContainerBuilder.of());\n return this;\n }", "protected void addCust_val9PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val9_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val9_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL9,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public Builder setField1152(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1152_ = value;\n onChanged();\n return this;\n }", "public com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData to1411CustomData() {\n com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData custom = new com.hashmapinc.tempus.WitsmlObjects.v1411.CsCustomData();\n custom.setAny(this.any);\n return custom;\n }", "protected void addCust_val8PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val8_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val8_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL8,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public void setCustomerCode(String customerCode)\n\t{\n\t\tsetColumn(customerCode, OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}", "public String getCustCode() {\n return custCode;\n }", "public String getCustCode() {\n return custCode;\n }", "protected void addCust_val5PropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Icc_cdobj_rec_cust_val5_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Icc_cdobj_rec_cust_val5_feature\", \"_UI_Icc_cdobj_rec_type\"),\r\n\t\t\t\t IccPackage.Literals.ICC_CDOBJ_REC__CUST_VAL5,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}", "public void setCustNo(java.lang.String custNo) {\n this.custNo = custNo;\n }", "public java.lang.String getCustom() {\r\n return custom;\r\n }", "public Builder setField1512(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1512_ = value;\n onChanged();\n return this;\n }", "public String getCustomerCode() {\n\t\treturn customerCode;\n\t}", "public Builder setField1215(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1215_ = value;\n onChanged();\n return this;\n }", "public Builder setField1115(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1115_ = value;\n onChanged();\n return this;\n }", "public Builder setField1811(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1811_ = value;\n onChanged();\n return this;\n }", "public getEmployeeCustomFieldsConf_args(getEmployeeCustomFieldsConf_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.companyId = other.companyId;\n }", "private void fillMandatoryFields_custom() {\n\n }", "public Builder setField1115Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1115_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void modifyCustomer(Customer customer, Branch branch) {\n\t\t\n\t}", "public Builder setField1512Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1512_ = value;\n onChanged();\n return this;\n }", "public Builder setField1511(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1511_ = value;\n onChanged();\n return this;\n }", "public void setCustomerCode(String customerCode) {\n\t\tthis.customerCode = customerCode == null ? null : customerCode.trim();\n\t}", "x0401.oecdStandardAuditFileTaxPT1.CustomsDetails getCustomsDetails();", "public Builder setField1815(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1815_ = value;\n onChanged();\n return this;\n }", "public Builder setField1215Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1215_ = value;\n onChanged();\n return this;\n }", "public void setCustomPreSyncConfiguration(final BiConsumer<SyncNode, SyncNode> customPreSyncConfiguration) {\n this.customPreSyncConfiguration = customPreSyncConfiguration;\n }", "@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}", "public getEmployeeCustomFieldsConf_result(getEmployeeCustomFieldsConf_result other) {\n if (other.isSetSuccess()) {\n java.util.List<com.moseeker.thrift.gen.employee.struct.EmployeeCustomFieldsConf> __this__success = new java.util.ArrayList<com.moseeker.thrift.gen.employee.struct.EmployeeCustomFieldsConf>(other.success.size());\n for (com.moseeker.thrift.gen.employee.struct.EmployeeCustomFieldsConf other_element : other.success) {\n __this__success.add(new com.moseeker.thrift.gen.employee.struct.EmployeeCustomFieldsConf(other_element));\n }\n this.success = __this__success;\n }\n }", "public void readCustomerFields(Customer customer) {\n\t\tString email = request.getParameter(\"email\");\n\t\tString fullName = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString phone = request.getParameter(\"phone\");\n\t\tString address = request.getParameter(\"address\");\n\t\tString city = request.getParameter(\"city\");\n\t\tString zipCode = request.getParameter(\"zipCode\");\n\t\tString country = request.getParameter(\"country\");\n\t\t\n\t\tif(email!=null && !email.equals(\"\")) {\n\t\t\tcustomer.setEmail(email);\n\t\t}\n\t\t\n\t\tcustomer.setFullname(fullName);\n\t\t\n\t\tif(password!=null && !password.equals(\"\")) {\n\t\t\tcustomer.setPassword(password);\n\t\t}\n\t\t\n\t\tcustomer.setPhoneNumber(phone);\n\t\tcustomer.setAddress(address);\n\t\tcustomer.setCity(city);\n\t\tcustomer.setZipCode(zipCode);\n\t\tcustomer.setCountry(country);\n\t}", "public Map<String, String> customDetails() {\n return this.innerProperties() == null ? null : this.innerProperties().customDetails();\n }", "public void setCustomerCode(String customerCode) {\n\t\tthis.customerCode = customerCode;\n\t}", "public Builder setField1511Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1511_ = value;\n onChanged();\n return this;\n }", "public void setCustomMetricNameBytes(ByteString value) {\n if (value != null) {\n this.bitField0_ |= 4;\n this.customMetricName_ = value.toStringUtf8();\n return;\n }\n throw new NullPointerException();\n }", "public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }", "public io.envoyproxy.envoy.type.tracing.v3.CustomTag.Builder addCustomTagsBuilder() {\n return getCustomTagsFieldBuilder().addBuilder(\n io.envoyproxy.envoy.type.tracing.v3.CustomTag.getDefaultInstance());\n }", "public List getCustomFieldsForTx(TransactionItem transactionItem) {\n Session session = getSession();\n String query = \"select custom_field_id as customFieldId from (\"\n + \" select cf.custom_field_id, cf.custom_field_name, cfTx.value\"\n + \" from custom_field cf, cf_tx_level cfTx\"\n + \" where cf.custom_field_id = cfTx.custom_field_id and cfTx.transaction_id = :transID\"\n + \" order by value, custom_field_name ) A\";\n SQLQuery sqlQuery = session.createSQLQuery(query.toString());\n sqlQuery.setLong(\"transID\", (Long) transactionItem.getId());\n sqlQuery.addScalar(\"customFieldId\", Hibernate.LONG);\n sqlQuery.setCacheable(false);\n sqlQuery.setCacheMode(CacheMode.IGNORE);\n List results = sqlQuery.list();\n releaseSession(session);\n return results;\n }", "public Customer(String CustomerDetails) throws CustomException \n {\n if(CustomerDetails.trim().length()==0)\n {\n throw new CustomException(\"Empty customer Details are not allowed.\");\n }\n\n String[] CustomerDetail = CustomerDetails.split(\", \");\n setCustomerId(Integer.parseInt(CustomerDetail[0]));\n setCustomerName(CustomerDetail[1]);\n setCustomerType(CustomerDetail[2]);\n }", "public Builder setField1812(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1812_ = value;\n onChanged();\n return this;\n }", "public void setCustomer(String Cus){\n\n this.customer = Cus;\n }", "public setEmployeeCustomInfo_args(setEmployeeCustomInfo_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.employeeId = other.employeeId;\n if (other.isSetCustomValues()) {\n this.customValues = other.customValues;\n }\n }", "public String getCustomerMobile() {\n return customerMobile;\n }", "public Builder setField1598(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1598_ = value;\n onChanged();\n return this;\n }", "public void setCustomerType(String customerType) \n {\n this.customerType = customerType;\n }", "@java.lang.Override\n public java.util.List<? extends io.envoyproxy.envoy.type.tracing.v3.CustomTagOrBuilder> \n getCustomTagsOrBuilderList() {\n return customTags_;\n }", "public void setCustomer(String customer) {\n this.customer = customer;\n }", "public setCacheEmployeeCustomInfo_args(setCacheEmployeeCustomInfo_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.userId = other.userId;\n this.companyId = other.companyId;\n if (other.isSetCustomValues()) {\n this.customValues = other.customValues;\n }\n }", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void setFields(List<AccountingLineViewField> fields) {\n this.fields = fields;\n }", "public Builder setField1028(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1028_ = value;\n onChanged();\n return this;\n }", "public Builder setField1518(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1518_ = value;\n onChanged();\n return this;\n }", "public Builder setField1539Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1539_ = value;\n onChanged();\n return this;\n }", "public Builder setField1185(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1185_ = value;\n onChanged();\n return this;\n }", "public Builder setField1532(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1532_ = value;\n onChanged();\n return this;\n }", "public void setCustomInitialization(final BiConsumer<SyncNode, SyncNode> customInitialization) {\n this.customInitialization = customInitialization;\n }", "public Builder setField1885(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1885_ = value;\n onChanged();\n return this;\n }", "public Builder setField1510(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n field1510_ = value;\n onChanged();\n return this;\n }" ]
[ "0.6181062", "0.6181062", "0.5702344", "0.5617684", "0.5508259", "0.5457689", "0.5410782", "0.5395254", "0.53256553", "0.53044546", "0.528844", "0.52345526", "0.5225786", "0.51536894", "0.5112021", "0.50706995", "0.5051231", "0.5038672", "0.5006645", "0.49908185", "0.49859592", "0.49758285", "0.49734136", "0.49648258", "0.49342012", "0.49281344", "0.49118125", "0.49080184", "0.49031258", "0.48735586", "0.48646748", "0.48633024", "0.48633024", "0.48588148", "0.48467314", "0.48444766", "0.48117504", "0.48054212", "0.48010084", "0.47988743", "0.47962928", "0.4790648", "0.47656965", "0.47635955", "0.47277555", "0.47277433", "0.4718553", "0.47121966", "0.47073644", "0.46976367", "0.46976367", "0.46963", "0.46943885", "0.46922508", "0.46904442", "0.4663599", "0.4645537", "0.46438465", "0.46197435", "0.46165285", "0.46144402", "0.46079665", "0.46079084", "0.4607533", "0.46051246", "0.45995688", "0.45956457", "0.4587328", "0.45747027", "0.4570579", "0.45661956", "0.45628783", "0.45619044", "0.4554597", "0.45542967", "0.45535183", "0.4548612", "0.4538794", "0.4533955", "0.45297194", "0.45227453", "0.45163456", "0.4514534", "0.4507573", "0.45063865", "0.45047206", "0.44977814", "0.44967484", "0.4496273", "0.44961193", "0.44909096", "0.44899744", "0.44838747", "0.44758835", "0.44752613", "0.44719094", "0.44664535", "0.4464235", "0.44597468", "0.44589543" ]
0.48041025
38
Generated method Getter of the BraintreeCustomerDetails.email attribute.
public String getEmail(final SessionContext ctx) { return (String)getProperty( ctx, EMAIL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "public String getEmail()\r\n {\r\n return getAttribute(\"email\");\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getCustomerEmailAddress() { return customerEmailAddress; }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "@Override\n public String getEmailAddress() {\n\n if(this.emailAddress == null){\n\n this.emailAddress = TestDatabase.getInstance().getClientField(token, id, \"emailAddress\");\n }\n\n return emailAddress;\n }", "public final String getEmail() {\n return email;\n }", "public String getEmailAddress() {\n return email;\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail() {\n return _email;\n }", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail()\n\t{\n\t\treturn this._email;\n\t}", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\r\n\t}", "public String getEmail()\n {\n return email;\n }", "public String getEmail()\n {\n return email;\n }", "public java.lang.String getEmail() {\r\n return email;\r\n }", "public String getEmail()\n {\n return this.email;\n }", "public String getEmail()\r\n {\r\n return email;\r\n }", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail()\n\t{\n\t\treturn this.email;\n\t}", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }" ]
[ "0.80772847", "0.8045983", "0.7834456", "0.77624923", "0.7735192", "0.7735192", "0.7735192", "0.7735192", "0.7735192", "0.7735192", "0.7735192", "0.7735192", "0.7735192", "0.7735192", "0.7735192", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.7720319", "0.77104026", "0.7695853", "0.7694951", "0.7694951", "0.7694951", "0.7694951", "0.7693651", "0.7693651", "0.7692285", "0.76922816", "0.7690751", "0.7685237", "0.766938", "0.766938", "0.76595384", "0.7648267", "0.7648267", "0.7648267", "0.76438445", "0.76421094", "0.76372486", "0.76372486", "0.76246494", "0.7621686", "0.7619351", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.7617153", "0.76075506", "0.76074505", "0.76074505", "0.76074505", "0.76074505" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.email attribute.
public String getEmail() { return getEmail( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "public String getEmail()\r\n {\r\n return getAttribute(\"email\");\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getCustomerEmailAddress() { return customerEmailAddress; }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "@Override\n public String getEmailAddress() {\n\n if(this.emailAddress == null){\n\n this.emailAddress = TestDatabase.getInstance().getClientField(token, id, \"emailAddress\");\n }\n\n return emailAddress;\n }", "public final String getEmail() {\n return email;\n }", "public String getEmailAddress() {\n return email;\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail() {\n return _email;\n }", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail() {\r\n\t\treturn email;\r\n\t}", "public String getEmail()\n\t{\n\t\treturn this._email;\n\t}", "@Override\r\n\tpublic String getEmail() {\n\t\treturn email;\r\n\t}", "public String getEmail()\n {\n return email;\n }", "public String getEmail()\n {\n return email;\n }", "public java.lang.String getEmail() {\r\n return email;\r\n }", "public String getEmail()\n {\n return this.email;\n }", "public String getEmail()\r\n {\r\n return email;\r\n }", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail() {\n\t\treturn email;\n\t}", "public String getEmail()\n\t{\n\t\treturn this.email;\n\t}", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }", "public java.lang.String getEmail() {\n return email;\n }" ]
[ "0.80758625", "0.80442256", "0.78334916", "0.77628046", "0.77342474", "0.77342474", "0.77342474", "0.77342474", "0.77342474", "0.77342474", "0.77342474", "0.77342474", "0.77342474", "0.77342474", "0.77342474", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.7719333", "0.77081627", "0.76951635", "0.769417", "0.769417", "0.769417", "0.769417", "0.76925325", "0.76925325", "0.7692029", "0.769179", "0.7689955", "0.76845133", "0.7668546", "0.7668546", "0.76588553", "0.7647768", "0.7647768", "0.7647768", "0.764362", "0.76411986", "0.763606", "0.763606", "0.7624103", "0.7620636", "0.76182944", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.7616689", "0.76071125", "0.7606918", "0.7606918", "0.7606918", "0.7606918" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.email attribute.
public void setEmail(final SessionContext ctx, final String value) { setProperty(ctx, EMAIL,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setEmail(java.lang.String email) {\n _entityCustomer.setEmail(email);\n }", "public void setEmail_address(String email_address);", "@Override\n public void setEmail(String email) {\n\n }", "public void setEmail(Email email) { this.email = email; }", "public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public void setEmail(String email);", "public void setEmail(String aEmail) {\n email = aEmail;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "void setEmail(String email);", "void setEmail(String email);", "public void setEmail(final String e)\n {\n this.email = e;\n }", "public void setEmail(String email){\r\n this.email = email;\r\n }", "public void setEmail(String email) { this.email = email; }", "public void setEmail( String email )\r\n {\r\n this.email = email;\r\n }", "public String getCustomerEmailAddress() { return customerEmailAddress; }", "public void setEmailAddress(String emailAddress);", "public void set_email(String Email)\n {\n email =Email;\n }", "public void setEmailAddress(String email_address){\n this.email_address = email_address;\n }", "public void setEmailAddress(String email) {\n this.email = email;\n }", "public void setEmail(String email)\n {\n this.email = email;\n }", "public void setEmailAddressOfCustomer(final String value)\n\t{\n\t\tsetEmailAddressOfCustomer( getSession().getSessionContext(), value );\n\t}", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "@ApiModelProperty(value = \"Email of the customer associated with this gift certificate.\")\n public String getEmail() {\n return email;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n email_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "@Override\n\tpublic void setEmail(String email) {\n\t\tsuper.setEmail(email);\n\t}", "public void setCustomerEmailAddress(String customerEmailAddress) {\n this.customerEmailAddress = customerEmailAddress;\n }", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(String string) {\n\t\tthis.email = string;\n\t}", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public void setEmailAddress(java.lang.String newEmailAddress);", "public String getEmailAddress() {\n return email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public void setEmailAddressOfCustomer(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, EMAILADDRESSOFCUSTOMER,value);\n\t}", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }" ]
[ "0.75865126", "0.7319219", "0.73060435", "0.72489023", "0.72088784", "0.70663166", "0.706123", "0.7056947", "0.7049745", "0.70462114", "0.70462114", "0.7021887", "0.6992631", "0.6988914", "0.6986462", "0.696047", "0.6956438", "0.6949662", "0.6935456", "0.6912683", "0.6908316", "0.6899956", "0.6898318", "0.6876735", "0.6876735", "0.6876735", "0.6876735", "0.6876735", "0.6876735", "0.68750113", "0.6864223", "0.6864223", "0.6851061", "0.6850743", "0.68464184", "0.68448144", "0.6835649", "0.68021506", "0.67983496", "0.67983496", "0.67983496", "0.67983496", "0.67983496", "0.67983496", "0.67983496", "0.67983496", "0.67983496", "0.67983496", "0.67983496", "0.6793845", "0.6773897", "0.6771695", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.67645043", "0.6759775", "0.6759775", "0.6759775", "0.6759775", "0.675931", "0.675931", "0.6750554", "0.6746962", "0.6746277", "0.6746277", "0.67439073", "0.67436546", "0.67436546", "0.67436546", "0.67436546", "0.67436546", "0.67436546", "0.67436546", "0.67436546", "0.67436546", "0.67436546", "0.67436546" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.email attribute.
public void setEmail(final String value) { setEmail( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setEmail(java.lang.String email) {\n _entityCustomer.setEmail(email);\n }", "public void setEmail_address(String email_address);", "@Override\n public void setEmail(String email) {\n\n }", "public void setEmail(Email email) { this.email = email; }", "public void setEmail(String email)\r\n/* 36: */ {\r\n/* 37:50 */ this.email = email;\r\n/* 38: */ }", "public String getCustomerEmail() {\n\t\treturn customerEmail;\n\t}", "public void setEmail(String email);", "public void setEmail(String aEmail) {\n email = aEmail;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n email_ = value;\n onChanged();\n return this;\n }", "void setEmail(String email);", "void setEmail(String email);", "public void setEmail(final String e)\n {\n this.email = e;\n }", "public void setEmail(String email){\r\n this.email = email;\r\n }", "public void setEmail(String email) { this.email = email; }", "public void setEmail( String email )\r\n {\r\n this.email = email;\r\n }", "public String getCustomerEmailAddress() { return customerEmailAddress; }", "public void setEmailAddress(String emailAddress);", "public void set_email(String Email)\n {\n email =Email;\n }", "public void setEmailAddress(String email_address){\n this.email_address = email_address;\n }", "public void setEmailAddress(String email) {\n this.email = email;\n }", "public void setEmail(String email)\n {\n this.email = email;\n }", "public void setEmailAddressOfCustomer(final String value)\n\t{\n\t\tsetEmailAddressOfCustomer( getSession().getSessionContext(), value );\n\t}", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "public void setEmail(String email) {\r\n this.email = email;\r\n }", "@ApiModelProperty(value = \"Email of the customer associated with this gift certificate.\")\n public String getEmail() {\n return email;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n email_ = value;\n onChanged();\n return this;\n }", "public Builder setEmail(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n email_ = value;\n onChanged();\n return this;\n }", "@Override\n public java.lang.String getEmail() {\n return _entityCustomer.getEmail();\n }", "@Override\n\tpublic void setEmail(String email) {\n\t\tsuper.setEmail(email);\n\t}", "public void setCustomerEmailAddress(String customerEmailAddress) {\n this.customerEmailAddress = customerEmailAddress;\n }", "public void setEmail(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(EMAIL_PROP.get(), value);\n }", "public void setEmail(String string) {\n\t\tthis.email = string;\n\t}", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmail() {\r\n return email;\r\n }", "public String getEmailAddress() {\r\n return email;\r\n }", "public void setEmailAddress(java.lang.String newEmailAddress);", "public String getEmailAddress() {\n return email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public void setEmail(String email) {\n this.email = email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail() {\n return this.email;\n }", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail(){\n\t\treturn email;\n\t}", "public String getEmail()\n {\n return emailAddress;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public void setEmailAddressOfCustomer(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, EMAILADDRESSOFCUSTOMER,value);\n\t}", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }", "public String getEmail() {\n return email;\n }" ]
[ "0.75853914", "0.7318001", "0.7304352", "0.72474664", "0.7207601", "0.706651", "0.7059824", "0.7055598", "0.70496315", "0.70448935", "0.70448935", "0.70202327", "0.6990982", "0.6987538", "0.6984872", "0.6960836", "0.6954914", "0.6947811", "0.6933672", "0.6910628", "0.69065136", "0.69007915", "0.68979675", "0.6874934", "0.6874934", "0.6874934", "0.6874934", "0.6874934", "0.6874934", "0.6873718", "0.6863863", "0.6863863", "0.6850738", "0.6850697", "0.68448865", "0.6844742", "0.68352824", "0.6801651", "0.6797451", "0.6797451", "0.6797451", "0.6797451", "0.6797451", "0.6797451", "0.6797451", "0.6797451", "0.6797451", "0.6797451", "0.6797451", "0.6792747", "0.6772234", "0.6770637", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6762654", "0.6758856", "0.6758856", "0.6758856", "0.6758856", "0.6758377", "0.6758377", "0.67496383", "0.67460585", "0.6745456", "0.6745456", "0.67447233", "0.67428166", "0.67428166", "0.67428166", "0.67428166", "0.67428166", "0.67428166", "0.67428166", "0.67428166", "0.67428166", "0.67428166", "0.67428166" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.fax attribute.
public String getFax(final SessionContext ctx) { return (String)getProperty( ctx, FAX); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFax() {\n return fax;\n }", "public java.lang.String getFax() {\n return fax;\n }", "public String getFaxNo() {\n return faxNo;\n }", "public java.lang.String getFax () {\n\t\treturn fax;\n\t}", "public String getfaxNum() {\n\t\treturn _faxNum;\n\t}", "public CustomerAddressQuery fax() {\n startField(\"fax\");\n\n return this;\n }", "public java.lang.String getShipAgencyFax() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyFax();\n\t}", "public void setFaxNo(String faxNo) {\n this.faxNo = faxNo;\n }", "public String getFax()\n\t{\n\t\treturn getFax( getSession().getSessionContext() );\n\t}", "public java.lang.String getShipOwnerFax() {\n\t\treturn _tempNoTiceShipMessage.getShipOwnerFax();\n\t}", "public String getSupFax() {\n return supFax;\n }", "@Override\n public String toString() {\n return \"\\n TelephoneFax {\"\n + (fax != null ? \" fax [\" + fax + \"]\" : \"\")\n + (maxCls != null ? \" maxCls [\" + maxCls + \"]\" : \"\")\n + (number != null ? \" number [\" + number + \"]\" : \"\")\n + (preferred != null ? \" preferred [\" + preferred + \"]\" : \"\")\n + (type != null ? \" type [\" + type + \"]\" : \"\")\n + \"}\";\n }", "public String getSMemFax() {\n return sMemFax;\n }", "public void setFax(java.lang.String fax) {\n this.fax = fax;\n }", "public void setfaxNum(String faxNum) {\n\t\t_faxNum = faxNum;\n\t}", "public void setFax (java.lang.String fax) {\n\t\tthis.fax = fax;\n\t}", "public void setFax(String fax) {\n this.fax = fax == null ? null : fax.trim();\n }", "public String getSLinkFax() {\n return sLinkFax;\n }", "@XmlElement\n public String getFixPhone() {\n return fixPhone;\n }", "public String getBizAddr() {\n return bizAddr;\n }", "@JsonGetter(\"faxUriId\")\r\n public int getFaxUriId ( ) { \r\n return this.faxUriId;\r\n }", "public String getFlightNo() {\n\t\treturn flightNo;\n\t}", "@Override\n\tpublic String getTelFeeAccount() {\n\t\tTelFee_Account = Util.getMaiYuanConfig(\"TelFee_Account\");\n\t\treturn TelFee_Account;\n\t}", "public Number getFederalTaxPayerId() {\n return (Number)getAttributeInternal(FEDERALTAXPAYERID);\n }", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "@Override\n public java.lang.String getRfc() {\n return _entityCustomer.getRfc();\n }", "public String getFlightCode() {\n return flightCode;\n }", "public String getFeeCode() {\r\n return feeCode;\r\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "public String getCustomerAddr() {\n return customerAddr;\n }", "public String getFixedPhone() {\n return fixedPhone;\n }", "public BigDecimal getFchargerebate() {\n return fchargerebate;\n }", "public String getAccountZipCode() {\n return accountZipCode;\n }", "public String getSrcFax() {\r\n return (String) getAttributeInternal(SRCFAX);\r\n }", "public int getFlightNumber() { // get the flight number\n\t\treturn flightNumber;\n\t}", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight getFlightdetails() {\n if (flightdetailsBuilder_ == null) {\n return flightdetails_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.getDefaultInstance() : flightdetails_;\n } else {\n return flightdetailsBuilder_.getMessage();\n }\n }", "public int getFlightNumber() {\n\t\treturn flightNumber;\n\t}", "public String getTelephoneNumber() {\n\t\treturn telephoneNumber;\n\t}", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight getFlightdetails() {\n return flightdetails_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.getDefaultInstance() : flightdetails_;\n }", "public String getCustomerAddress() {\n return customerAddress;\n }", "public java.lang.String getTAX_CODE() {\r\n return TAX_CODE;\r\n }", "public String getFddbr() {\r\n return fddbr;\r\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder getFlightdetailsOrBuilder() {\n return getFlightdetails();\n }", "public String getUserTelephone() {\n return userTelephone;\n }", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public String getCfdaNumber() {\n return cfdaNumber;\n }", "public String getCustomerPhone() {\n return customerPhone;\n }", "public String getBENEF_ADDRESS() {\r\n return BENEF_ADDRESS;\r\n }", "public String getFee() {\n\t\treturn fee;\n\t}", "public Flight getFlight() {\r\n\t\treturn flight;\r\n\t}", "public void setFax(final String value)\n\t{\n\t\tsetFax( getSession().getSessionContext(), value );\n\t}", "public Character getBackFeeFlag() {\n return backFeeFlag;\n }", "@JsonIgnore public Identifier getFlightNumber() {\n return (Identifier) getValue(\"flightNumber\");\n }", "public com.google.protobuf.ByteString\n getTelefonBytes() {\n java.lang.Object ref = telefon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n telefon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBuyerContactPhone() {\n return buyerContactPhone;\n }", "public String getTelephoneNumber(){\n return telephoneNumber;\n }", "public java.lang.String getShipAgencyPhone() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyPhone();\n\t}", "public com.google.protobuf.ByteString\n getTelefonBytes() {\n java.lang.Object ref = telefon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n telefon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getFb() {\n return fb;\n }", "public BigDecimal getFee() {\n return fee;\n }", "public Number getFee() {\n return (Number) getAttributeInternal(FEE);\n }", "public String getFlight() {\n\t\treturn flight;\n\t}", "private com.google.protobuf.SingleFieldBuilder<\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.Builder, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder> \n getFlightdetailsFieldBuilder() {\n if (flightdetailsBuilder_ == null) {\n flightdetailsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.Builder, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder>(\n getFlightdetails(),\n getParentForChildren(),\n isClean());\n flightdetails_ = null;\n }\n return flightdetailsBuilder_;\n }", "public int getBaseFareAmount() {\n return baseFareAmount;\n }", "public String getFbzt() {\n return fbzt;\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder getFlightdetailsOrBuilder() {\n if (flightdetailsBuilder_ != null) {\n return flightdetailsBuilder_.getMessageOrBuilder();\n } else {\n return flightdetails_ == null ?\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.getDefaultInstance() : flightdetails_;\n }\n }", "public BigDecimal getFee() {\r\n return fee;\r\n }", "public void setShipAgencyFax(java.lang.String shipAgencyFax) {\n\t\t_tempNoTiceShipMessage.setShipAgencyFax(shipAgencyFax);\n\t}", "public String carrierAccountNumber() {\n return this.carrierAccountNumber;\n }", "public Integer getFraudOffset() {\n return fraudOffset;\n }", "public BigDecimal getFee() {\n return fee;\n }", "public String getCustomerPostalCode() {\n return customerPostalCode;\n }", "public final String getFci() {\n return String.valueOf(fci);\n }", "java.lang.String getFlightCarrier();", "public String getRfc() {\n\t\treturn this.rfc;\n\t}", "public int get_flight() {\r\n return this.flight_nr;\r\n }", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public String getBizno() {\n return bizno;\n }", "public Float getDeliveryfee() {\n return deliveryfee;\n }", "public String getTelNo() {\n return telNo;\n }", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "public String getTelefone() {\n\t\treturn telefone;\n\t}", "public BigDecimal getFagentgathrate() {\n return fagentgathrate;\n }", "public double getFee() {\n\t\treturn fee;\n\t}", "public String getAttractionPhone() {\n return mAttractionPhone;\n }", "public String getTelefone() {\n return telefone;\n }", "public String getTelNo() {\n return telNo;\n }", "public String getPurchaseFileLinkeAddress() {\n return purchaseFileLinkeAddress;\n }", "public com.google.protobuf.ByteString\n getFlightCarrierBytes() {\n java.lang.Object ref = flightCarrier_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightCarrier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public boolean isAccountsFringesBnftIndicator() {\n return accountsFringesBnftIndicator;\n }", "public Address getBillingAddress() {\n return billingAddress;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> \n getZipCodeFieldBuilder() {\n if (zipCodeBuilder_ == null) {\n zipCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(\n getZipCode(),\n getParentForChildren(),\n isClean());\n zipCode_ = null;\n }\n return zipCodeBuilder_;\n }", "public com.google.protobuf.ByteString\n getFlightCarrierBytes() {\n java.lang.Object ref = flightCarrier_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightCarrier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getCfNo() {\n\t\treturn cfNo;\n\t}" ]
[ "0.79978526", "0.78131956", "0.7809179", "0.76101494", "0.75963545", "0.7293659", "0.7144283", "0.6913628", "0.6647527", "0.66323537", "0.6567737", "0.646036", "0.64439267", "0.63784665", "0.6294358", "0.6281927", "0.621741", "0.60046047", "0.59104335", "0.5828162", "0.57941395", "0.5764295", "0.5758322", "0.5749225", "0.5694372", "0.5650509", "0.5650509", "0.55945385", "0.5589019", "0.5565709", "0.5557275", "0.55561817", "0.5546082", "0.55399424", "0.55066943", "0.5476649", "0.54609096", "0.54590666", "0.54571253", "0.5452683", "0.5443567", "0.54388595", "0.5431911", "0.5425997", "0.5425314", "0.5402221", "0.5397961", "0.53859115", "0.53855634", "0.5379146", "0.536896", "0.5368549", "0.5367187", "0.5358424", "0.535242", "0.5351191", "0.5349052", "0.53411615", "0.53366727", "0.53292644", "0.53258157", "0.5325581", "0.5311103", "0.53059006", "0.53019994", "0.5299389", "0.52937305", "0.5292255", "0.52827346", "0.52802634", "0.52704924", "0.526809", "0.52374226", "0.5234961", "0.5228522", "0.52257496", "0.5216095", "0.5212824", "0.5212015", "0.5210981", "0.5210135", "0.5207657", "0.5202482", "0.5197555", "0.5186379", "0.5184929", "0.51832575", "0.51807916", "0.5179678", "0.51753026", "0.5174551", "0.5164112", "0.51601535", "0.51593906", "0.5156411", "0.5147104", "0.5147104", "0.5147104", "0.51452005", "0.5133754" ]
0.65134525
11
Generated method Getter of the BraintreeCustomerDetails.fax attribute.
public String getFax() { return getFax( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFax() {\n return fax;\n }", "public java.lang.String getFax() {\n return fax;\n }", "public String getFaxNo() {\n return faxNo;\n }", "public java.lang.String getFax () {\n\t\treturn fax;\n\t}", "public String getfaxNum() {\n\t\treturn _faxNum;\n\t}", "public CustomerAddressQuery fax() {\n startField(\"fax\");\n\n return this;\n }", "public java.lang.String getShipAgencyFax() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyFax();\n\t}", "public void setFaxNo(String faxNo) {\n this.faxNo = faxNo;\n }", "public java.lang.String getShipOwnerFax() {\n\t\treturn _tempNoTiceShipMessage.getShipOwnerFax();\n\t}", "public String getSupFax() {\n return supFax;\n }", "public String getFax(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, FAX);\n\t}", "@Override\n public String toString() {\n return \"\\n TelephoneFax {\"\n + (fax != null ? \" fax [\" + fax + \"]\" : \"\")\n + (maxCls != null ? \" maxCls [\" + maxCls + \"]\" : \"\")\n + (number != null ? \" number [\" + number + \"]\" : \"\")\n + (preferred != null ? \" preferred [\" + preferred + \"]\" : \"\")\n + (type != null ? \" type [\" + type + \"]\" : \"\")\n + \"}\";\n }", "public String getSMemFax() {\n return sMemFax;\n }", "public void setFax(java.lang.String fax) {\n this.fax = fax;\n }", "public void setfaxNum(String faxNum) {\n\t\t_faxNum = faxNum;\n\t}", "public void setFax (java.lang.String fax) {\n\t\tthis.fax = fax;\n\t}", "public void setFax(String fax) {\n this.fax = fax == null ? null : fax.trim();\n }", "public String getSLinkFax() {\n return sLinkFax;\n }", "@XmlElement\n public String getFixPhone() {\n return fixPhone;\n }", "public String getBizAddr() {\n return bizAddr;\n }", "@JsonGetter(\"faxUriId\")\r\n public int getFaxUriId ( ) { \r\n return this.faxUriId;\r\n }", "public String getFlightNo() {\n\t\treturn flightNo;\n\t}", "@Override\n\tpublic String getTelFeeAccount() {\n\t\tTelFee_Account = Util.getMaiYuanConfig(\"TelFee_Account\");\n\t\treturn TelFee_Account;\n\t}", "public Number getFederalTaxPayerId() {\n return (Number)getAttributeInternal(FEDERALTAXPAYERID);\n }", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "@Override\n public java.lang.String getRfc() {\n return _entityCustomer.getRfc();\n }", "public String getFlightCode() {\n return flightCode;\n }", "public String getFeeCode() {\r\n return feeCode;\r\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "public String getCustomerAddr() {\n return customerAddr;\n }", "public String getFixedPhone() {\n return fixedPhone;\n }", "public BigDecimal getFchargerebate() {\n return fchargerebate;\n }", "public String getAccountZipCode() {\n return accountZipCode;\n }", "public String getSrcFax() {\r\n return (String) getAttributeInternal(SRCFAX);\r\n }", "public int getFlightNumber() { // get the flight number\n\t\treturn flightNumber;\n\t}", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight getFlightdetails() {\n if (flightdetailsBuilder_ == null) {\n return flightdetails_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.getDefaultInstance() : flightdetails_;\n } else {\n return flightdetailsBuilder_.getMessage();\n }\n }", "public int getFlightNumber() {\n\t\treturn flightNumber;\n\t}", "public String getTelephoneNumber() {\n\t\treturn telephoneNumber;\n\t}", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight getFlightdetails() {\n return flightdetails_ == null ? com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.getDefaultInstance() : flightdetails_;\n }", "public String getCustomerAddress() {\n return customerAddress;\n }", "public java.lang.String getTAX_CODE() {\r\n return TAX_CODE;\r\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder getFlightdetailsOrBuilder() {\n return getFlightdetails();\n }", "public String getFddbr() {\r\n return fddbr;\r\n }", "public String getUserTelephone() {\n return userTelephone;\n }", "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public String getCfdaNumber() {\n return cfdaNumber;\n }", "public String getCustomerPhone() {\n return customerPhone;\n }", "public String getBENEF_ADDRESS() {\r\n return BENEF_ADDRESS;\r\n }", "public String getFee() {\n\t\treturn fee;\n\t}", "public void setFax(final String value)\n\t{\n\t\tsetFax( getSession().getSessionContext(), value );\n\t}", "public Flight getFlight() {\r\n\t\treturn flight;\r\n\t}", "public Character getBackFeeFlag() {\n return backFeeFlag;\n }", "@JsonIgnore public Identifier getFlightNumber() {\n return (Identifier) getValue(\"flightNumber\");\n }", "public com.google.protobuf.ByteString\n getTelefonBytes() {\n java.lang.Object ref = telefon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n telefon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getBuyerContactPhone() {\n return buyerContactPhone;\n }", "public String getTelephoneNumber(){\n return telephoneNumber;\n }", "public java.lang.String getShipAgencyPhone() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyPhone();\n\t}", "public com.google.protobuf.ByteString\n getTelefonBytes() {\n java.lang.Object ref = telefon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n telefon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public BigDecimal getFee() {\n return fee;\n }", "public String getFb() {\n return fb;\n }", "public Number getFee() {\n return (Number) getAttributeInternal(FEE);\n }", "public String getFlight() {\n\t\treturn flight;\n\t}", "private com.google.protobuf.SingleFieldBuilder<\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.Builder, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder> \n getFlightdetailsFieldBuilder() {\n if (flightdetailsBuilder_ == null) {\n flightdetailsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.Builder, com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder>(\n getFlightdetails(),\n getParentForChildren(),\n isClean());\n flightdetails_ = null;\n }\n return flightdetailsBuilder_;\n }", "public int getBaseFareAmount() {\n return baseFareAmount;\n }", "public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightOrBuilder getFlightdetailsOrBuilder() {\n if (flightdetailsBuilder_ != null) {\n return flightdetailsBuilder_.getMessageOrBuilder();\n } else {\n return flightdetails_ == null ?\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.getDefaultInstance() : flightdetails_;\n }\n }", "public String getFbzt() {\n return fbzt;\n }", "public BigDecimal getFee() {\r\n return fee;\r\n }", "public void setShipAgencyFax(java.lang.String shipAgencyFax) {\n\t\t_tempNoTiceShipMessage.setShipAgencyFax(shipAgencyFax);\n\t}", "public String carrierAccountNumber() {\n return this.carrierAccountNumber;\n }", "public Integer getFraudOffset() {\n return fraudOffset;\n }", "public BigDecimal getFee() {\n return fee;\n }", "public String getCustomerPostalCode() {\n return customerPostalCode;\n }", "public final String getFci() {\n return String.valueOf(fci);\n }", "java.lang.String getFlightCarrier();", "public String getRfc() {\n\t\treturn this.rfc;\n\t}", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public int get_flight() {\r\n return this.flight_nr;\r\n }", "public String getBizno() {\n return bizno;\n }", "public Float getDeliveryfee() {\n return deliveryfee;\n }", "public String getTelNo() {\n return telNo;\n }", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}", "public String getTelefone() {\n\t\treturn telefone;\n\t}", "public BigDecimal getFagentgathrate() {\n return fagentgathrate;\n }", "public double getFee() {\n\t\treturn fee;\n\t}", "public String getAttractionPhone() {\n return mAttractionPhone;\n }", "public String getTelefone() {\n return telefone;\n }", "public String getTelNo() {\n return telNo;\n }", "public String getPurchaseFileLinkeAddress() {\n return purchaseFileLinkeAddress;\n }", "public com.google.protobuf.ByteString\n getFlightCarrierBytes() {\n java.lang.Object ref = flightCarrier_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightCarrier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public boolean isAccountsFringesBnftIndicator() {\n return accountsFringesBnftIndicator;\n }", "public Address getBillingAddress() {\n return billingAddress;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> \n getZipCodeFieldBuilder() {\n if (zipCodeBuilder_ == null) {\n zipCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>(\n getZipCode(),\n getParentForChildren(),\n isClean());\n zipCode_ = null;\n }\n return zipCodeBuilder_;\n }", "public com.google.protobuf.ByteString\n getFlightCarrierBytes() {\n java.lang.Object ref = flightCarrier_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n flightCarrier_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public String getCfNo() {\n\t\treturn cfNo;\n\t}" ]
[ "0.79969466", "0.78121066", "0.7807955", "0.7608968", "0.75956225", "0.72935927", "0.71430314", "0.69127995", "0.6629888", "0.6566282", "0.65118253", "0.6459322", "0.64422816", "0.63776517", "0.6293802", "0.6280972", "0.6216664", "0.6003852", "0.59097505", "0.5827539", "0.57910407", "0.5762716", "0.57567316", "0.5746953", "0.569388", "0.5649787", "0.5649787", "0.559154", "0.5586908", "0.556362", "0.5556712", "0.5554387", "0.5545677", "0.5538788", "0.55055255", "0.54737467", "0.5459752", "0.54579765", "0.5456001", "0.5452386", "0.5442951", "0.5437616", "0.5429842", "0.5424531", "0.5423505", "0.5400939", "0.5396545", "0.53841966", "0.53839463", "0.53780407", "0.53674054", "0.536718", "0.5366889", "0.5357134", "0.5350499", "0.53490585", "0.53484404", "0.534015", "0.53356135", "0.5327152", "0.5324619", "0.53237116", "0.5310331", "0.53039306", "0.53011715", "0.52980345", "0.5291865", "0.529026", "0.5281735", "0.5279316", "0.5270028", "0.5267215", "0.5236561", "0.5232111", "0.52257967", "0.5224186", "0.5214637", "0.52107835", "0.52107406", "0.520897", "0.5207752", "0.52059054", "0.52012014", "0.5196637", "0.5183968", "0.518348", "0.5182654", "0.5179682", "0.5177963", "0.51749873", "0.517344", "0.51641464", "0.5160564", "0.51576847", "0.5155198", "0.5145721", "0.5145721", "0.5145721", "0.51427096", "0.5131672" ]
0.66459125
8
Generated method Setter of the BraintreeCustomerDetails.fax attribute.
public void setFax(final SessionContext ctx, final String value) { setProperty(ctx, FAX,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFaxNo(String faxNo) {\n this.faxNo = faxNo;\n }", "public void setFax(java.lang.String fax) {\n this.fax = fax;\n }", "public void setfaxNum(String faxNum) {\n\t\t_faxNum = faxNum;\n\t}", "public void setFax (java.lang.String fax) {\n\t\tthis.fax = fax;\n\t}", "public void setFax(String fax) {\n this.fax = fax == null ? null : fax.trim();\n }", "public String getFax() {\n return fax;\n }", "public String getFaxNo() {\n return faxNo;\n }", "public String getfaxNum() {\n\t\treturn _faxNum;\n\t}", "public CustomerAddressQuery fax() {\n startField(\"fax\");\n\n return this;\n }", "public java.lang.String getFax() {\n return fax;\n }", "public void setFax(final String value)\n\t{\n\t\tsetFax( getSession().getSessionContext(), value );\n\t}", "public java.lang.String getFax () {\n\t\treturn fax;\n\t}", "public java.lang.String getShipAgencyFax() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyFax();\n\t}", "public void setShipAgencyFax(java.lang.String shipAgencyFax) {\n\t\t_tempNoTiceShipMessage.setShipAgencyFax(shipAgencyFax);\n\t}", "public void setFiscalAddress(\n @Nullable\n final String fiscalAddress) {\n rememberChangedField(\"FiscalAddress\", this.fiscalAddress);\n this.fiscalAddress = fiscalAddress;\n }", "public String getSupFax() {\n return supFax;\n }", "@Override\n public String toString() {\n return \"\\n TelephoneFax {\"\n + (fax != null ? \" fax [\" + fax + \"]\" : \"\")\n + (maxCls != null ? \" maxCls [\" + maxCls + \"]\" : \"\")\n + (number != null ? \" number [\" + number + \"]\" : \"\")\n + (preferred != null ? \" preferred [\" + preferred + \"]\" : \"\")\n + (type != null ? \" type [\" + type + \"]\" : \"\")\n + \"}\";\n }", "@Override\n public void setRfc(java.lang.String rfc) {\n _entityCustomer.setRfc(rfc);\n }", "public void setShipOwnerFax(java.lang.String shipOwnerFax) {\n\t\t_tempNoTiceShipMessage.setShipOwnerFax(shipOwnerFax);\n\t}", "public java.lang.String getShipOwnerFax() {\n\t\treturn _tempNoTiceShipMessage.getShipOwnerFax();\n\t}", "@JsonSetter(\"faxUriId\")\r\n public void setFaxUriId (int value) { \r\n this.faxUriId = value;\r\n }", "public void setFederalTaxPayerId(Number value) {\n setAttributeInternal(FEDERALTAXPAYERID, value);\n }", "public Builder setFlightCarrierBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n flightCarrier_ = value;\n onChanged();\n return this;\n }", "@XmlElement\n public String getFixPhone() {\n return fixPhone;\n }", "public String getSMemFax() {\n return sMemFax;\n }", "public void setSMemFax(String sMemFax) {\n this.sMemFax = sMemFax;\n }", "public void setBaseFareAmount(int value) {\n this.baseFareAmount = value;\n }", "public Builder setFlightCarrierCodeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n flightCarrierCode_ = value;\n onChanged();\n return this;\n }", "public String getFax()\n\t{\n\t\treturn getFax( getSession().getSessionContext() );\n\t}", "public Builder setFlightCarrier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n flightCarrier_ = value;\n onChanged();\n return this;\n }", "public void setSupFax(String supFax) {\n this.supFax = supFax == null ? null : supFax.trim();\n }", "public void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);", "public void setFlightNo(String flightNo) {\n\t\tthis.flightNo = flightNo;\n\t}", "public void setSrcFax(String value) {\r\n setAttributeInternal(SRCFAX, value);\r\n }", "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "public String getFax(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, FAX);\n\t}", "public void setBizAddr(String bizAddr) {\n this.bizAddr = bizAddr;\n }", "public Builder setFlightCarrierCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n flightCarrierCode_ = value;\n onChanged();\n return this;\n }", "public Builder setFlightdetails(com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight value) {\n if (flightdetailsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n flightdetails_ = value;\n onChanged();\n } else {\n flightdetailsBuilder_.setMessage(value);\n }\n\n return this;\n }", "public String getFlightNo() {\n\t\treturn flightNo;\n\t}", "public void setFlightNumber(int flightNumber) { // set the flight number\n\t\tthis.flightNumber = flightNumber;\n\t}", "@JsonGetter(\"faxUriId\")\r\n public int getFaxUriId ( ) { \r\n return this.faxUriId;\r\n }", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "public String getBizAddr() {\n return bizAddr;\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public abstract void setCustomerAddress(Address address);", "public Builder setTelefonBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n telefon_ = value;\n onChanged();\n return this;\n }", "public void setFddbr(String fddbr) {\r\n this.fddbr = fddbr;\r\n }", "public void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);", "public String getSLinkFax() {\n return sLinkFax;\n }", "public void setTelefone(String telefone) {\n String oldTelefone = this.telefone;\n this.telefone = telefone;\n propertyChangeSupport.firePropertyChange(PROP_TELEFONE, oldTelefone, telefone);\n }", "public void setTelNo(String telNo) {\n this.telNo = telNo;\n }", "@Test\n public void test_setTelephone() {\n String value = \"new_value\";\n instance.setTelephone(value);\n\n assertEquals(\"'setTelephone' should be correct.\",\n value, TestsHelper.getField(instance, \"telephone\"));\n }", "public void setTelephoneNumber(String newNumber)\r\n\t{\r\n\t\ttelephoneNumber = newNumber;\r\n\t}", "public void setTAX_CODE(java.lang.String TAX_CODE) {\r\n this.TAX_CODE = TAX_CODE;\r\n }", "public void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);", "public Number getFederalTaxPayerId() {\n return (Number)getAttributeInternal(FEDERALTAXPAYERID);\n }", "public String getFlightCode() {\n return flightCode;\n }", "@Test\n public void testClaimFedTaxNb() {\n new ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setFedTaxNb,\n RdaFissClaim::getFedTaxNumber,\n RdaFissClaim.Fields.fedTaxNumber,\n 10);\n }", "public void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);", "public void setTelNo(String telNo) {\n this.telNo = telNo;\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setIMPLEMENTFX(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.IMPLEMENT_FX = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "public void setTelefone(String telefone) {\n Consistencia.consisteNaoNuloNaoVazio(telefone, \"telefone\");\n\n this.telefone = telefone;\n }", "public Builder setTelefon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n telefon_ = value;\n onChanged();\n return this;\n }", "public void setBackFeeFlag(Character aBackFeeFlag) {\n backFeeFlag = aBackFeeFlag;\n }", "public String getFeeCode() {\r\n return feeCode;\r\n }", "public void setLBR_TaxBase (BigDecimal LBR_TaxBase);", "public void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);", "public void setTEL_NUMBER(java.lang.String value)\n {\n if ((__TEL_NUMBER == null) != (value == null) || (value != null && ! value.equals(__TEL_NUMBER)))\n {\n _isDirty = true;\n }\n __TEL_NUMBER = value;\n }", "public void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);", "public void setFee(Number value) {\n setAttributeInternal(FEE, value);\n }", "public void setTaxRate(BigDecimal taxRate) {\n this.taxRate = taxRate;\n }", "public void set(TelephoneNumberImpl telephoneNumber) throws JAXRException, JSONException {\r\n\r\n\t\tif (telephoneNumber == null) {\r\n\t\t\tsetDefaultNumber();\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t/*\r\n\t\t\t * Country code\r\n\t\t\t */\r\n\t\t\tString countryCode = telephoneNumber.getCountryCode();\r\n\t\t\tcountryCode = (countryCode == null) ? \"\" : countryCode;\r\n\r\n\t\t\tput(JaxrConstants.RIM_COUNTRY_CODE, countryCode);\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Area code\r\n\t\t\t */\r\n\t\t\tString areaCode = telephoneNumber.getAreaCode();\r\n\t\t\tareaCode = (areaCode == null) ? \"\" : areaCode;\r\n\r\n\t\t\tput(JaxrConstants.RIM_AREA_CODE, areaCode);\r\n\t\r\n\t\t\t/*\r\n\t\t\t * Phone number\r\n\t\t\t */\r\n\t\t\tString phoneNumber = telephoneNumber.getNumber();\r\n\t\t\tphoneNumber = (phoneNumber == null) ? \"\" : phoneNumber;\r\n\r\n\t\t\tput(JaxrConstants.RIM_PHONE_NUMBER, phoneNumber);\r\n\t\r\n\t\t\tString extension = telephoneNumber.getExtension();\r\n\t\t\textension = (extension == null) ? \"\" : extension;\r\n\r\n\t\t\tput(JaxrConstants.RIM_PHONE_EXTENSION, extension);\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public int getFlightNumber() {\n\t\treturn flightNumber;\n\t}", "public void setTaxAmount(double _taxAmount){\n\t\ttaxAmount = _taxAmount;\n\t}", "@Override\n\tpublic String getTelFeeAccount() {\n\t\tTelFee_Account = Util.getMaiYuanConfig(\"TelFee_Account\");\n\t\treturn TelFee_Account;\n\t}", "public void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);", "public void setTelNo(String telNo)\r\n\t{\r\n\t\tthis.telNo = telNo;\r\n\t}", "public Builder setFlightdetails(\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.Builder builderForValue) {\n if (flightdetailsBuilder_ == null) {\n flightdetails_ = builderForValue.build();\n onChanged();\n } else {\n flightdetailsBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void setFixPhone(String fixPhone) {\n this.fixPhone = fixPhone;\n }", "public void setFchargerebate(BigDecimal fchargerebate) {\n this.fchargerebate = fchargerebate;\n }", "public void setFixedPhone(String fixedPhone) {\n this.fixedPhone = fixedPhone;\n }", "public void setTelefono(String telefono) {\r\n\t\tif(telefono.length() == 9){\r\n\t\tthis.telefono = telefono;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Error telefono\");\r\n\t\t}\r\n\t}", "public void setAccountsFringesBnftIndicator(boolean accountsFringesBnftIndicator) {\n this.accountsFringesBnftIndicator = accountsFringesBnftIndicator;\n }", "public void setCfNo(String cfNo) {\n\t\tthis.cfNo = cfNo;\n\t}", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "public String getFixedPhone() {\n return fixedPhone;\n }", "public Builder setFBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n f_ = value;\n onChanged();\n return this;\n }", "public void setBillingAddressInCart(Address addr);", "public void setTaxAmount(MMDecimal taxAmount) {\r\n this.taxAmount = taxAmount;\r\n }", "public String getCustomerAddr() {\n return customerAddr;\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "public final void onChanged(com.iqoption.billing.f fVar) {\n if (fVar != null) {\n com.iqoption.billing.e Kp = fVar.Kp();\n if (Kp != null) {\n this.this$0.b(Kp);\n }\n }\n }", "void setTax(BigDecimal tax);", "public void setFagentgathrate(BigDecimal fagentgathrate) {\n this.fagentgathrate = fagentgathrate;\n }", "public void setWorkTelephone(String value) {\n setAttributeInternal(WORKTELEPHONE, value);\n }", "public void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);", "public void setTelefono(String telefono) {\n\t\tthis.telefono.set(telefono);\n\t}" ]
[ "0.7662615", "0.7331752", "0.7260397", "0.7241038", "0.7126803", "0.7051305", "0.7018059", "0.6951483", "0.6945094", "0.6676774", "0.65396386", "0.64679056", "0.60265416", "0.5943186", "0.58304536", "0.57623345", "0.57460105", "0.55543584", "0.5549117", "0.5533144", "0.5532461", "0.54815704", "0.5371761", "0.53457457", "0.53408986", "0.53382665", "0.5266689", "0.5239854", "0.5220709", "0.5192428", "0.51792246", "0.51786095", "0.51646906", "0.51523244", "0.5147995", "0.51416326", "0.51379234", "0.51075137", "0.5019155", "0.50152653", "0.50086373", "0.49982184", "0.4995836", "0.49867362", "0.49844825", "0.49844825", "0.49767733", "0.4969889", "0.49423677", "0.49306113", "0.4907287", "0.4902269", "0.48795608", "0.48785996", "0.4865471", "0.48636776", "0.48624635", "0.48622087", "0.48603922", "0.48572809", "0.48538643", "0.4836801", "0.48315036", "0.48169407", "0.4807732", "0.4798496", "0.47868162", "0.47863203", "0.47847778", "0.47835684", "0.47811225", "0.47783887", "0.4776475", "0.47737873", "0.4770823", "0.4770599", "0.47695836", "0.4766768", "0.47577828", "0.47570568", "0.47557104", "0.47486186", "0.4741401", "0.47303477", "0.47235245", "0.47160363", "0.4707385", "0.4707385", "0.4702237", "0.46967733", "0.46922967", "0.4691171", "0.46877673", "0.4684896", "0.46755877", "0.46684387", "0.46672297", "0.4662952", "0.46573445", "0.4655542" ]
0.6284582
12
Generated method Setter of the BraintreeCustomerDetails.fax attribute.
public void setFax(final String value) { setFax( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFaxNo(String faxNo) {\n this.faxNo = faxNo;\n }", "public void setFax(java.lang.String fax) {\n this.fax = fax;\n }", "public void setfaxNum(String faxNum) {\n\t\t_faxNum = faxNum;\n\t}", "public void setFax (java.lang.String fax) {\n\t\tthis.fax = fax;\n\t}", "public void setFax(String fax) {\n this.fax = fax == null ? null : fax.trim();\n }", "public String getFax() {\n return fax;\n }", "public String getFaxNo() {\n return faxNo;\n }", "public String getfaxNum() {\n\t\treturn _faxNum;\n\t}", "public CustomerAddressQuery fax() {\n startField(\"fax\");\n\n return this;\n }", "public java.lang.String getFax() {\n return fax;\n }", "public java.lang.String getFax () {\n\t\treturn fax;\n\t}", "public void setFax(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, FAX,value);\n\t}", "public java.lang.String getShipAgencyFax() {\n\t\treturn _tempNoTiceShipMessage.getShipAgencyFax();\n\t}", "public void setShipAgencyFax(java.lang.String shipAgencyFax) {\n\t\t_tempNoTiceShipMessage.setShipAgencyFax(shipAgencyFax);\n\t}", "public void setFiscalAddress(\n @Nullable\n final String fiscalAddress) {\n rememberChangedField(\"FiscalAddress\", this.fiscalAddress);\n this.fiscalAddress = fiscalAddress;\n }", "public String getSupFax() {\n return supFax;\n }", "@Override\n public String toString() {\n return \"\\n TelephoneFax {\"\n + (fax != null ? \" fax [\" + fax + \"]\" : \"\")\n + (maxCls != null ? \" maxCls [\" + maxCls + \"]\" : \"\")\n + (number != null ? \" number [\" + number + \"]\" : \"\")\n + (preferred != null ? \" preferred [\" + preferred + \"]\" : \"\")\n + (type != null ? \" type [\" + type + \"]\" : \"\")\n + \"}\";\n }", "@Override\n public void setRfc(java.lang.String rfc) {\n _entityCustomer.setRfc(rfc);\n }", "public void setShipOwnerFax(java.lang.String shipOwnerFax) {\n\t\t_tempNoTiceShipMessage.setShipOwnerFax(shipOwnerFax);\n\t}", "public java.lang.String getShipOwnerFax() {\n\t\treturn _tempNoTiceShipMessage.getShipOwnerFax();\n\t}", "@JsonSetter(\"faxUriId\")\r\n public void setFaxUriId (int value) { \r\n this.faxUriId = value;\r\n }", "public void setFederalTaxPayerId(Number value) {\n setAttributeInternal(FEDERALTAXPAYERID, value);\n }", "public Builder setFlightCarrierBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n flightCarrier_ = value;\n onChanged();\n return this;\n }", "@XmlElement\n public String getFixPhone() {\n return fixPhone;\n }", "public String getSMemFax() {\n return sMemFax;\n }", "public void setSMemFax(String sMemFax) {\n this.sMemFax = sMemFax;\n }", "public void setBaseFareAmount(int value) {\n this.baseFareAmount = value;\n }", "public Builder setFlightCarrierCodeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n flightCarrierCode_ = value;\n onChanged();\n return this;\n }", "public String getFax()\n\t{\n\t\treturn getFax( getSession().getSessionContext() );\n\t}", "public Builder setFlightCarrier(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n flightCarrier_ = value;\n onChanged();\n return this;\n }", "public void setSupFax(String supFax) {\n this.supFax = supFax == null ? null : supFax.trim();\n }", "public void setLBR_TaxDeferralAmt (BigDecimal LBR_TaxDeferralAmt);", "public void setFlightNo(String flightNo) {\n\t\tthis.flightNo = flightNo;\n\t}", "public void setSrcFax(String value) {\r\n setAttributeInternal(SRCFAX, value);\r\n }", "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "public String getFax(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, FAX);\n\t}", "public void setBizAddr(String bizAddr) {\n this.bizAddr = bizAddr;\n }", "public Builder setFlightCarrierCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n flightCarrierCode_ = value;\n onChanged();\n return this;\n }", "public Builder setFlightdetails(com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight value) {\n if (flightdetailsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n flightdetails_ = value;\n onChanged();\n } else {\n flightdetailsBuilder_.setMessage(value);\n }\n\n return this;\n }", "public String getFlightNo() {\n\t\treturn flightNo;\n\t}", "public void setFlightNumber(int flightNumber) { // set the flight number\n\t\tthis.flightNumber = flightNumber;\n\t}", "public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }", "@JsonGetter(\"faxUriId\")\r\n public int getFaxUriId ( ) { \r\n return this.faxUriId;\r\n }", "public String getBizAddr() {\n return bizAddr;\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public abstract void setCustomerAddress(Address address);", "public Builder setTelefonBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n telefon_ = value;\n onChanged();\n return this;\n }", "public void setFddbr(String fddbr) {\r\n this.fddbr = fddbr;\r\n }", "public void setLBR_TaxDeferralRate (BigDecimal LBR_TaxDeferralRate);", "public String getSLinkFax() {\n return sLinkFax;\n }", "public void setTelefone(String telefone) {\n String oldTelefone = this.telefone;\n this.telefone = telefone;\n propertyChangeSupport.firePropertyChange(PROP_TELEFONE, oldTelefone, telefone);\n }", "public void setTelNo(String telNo) {\n this.telNo = telNo;\n }", "@Test\n public void test_setTelephone() {\n String value = \"new_value\";\n instance.setTelephone(value);\n\n assertEquals(\"'setTelephone' should be correct.\",\n value, TestsHelper.getField(instance, \"telephone\"));\n }", "public void setTelephoneNumber(String newNumber)\r\n\t{\r\n\t\ttelephoneNumber = newNumber;\r\n\t}", "public void setTAX_CODE(java.lang.String TAX_CODE) {\r\n this.TAX_CODE = TAX_CODE;\r\n }", "public void setLBR_DIFAL_TaxBaseFCPUFDest (BigDecimal LBR_DIFAL_TaxBaseFCPUFDest);", "public String getFlightCode() {\n return flightCode;\n }", "public Number getFederalTaxPayerId() {\n return (Number)getAttributeInternal(FEDERALTAXPAYERID);\n }", "@Test\n public void testClaimFedTaxNb() {\n new ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setFedTaxNb,\n RdaFissClaim::getFedTaxNumber,\n RdaFissClaim.Fields.fedTaxNumber,\n 10);\n }", "public void setLBR_DIFAL_TaxAmtFCPUFDest (BigDecimal LBR_DIFAL_TaxAmtFCPUFDest);", "public void setTelNo(String telNo) {\n this.telNo = telNo;\n }", "public org.LNDCDC_NCS_NCSAR.NCSAR_BUSINESS_UNITS.apache.nifi.LNDCDC_NCS_NCSAR_NCSAR_BUSINESS_UNITS.Builder setIMPLEMENTFX(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.IMPLEMENT_FX = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "public void setTelefone(String telefone) {\n Consistencia.consisteNaoNuloNaoVazio(telefone, \"telefone\");\n\n this.telefone = telefone;\n }", "public Builder setTelefon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n telefon_ = value;\n onChanged();\n return this;\n }", "public void setBackFeeFlag(Character aBackFeeFlag) {\n backFeeFlag = aBackFeeFlag;\n }", "public String getFeeCode() {\r\n return feeCode;\r\n }", "public void setLBR_TaxBase (BigDecimal LBR_TaxBase);", "public void setLBR_TaxBaseAmt (BigDecimal LBR_TaxBaseAmt);", "public void setTEL_NUMBER(java.lang.String value)\n {\n if ((__TEL_NUMBER == null) != (value == null) || (value != null && ! value.equals(__TEL_NUMBER)))\n {\n _isDirty = true;\n }\n __TEL_NUMBER = value;\n }", "public void setLBR_DIFAL_TaxRateFCPUFDest (BigDecimal LBR_DIFAL_TaxRateFCPUFDest);", "public void setFee(Number value) {\n setAttributeInternal(FEE, value);\n }", "public void setTaxRate(BigDecimal taxRate) {\n this.taxRate = taxRate;\n }", "public int getFlightNumber() {\n\t\treturn flightNumber;\n\t}", "public void set(TelephoneNumberImpl telephoneNumber) throws JAXRException, JSONException {\r\n\r\n\t\tif (telephoneNumber == null) {\r\n\t\t\tsetDefaultNumber();\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t/*\r\n\t\t\t * Country code\r\n\t\t\t */\r\n\t\t\tString countryCode = telephoneNumber.getCountryCode();\r\n\t\t\tcountryCode = (countryCode == null) ? \"\" : countryCode;\r\n\r\n\t\t\tput(JaxrConstants.RIM_COUNTRY_CODE, countryCode);\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Area code\r\n\t\t\t */\r\n\t\t\tString areaCode = telephoneNumber.getAreaCode();\r\n\t\t\tareaCode = (areaCode == null) ? \"\" : areaCode;\r\n\r\n\t\t\tput(JaxrConstants.RIM_AREA_CODE, areaCode);\r\n\t\r\n\t\t\t/*\r\n\t\t\t * Phone number\r\n\t\t\t */\r\n\t\t\tString phoneNumber = telephoneNumber.getNumber();\r\n\t\t\tphoneNumber = (phoneNumber == null) ? \"\" : phoneNumber;\r\n\r\n\t\t\tput(JaxrConstants.RIM_PHONE_NUMBER, phoneNumber);\r\n\t\r\n\t\t\tString extension = telephoneNumber.getExtension();\r\n\t\t\textension = (extension == null) ? \"\" : extension;\r\n\r\n\t\t\tput(JaxrConstants.RIM_PHONE_EXTENSION, extension);\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public void setTaxAmount(double _taxAmount){\n\t\ttaxAmount = _taxAmount;\n\t}", "@Override\n\tpublic String getTelFeeAccount() {\n\t\tTelFee_Account = Util.getMaiYuanConfig(\"TelFee_Account\");\n\t\treturn TelFee_Account;\n\t}", "public void setLBR_ICMSST_TaxAmtUFSen (BigDecimal LBR_ICMSST_TaxAmtUFSen);", "public Builder setFlightdetails(\n com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flight.Builder builderForValue) {\n if (flightdetailsBuilder_ == null) {\n flightdetails_ = builderForValue.build();\n onChanged();\n } else {\n flightdetailsBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void setTelNo(String telNo)\r\n\t{\r\n\t\tthis.telNo = telNo;\r\n\t}", "public void setFixPhone(String fixPhone) {\n this.fixPhone = fixPhone;\n }", "public void setFchargerebate(BigDecimal fchargerebate) {\n this.fchargerebate = fchargerebate;\n }", "public void setFixedPhone(String fixedPhone) {\n this.fixedPhone = fixedPhone;\n }", "public void setTelefono(String telefono) {\r\n\t\tif(telefono.length() == 9){\r\n\t\tthis.telefono = telefono;\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Error telefono\");\r\n\t\t}\r\n\t}", "public void setAccountsFringesBnftIndicator(boolean accountsFringesBnftIndicator) {\n this.accountsFringesBnftIndicator = accountsFringesBnftIndicator;\n }", "public void setCfNo(String cfNo) {\n\t\tthis.cfNo = cfNo;\n\t}", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "public String getFixedPhone() {\n return fixedPhone;\n }", "public Builder setFBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n f_ = value;\n onChanged();\n return this;\n }", "public void setBillingAddressInCart(Address addr);", "public void setTaxAmount(MMDecimal taxAmount) {\r\n this.taxAmount = taxAmount;\r\n }", "public String getCustomerAddr() {\n return customerAddr;\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "public final void onChanged(com.iqoption.billing.f fVar) {\n if (fVar != null) {\n com.iqoption.billing.e Kp = fVar.Kp();\n if (Kp != null) {\n this.this$0.b(Kp);\n }\n }\n }", "public void setFagentgathrate(BigDecimal fagentgathrate) {\n this.fagentgathrate = fagentgathrate;\n }", "void setTax(BigDecimal tax);", "public void setWorkTelephone(String value) {\n setAttributeInternal(WORKTELEPHONE, value);\n }", "public void setLBR_TaxAmt (BigDecimal LBR_TaxAmt);", "public int getFlightNumber() { // get the flight number\n\t\treturn flightNumber;\n\t}" ]
[ "0.76617414", "0.73300517", "0.72590417", "0.7239076", "0.712543", "0.7049715", "0.7016876", "0.6949555", "0.69436187", "0.6674996", "0.64659554", "0.6283077", "0.6025731", "0.59432614", "0.5830865", "0.57612866", "0.5744176", "0.5554997", "0.5549164", "0.5532052", "0.55299926", "0.54811764", "0.53731596", "0.5345208", "0.5338638", "0.53358024", "0.52660024", "0.52415156", "0.5219174", "0.519211", "0.5178901", "0.5176794", "0.5166639", "0.51519036", "0.51469195", "0.513945", "0.51381433", "0.5107463", "0.50213075", "0.501642", "0.5009689", "0.49969035", "0.49953213", "0.4985946", "0.49833906", "0.49833906", "0.49767032", "0.49710608", "0.4942769", "0.49288008", "0.4905188", "0.49015433", "0.48785132", "0.48772871", "0.48648047", "0.48631114", "0.48616123", "0.48614883", "0.4861325", "0.48577195", "0.48533434", "0.48357683", "0.48313555", "0.48165867", "0.48068893", "0.47997704", "0.4787634", "0.4784477", "0.47828743", "0.47816974", "0.47805333", "0.47794086", "0.47766507", "0.47715628", "0.4771539", "0.4770179", "0.47681245", "0.47659996", "0.47592053", "0.47567368", "0.47558287", "0.47499323", "0.47423756", "0.4728792", "0.4723562", "0.4717029", "0.47055575", "0.47055575", "0.47014272", "0.46994615", "0.46925154", "0.46905923", "0.4687218", "0.46827975", "0.46774423", "0.46684107", "0.46682325", "0.46617293", "0.46560386", "0.4655623" ]
0.6537661
10
Generated method Getter of the BraintreeCustomerDetails.firstName attribute.
public String getFirstName(final SessionContext ctx) { return (String)getProperty( ctx, FIRSTNAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\r\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName(){\n\t\treturn this.firstName;\n\t}", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName.getModelObjectAsString();\r\n\t}", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n\t\treturn this.firstName;\n\t}", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\t\t\r\n\t}", "public String getFirstName() {\n\t\treturn firstName;\r\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName(){\n return(this.firstName);\n }", "public String getFirstName()\n\t{\n\t\treturn firstName;\n\t}", "public String getFirstName()\n\t{\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public java.lang.String getFirstName() {\r\n return firstName;\r\n }", "public java.lang.String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public final String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public java.lang.String getFirstName() {\n return firstName;\n }", "public java.lang.String getFirstName() {\n return firstName;\n }", "public String getFirstName()\n {\n return this.firstName;\n }", "public final String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName() {\n\t\treturn this.FirstName ;\n\t}", "public String getFirstName()\n {\n return firstName;\n }", "public String getFirstName()\n {\n return firstName;\n }", "public static String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n\t\treturn myFirstName;\n\t}", "public String getFirstName() {\n\t\tthis.setFirstName(this.firstName);\n\t\treturn this.firstName;\n\t}", "public String getFirstName() {\n return fName;\n }", "public String getFirstname() {\n return (String) get(\"firstname\");\n }", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "public String getFirstName() { return firstName; }", "public String getFirstName() \r\n {\r\n return firstName;\r\n }", "@XmlElement\n public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n\t\treturn getfirstName.getText();\n\t}", "@Column(length = 100, nullable = false)\n\tpublic String getFirstName() {\n\t\treturn firstName;\n\t}", "public String firstName() { return firstName; }", "public String getFirstName()\n {\n return firstName;\n }", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "public String getFirstName()\n\t{\n\t\t//local consants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the firstName.\n\t\treturn firstName;\n\n\t}", "public String getFirstName() {\r\n // Bouml preserved body begin 00040B02\r\n\t System.out.println(firstName);\r\n\t return firstName;\r\n // Bouml preserved body end 00040B02\r\n }", "public java.lang.String getFirstName() {\n\t\t\tjava.lang.Object ref = firstName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tfirstName_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getFirstNameBytes() {\n java.lang.Object ref = firstName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n firstName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getFirstNameBytes() {\n java.lang.Object ref = firstName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n firstName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getFirstNameBytes() {\n java.lang.Object ref = firstName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n firstName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getFirstName();" ]
[ "0.84194696", "0.81800824", "0.8170315", "0.8170315", "0.81695485", "0.8169518", "0.8160001", "0.81462145", "0.81391954", "0.8129008", "0.8129008", "0.8129008", "0.81215686", "0.811301", "0.8106196", "0.81058824", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.8091193", "0.80826765", "0.80826765", "0.8073734", "0.8067755", "0.80664486", "0.80578864", "0.8040464", "0.8040464", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.80388135", "0.8025394", "0.8025394", "0.80232304", "0.80232304", "0.80083144", "0.79998356", "0.79998356", "0.79998356", "0.79937947", "0.79937947", "0.79854226", "0.798087", "0.79800946", "0.7938804", "0.79357904", "0.79357904", "0.793322", "0.79225105", "0.79044837", "0.7872602", "0.782777", "0.7821197", "0.78106785", "0.7808068", "0.77959406", "0.77928567", "0.77899766", "0.77886736", "0.7787386", "0.77820146", "0.77820146", "0.77252734", "0.7692199", "0.7685007", "0.7679489", "0.7679489", "0.7674345", "0.7670784" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.firstName attribute.
public String getFirstName() { return getFirstName( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName(){\n\t\treturn this.firstName;\n\t}", "public String getFirstName() {\r\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName.getModelObjectAsString();\r\n\t}", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n\t\treturn this.firstName;\n\t}", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\t\t\r\n\t}", "public String getFirstName() {\n\t\treturn firstName;\r\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName(){\n return(this.firstName);\n }", "public String getFirstName()\n\t{\n\t\treturn firstName;\n\t}", "public String getFirstName()\n\t{\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n\t\treturn firstName;\n\t}", "public java.lang.String getFirstName() {\r\n return firstName;\r\n }", "public java.lang.String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public final String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public java.lang.String getFirstName() {\n return firstName;\n }", "public java.lang.String getFirstName() {\n return firstName;\n }", "public String getFirstName()\n {\n return this.firstName;\n }", "public final String getFirstName() {\n\t\treturn firstName;\n\t}", "public String getFirstName()\r\n {\r\n return firstName;\r\n }", "public String getFirstName() {\n\t\treturn this.FirstName ;\n\t}", "public String getFirstName()\n {\n return firstName;\n }", "public String getFirstName()\n {\n return firstName;\n }", "public static String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n\t\treturn myFirstName;\n\t}", "public String getFirstName() {\n\t\tthis.setFirstName(this.firstName);\n\t\treturn this.firstName;\n\t}", "public String getFirstName() {\n return fName;\n }", "public String getFirstname() {\n return (String) get(\"firstname\");\n }", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "public String getFirstName() { return firstName; }", "public String getFirstName() \r\n {\r\n return firstName;\r\n }", "@XmlElement\n public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n\t\treturn getfirstName.getText();\n\t}", "@Column(length = 100, nullable = false)\n\tpublic String getFirstName() {\n\t\treturn firstName;\n\t}", "public String firstName() { return firstName; }", "public String getFirstName()\n {\n return firstName;\n }", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getFirstName() {\n java.lang.Object ref = firstName_;\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 firstName_ = s;\n return s;\n }\n }", "public String getFirstName()\n\t{\n\t\t//local consants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Return the firstName.\n\t\treturn firstName;\n\n\t}", "public String getFirstName() {\r\n // Bouml preserved body begin 00040B02\r\n\t System.out.println(firstName);\r\n\t return firstName;\r\n // Bouml preserved body end 00040B02\r\n }", "public java.lang.String getFirstName() {\n\t\t\tjava.lang.Object ref = firstName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tfirstName_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getFirstNameBytes() {\n java.lang.Object ref = firstName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n firstName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getFirstNameBytes() {\n java.lang.Object ref = firstName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n firstName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getFirstNameBytes() {\n java.lang.Object ref = firstName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n firstName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getFirstName();" ]
[ "0.84188", "0.8177585", "0.81677115", "0.81677115", "0.8166961", "0.81667835", "0.81574976", "0.81437343", "0.81366515", "0.8126505", "0.8126505", "0.8126505", "0.8119151", "0.81104726", "0.8103438", "0.81033826", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80887187", "0.80799824", "0.80799824", "0.8071135", "0.8065109", "0.80641085", "0.805624", "0.8037901", "0.8037901", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.8036097", "0.80229056", "0.80229056", "0.80207455", "0.80207455", "0.800582", "0.7997402", "0.7997402", "0.7997402", "0.799129", "0.799129", "0.7982861", "0.7978358", "0.7977775", "0.7936407", "0.79334235", "0.79334235", "0.7931197", "0.7920032", "0.7902008", "0.78698206", "0.78257185", "0.78186405", "0.78082645", "0.78058994", "0.77947253", "0.7791082", "0.7787205", "0.77858543", "0.7785156", "0.7779382", "0.7779382", "0.7722937", "0.7690834", "0.7682479", "0.7676882", "0.7676882", "0.76718956", "0.7668332" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.firstName attribute.
public void setFirstName(final SessionContext ctx, final String value) { setProperty(ctx, FIRSTNAME,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setFirstName(java.lang.String firstName) {\n _entityCustomer.setFirstName(firstName);\n }", "public void setFirstName(String firstName){\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName)\r\n {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName( String first )\r\n {\r\n firstName = first;\r\n }", "public void setFirstName(String fName) {\n this.firstName = fName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String newFirstName) {\n this.firstName = newFirstName;\n }", "public final void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(final String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName)\n\t{\n\t\tthis.firstName = firstName;\n\t}", "public final void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer first name can't be null.\" );\r\n else \r\n\t this.firstName = name; \r\n }", "protected void setFirstName(String first)\n {\n firstName = first;\n }", "public void setFirstName(java.lang.String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(java.lang.String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String s) {\r\n\t\tfirstName = s;\t\r\n\t}", "public void setFirstName(String newFirstName) {\n _firstName = newFirstName;\n }", "public void setFirstName(String firstName) {\n\t\tif (firstName == null)\n\t\t\tfirstName = \"\";\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String value) {\n setAttributeInternal(FIRSTNAME, value);\n }", "public void setFirstName(String fname){ firstName.set(fname); }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public void setFirstName(String firstName) {\n String old = this.firstName;\n this.firstName = firstName;\n firePropertyChange(FIRST_NAME_PROPERTY, old, firstName);\n }", "public void setFirstName(String firstName) {\r\n this.firstName = doTrim(firstName);\r\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName == null ? null : firstName.trim();\n }", "public void setFirstName(String firstName) {\r\n this.firstName = firstName == null ? null : firstName.trim();\r\n }", "public com.politrons.avro.AvroPerson.Builder setFirstName(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.first_name = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public void setFirstName(String firstName) {\n\t\tthis.firstName = StringUtils.trimString( firstName );\n\t}", "public void setFirstName() {\n\n\t}", "public void setFirstname(String firstname) {\r\n\t\tthis.firstname = firstname;\r\n\t}", "public void setFirstName(String newFirstName)\r\n {\r\n firstName = newFirstName;\r\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void FirstName(String firstName) {\n\t\t\n\t}", "public void setFirstName(java.lang.CharSequence value) {\n this.first_name = value;\n }", "public void setFirstName(String firstName);", "public void setFirstName(String firstName) {\n if (firstName.length() >= 3 && firstName.length() <= 20)\n this.firstName = firstName;\n }", "public Builder setFirstName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tfirstName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void setFirstName(String firstName) {\n if(firstName.length()>0)\n this.firstName = firstName;\n else this.firstName =\"undefined\";\n }", "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "void firstName( String key, String value ){\n developer.firstName = value;\n }", "public void setFirstNameFieldName(final String value) {\n setProperty(FIRST_NAME_FIELD_NAME_KEY, value);\n }", "public void setFirstName(String fn)\n\t{\n\t\tfirstName = fn;\n\t}", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "void setFirstName(String firstName);", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName(){\n\t\treturn this.firstName;\n\t}", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n return _firstName;\n }", "@Override\n\tpublic void setFirstName(java.lang.String firstName) {\n\t\t_candidate.setFirstName(firstName);\n\t}", "public void setFirst_name(String first_name);", "public void setFirstName(String firstName) {\n this.firstName = Objects.requireNonNull(firstName,\n \"First name can't be null.\");\n }", "public String getFirstName()\n {\n return this.firstName;\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public void setFirst_name(String first_name) {\n this.first_name = first_name;\n }", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }" ]
[ "0.8100804", "0.7771859", "0.7768807", "0.7761785", "0.775118", "0.77205944", "0.7718575", "0.7711413", "0.7711413", "0.7711413", "0.7711413", "0.7711413", "0.7711413", "0.7711413", "0.7711413", "0.7711413", "0.7711413", "0.7711413", "0.76903355", "0.76903355", "0.7670062", "0.7666721", "0.76461536", "0.76338935", "0.76338935", "0.7625444", "0.76216745", "0.7616938", "0.7616938", "0.7616938", "0.7616938", "0.7616938", "0.7616938", "0.7616938", "0.7616938", "0.7614597", "0.76134527", "0.75933707", "0.75933707", "0.75614864", "0.7539347", "0.7498599", "0.7463132", "0.74603117", "0.7400919", "0.7400919", "0.73844784", "0.7377544", "0.735161", "0.73427624", "0.7342228", "0.73407346", "0.7339504", "0.7338249", "0.733669", "0.73357123", "0.7329185", "0.7329185", "0.73151594", "0.72998226", "0.72788966", "0.7276015", "0.7269458", "0.7266347", "0.72624403", "0.7259427", "0.7232156", "0.721997", "0.7205039", "0.7196828", "0.7196828", "0.71895146", "0.7162648", "0.7158225", "0.7157407", "0.7143977", "0.7143977", "0.7143977", "0.71412987", "0.7135486", "0.7124412", "0.71138716", "0.71083647", "0.7100947", "0.70951045", "0.70903546", "0.70903546", "0.7088033", "0.7081613", "0.7078692", "0.7078692", "0.7078692", "0.7078692", "0.7078692", "0.7078692", "0.7078692", "0.7078692", "0.7078692", "0.7078692", "0.7078692", "0.7078692" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.firstName attribute.
public void setFirstName(final String value) { setFirstName( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setFirstName(java.lang.String firstName) {\n _entityCustomer.setFirstName(firstName);\n }", "public void setFirstName(String firstName){\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName)\r\n {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName( String first )\r\n {\r\n firstName = first;\r\n }", "public void setFirstName(String fName) {\n this.firstName = fName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(String newFirstName) {\n this.firstName = newFirstName;\n }", "public final void setFirstName(String firstName) {\r\n\t\tthis.firstName = firstName;\r\n\t}", "public void setFirstName(final String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(java.lang.String firstName) {\r\n this.firstName = firstName;\r\n }", "public void setFirstName(String firstName)\n\t{\n\t\tthis.firstName = firstName;\n\t}", "public final void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String firstName) {\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer first name can't be null.\" );\r\n else \r\n\t this.firstName = name; \r\n }", "protected void setFirstName(String first)\n {\n firstName = first;\n }", "public void setFirstName(java.lang.String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(java.lang.String firstName) {\n this.firstName = firstName;\n }", "public void setFirstName(String s) {\r\n\t\tfirstName = s;\t\r\n\t}", "public void setFirstName(String newFirstName) {\n _firstName = newFirstName;\n }", "public void setFirstName(String firstName) {\n\t\tif (firstName == null)\n\t\t\tfirstName = \"\";\n\t\tthis.firstName = firstName;\n\t}", "public void setFirstName(String value) {\n setAttributeInternal(FIRSTNAME, value);\n }", "public void setFirstName(String fname){ firstName.set(fname); }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public void setFirstname(String firstname) {\n this.firstname = firstname;\n }", "public void setFirstName(String firstName) {\n String old = this.firstName;\n this.firstName = firstName;\n firePropertyChange(FIRST_NAME_PROPERTY, old, firstName);\n }", "public void setFirstName(String firstName) {\r\n this.firstName = doTrim(firstName);\r\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public void setFirstName(String firstName) {\n this.firstName = firstName == null ? null : firstName.trim();\n }", "public void setFirstName(String firstName) {\r\n this.firstName = firstName == null ? null : firstName.trim();\r\n }", "public com.politrons.avro.AvroPerson.Builder setFirstName(java.lang.CharSequence value) {\n validate(fields()[4], value);\n this.first_name = value;\n fieldSetFlags()[4] = true;\n return this; \n }", "public void setFirstName(String firstName) {\n\t\tthis.firstName = StringUtils.trimString( firstName );\n\t}", "public void setFirstName() {\n\n\t}", "public void setFirstname(String firstname) {\r\n\t\tthis.firstname = firstname;\r\n\t}", "public void setFirstName(String newFirstName)\r\n {\r\n firstName = newFirstName;\r\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "public Builder setFirstName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n firstName_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void FirstName(String firstName) {\n\t\t\n\t}", "public void setFirstName(java.lang.CharSequence value) {\n this.first_name = value;\n }", "public void setFirstName(String firstName);", "public void setFirstName(String firstName) {\n if (firstName.length() >= 3 && firstName.length() <= 20)\n this.firstName = firstName;\n }", "public Builder setFirstName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tfirstName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void setFirstName(String firstName) {\n if(firstName.length()>0)\n this.firstName = firstName;\n else this.firstName =\"undefined\";\n }", "@Override\n public java.lang.String getFirstName() {\n return _entityCustomer.getFirstName();\n }", "void firstName( String key, String value ){\n developer.firstName = value;\n }", "public void setFirstNameFieldName(final String value) {\n setProperty(FIRST_NAME_FIELD_NAME_KEY, value);\n }", "public void setFirstName(String fn)\n\t{\n\t\tfirstName = fn;\n\t}", "public String getFirstName(){\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n return this.firstName;\n }", "public String getFirstName() {\n return this.firstName;\n }", "void setFirstName(String firstName);", "public String getFirstName(){\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn this.firstName;\r\n\t}", "public String getFirstName(){\n\t\treturn this.firstName;\n\t}", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName() {\r\n return firstName;\r\n }", "public String getFirstName(){\n\t\treturn firstName;\n\t}", "public String getFirstName() {\n return _firstName;\n }", "@Override\n\tpublic void setFirstName(java.lang.String firstName) {\n\t\t_candidate.setFirstName(firstName);\n\t}", "public void setFirst_name(String first_name);", "public void setFirstName(String firstName) {\n this.firstName = Objects.requireNonNull(firstName,\n \"First name can't be null.\");\n }", "public String getFirstName()\n {\n return this.firstName;\n }", "public String getFirstName() {\n return _firstName;\n }", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\r\n\t\treturn firstName;\r\n\t}", "public void setFirst_name(String first_name) {\n this.first_name = first_name;\n }", "public String getFirstName()\r\n\t{\r\n\t\treturn firstName;\r\n\t}", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }", "public String getFirstName() {\n return firstName;\n }" ]
[ "0.81006956", "0.77710044", "0.7767715", "0.7760757", "0.7749835", "0.7718712", "0.7717315", "0.7710339", "0.7710339", "0.7710339", "0.7710339", "0.7710339", "0.7710339", "0.7710339", "0.7710339", "0.7710339", "0.7710339", "0.7710339", "0.76896816", "0.76896816", "0.76685447", "0.766627", "0.7645433", "0.7633249", "0.7633249", "0.7624746", "0.7621218", "0.76162827", "0.76162827", "0.76162827", "0.76162827", "0.76162827", "0.76162827", "0.76162827", "0.76162827", "0.76136804", "0.7611736", "0.75927734", "0.75927734", "0.7559607", "0.7538057", "0.7497947", "0.74620575", "0.74582094", "0.740013", "0.740013", "0.7384641", "0.7376624", "0.73511225", "0.7342268", "0.7341694", "0.73398536", "0.7338704", "0.73362166", "0.7336117", "0.7334477", "0.732873", "0.732873", "0.73142123", "0.7298403", "0.72763723", "0.7274891", "0.726864", "0.7265268", "0.72596097", "0.7258003", "0.7229707", "0.72176814", "0.7202682", "0.7194485", "0.7194485", "0.7187192", "0.7160186", "0.71560913", "0.71550107", "0.71416306", "0.71416306", "0.71416306", "0.71389556", "0.7133302", "0.7124841", "0.7111424", "0.71086407", "0.70982224", "0.7092716", "0.7088344", "0.7088344", "0.708706", "0.70793146", "0.70763457", "0.70763457", "0.70763457", "0.70763457", "0.70763457", "0.70763457", "0.70763457", "0.70763457", "0.70763457", "0.70763457", "0.70763457", "0.70763457" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.id attribute.
public String getId(final SessionContext ctx) { return (String)getProperty( ctx, ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public Integer getCustomerId()\n {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public Long getCustomerId() {\n return customerId;\n }", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustomerid() {\n return customerid;\n }", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "public Integer getCustomerID() {\n return customerID;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public String getCustId() {\n return custId;\n }", "public int getCustomerID() {\n return customerID;\n }", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public Long getCustId() {\n return custId;\n }", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "public int getCustomerId() \n {\n return customerId;\n }", "String getCustomerID();", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public int getCustId(){\n return this.custId;\r\n }", "public int getCustomerID() {\n\t\treturn 0;\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "public BigDecimal getId() {\n\t\treturn id;\n\t}", "@Override\n public java.lang.String getDealerId() {\n return _entityCustomer.getDealerId();\n }", "public BigDecimal getId() {\n return id;\n }", "@Override\r\n\tpublic Integer getId() {\n\t\treturn codigoCliente;\r\n\t}", "@ZAttr(id=1)\n public String getId() {\n return getAttr(Provisioning.A_zimbraId, null);\n }", "public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }", "@ApiModelProperty(required = true, value = \"internal domestic payment order identifier\")\n public String getId() {\n return id;\n }", "@Override\r\n\tpublic Integer getId() {\n\t\treturn this.codContacto;\r\n\t}", "public Integer getId() {\n return id.get();\n }", "public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}", "public Integer getId () {\n return id;\n }", "public Long getId() {\n return this.id.get();\n }", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "public long getId()\r\n {\r\n return _id;\r\n }", "@Override\n\tpublic Number getId() {\n\t\treturn this.id;\n\t}", "public String getIdNo() {\n return idNo;\n }", "public String getIdNo() {\n return idNo;\n }", "public Integer getcId() {\n return cId;\n }", "@Override\n public int getClientId() {\n return _entityCustomer.getClientId();\n }", "public byte getId() {\r\n\t\treturn id;\r\n\t}", "public long getId(){\n\t\treturn id;\n\t}", "@ZenCodeType.Method\n default byte getId() {\n \n return getInternal().getId();\n }", "@ApiModelProperty(value = \"Unique identifier for this stored card\")\r\n public Integer getCustomerProfileCreditCardId() {\r\n return customerProfileCreditCardId;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public String getId ()\n {\n return id;\n }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public byte getId() {\r\n return id;\r\n }", "public long getId() {\r\n \treturn this.id;\r\n }", "public int getId() {\n\t\treturn _id;\n\t}", "public int getId() {\n\t\treturn _id;\n\t}", "public int getId() {\n\t\treturn _id;\n\t}", "public Object getId() {\n return id;\n }", "public Object getId() {\n return id;\n }", "public long getId()\n {\n return id;\n }", "public int getId() {\r\n\t\treturn this.id;\r\n\t}", "public Long getId () {\r\n\t\treturn id;\r\n\t}", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }" ]
[ "0.76738834", "0.7598662", "0.7598662", "0.7507327", "0.7507327", "0.75033617", "0.748572", "0.7483223", "0.7483223", "0.7457915", "0.7429751", "0.7418169", "0.73753154", "0.73753154", "0.73612577", "0.735489", "0.7342429", "0.72589433", "0.7251845", "0.7242566", "0.71884483", "0.7112381", "0.7111598", "0.7080161", "0.7064725", "0.70444757", "0.70444757", "0.697475", "0.6935148", "0.6917982", "0.6917982", "0.68981236", "0.68926126", "0.68663514", "0.6851841", "0.6850639", "0.6789234", "0.67616135", "0.6726474", "0.6720668", "0.66960096", "0.66342056", "0.6610963", "0.6586393", "0.65743583", "0.65700835", "0.6563252", "0.6489844", "0.6481459", "0.64742994", "0.6468816", "0.6460589", "0.64564115", "0.6455805", "0.64382136", "0.64382136", "0.6437404", "0.6433815", "0.64266753", "0.64265704", "0.6422435", "0.6418575", "0.6413391", "0.6413391", "0.6413391", "0.6413391", "0.6413391", "0.64121616", "0.6411687", "0.6410844", "0.64099455", "0.6400514", "0.6400514", "0.6400514", "0.6399682", "0.6399682", "0.63995785", "0.6399057", "0.63987356", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947", "0.6397947" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.id attribute.
public String getId() { return getId( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public Integer getCustomerId()\n {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public Long getCustomerId() {\n return customerId;\n }", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "public String getCustomerid() {\n return customerid;\n }", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "public Integer getCustomerID() {\n return customerID;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public String getCustId() {\n return custId;\n }", "public int getCustomerID() {\n return customerID;\n }", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public Long getCustId() {\n return custId;\n }", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "public int getCustomerId() \n {\n return customerId;\n }", "String getCustomerID();", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public int getCustomerID() {\n\t\treturn 0;\n\t}", "public int getCustId(){\n return this.custId;\r\n }", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }", "public BigDecimal getId() {\n\t\treturn id;\n\t}", "@Override\n public java.lang.String getDealerId() {\n return _entityCustomer.getDealerId();\n }", "public BigDecimal getId() {\n return id;\n }", "@Override\r\n\tpublic Integer getId() {\n\t\treturn codigoCliente;\r\n\t}", "@ZAttr(id=1)\n public String getId() {\n return getAttr(Provisioning.A_zimbraId, null);\n }", "public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }", "@ApiModelProperty(required = true, value = \"internal domestic payment order identifier\")\n public String getId() {\n return id;\n }", "@Override\r\n\tpublic Integer getId() {\n\t\treturn this.codContacto;\r\n\t}", "public Integer getId() {\n return id.get();\n }", "public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}", "public Integer getId () {\n return id;\n }", "public Long getId() {\n return this.id.get();\n }", "public final int getId() {\n\t\treturn this.accessor.getId();\n\t}", "public long getId()\r\n {\r\n return _id;\r\n }", "@Override\n\tpublic Number getId() {\n\t\treturn this.id;\n\t}", "public String getIdNo() {\n return idNo;\n }", "public String getIdNo() {\n return idNo;\n }", "public Integer getcId() {\n return cId;\n }", "@Override\n public int getClientId() {\n return _entityCustomer.getClientId();\n }", "public long getId(){\n\t\treturn id;\n\t}", "public byte getId() {\r\n\t\treturn id;\r\n\t}", "@ZenCodeType.Method\n default byte getId() {\n \n return getInternal().getId();\n }", "@ApiModelProperty(value = \"Unique identifier for this stored card\")\r\n public Integer getCustomerProfileCreditCardId() {\r\n return customerProfileCreditCardId;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "public long getId() {\r\n return id;\r\n }", "@java.lang.Override\n public long getId() {\n return id_;\n }", "public String getId ()\n {\n return id;\n }", "public byte getId() {\r\n return id;\r\n }", "public long getId() {\r\n \treturn this.id;\r\n }", "public Object getId() {\n return id;\n }", "public Object getId() {\n return id;\n }", "public int getId() {\n\t\treturn _id;\n\t}", "public int getId() {\n\t\treturn _id;\n\t}", "public int getId() {\n\t\treturn _id;\n\t}", "public long getId()\n {\n return id;\n }", "public Long getId () {\r\n\t\treturn id;\r\n\t}", "public int getId() {\r\n\t\treturn this.id;\r\n\t}", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }", "public long getId() {\n return id;\n }" ]
[ "0.76745397", "0.7599612", "0.7599612", "0.7508079", "0.7508079", "0.7502866", "0.7486181", "0.74840254", "0.74840254", "0.74593663", "0.7430888", "0.7419988", "0.7375316", "0.7375316", "0.7362977", "0.73564595", "0.7342599", "0.7259566", "0.7253251", "0.72420865", "0.7188365", "0.7110826", "0.71107244", "0.70807374", "0.7063726", "0.70468885", "0.70468885", "0.69737744", "0.6934104", "0.69174147", "0.69174147", "0.6898894", "0.68910104", "0.6864686", "0.6851514", "0.68494785", "0.6789049", "0.6759606", "0.6725761", "0.6721965", "0.6694167", "0.6635012", "0.6607738", "0.65856194", "0.65746546", "0.6569454", "0.65610963", "0.6490709", "0.6481799", "0.6474297", "0.6469815", "0.64593595", "0.6456547", "0.645517", "0.6435073", "0.6435073", "0.6434176", "0.6432657", "0.6426794", "0.64266324", "0.642186", "0.64172053", "0.64139545", "0.64139545", "0.64139545", "0.64139545", "0.64139545", "0.64127326", "0.64117706", "0.6410314", "0.64097315", "0.64008915", "0.64008915", "0.6400511", "0.6400511", "0.6400511", "0.6399977", "0.6399947", "0.63988715", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886", "0.63986886" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.id attribute.
public void setId(final SessionContext ctx, final String value) { setProperty(ctx, ID,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public CustomerBuilder id (String idVal) {\n if (idVal == null) {\n throw new IllegalArgumentException(\"id can not be null\");\n }\n id = idVal;\n return this;\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public String getCustomerid() {\n return customerid;\n }", "public Integer getCustomerId()\n {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public Long getCustomerId() {\n return customerId;\n }", "public void setCustomerId(long value) {\n this.customerId = value;\n }", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }", "public Customer(int id) {\n\t\tthis.id = id;\n\t}", "public Integer getCustomerID() {\n return customerID;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }", "public String getCustId() {\n return custId;\n }", "public int getCustomerID() {\n return customerID;\n }", "public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }", "public int getCustomerId() \n {\n return customerId;\n }", "public Long getCustId() {\n return custId;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public CustomerAddressQuery id() {\n startField(\"id\");\n\n return this;\n }", "@Override\n public void setId(UserDetailsPk id) {\n this.id = id;\n }", "public void setID(int value) {\n this.id = value;\n }", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public int getCustomerID() {\n\t\treturn 0;\n\t}", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public int getCustId(){\n return this.custId;\r\n }", "public void setCustomerid(String customerid) {\n this.customerid = customerid == null ? null : customerid.trim();\n }", "public void setCustId(Long custId) {\n this.custId = custId;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}", "public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}", "@Override\n public void setDealerId(java.lang.String dealerId) {\n _entityCustomer.setDealerId(dealerId);\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setidnumber(int id) {\r\n idnumber = id;\r\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "@ApiModelProperty(value = \"Unique identifier for this stored card\")\r\n public Integer getCustomerProfileCreditCardId() {\r\n return customerProfileCreditCardId;\r\n }", "public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public void setId(Integer id) {\n this.id = id;\n }", "@Override\n public void setId(final long id) {\n super.setId(id);\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public void setId(Integer value) {\n this.id = value;\n }", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setID(int id) {\n this.id = id;\n }", "public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}", "public void setID(int id){\n this.id=id;\n }", "public void setID(int value) {\r\n\t\tid = value;\r\n\t}", "@ApiModelProperty(required = true, value = \"internal domestic payment order identifier\")\n public String getId() {\n return id;\n }", "@Override\n public void setId(int id) {\n this.id = id;\n }", "public void setID(int id)\r\n {\r\n\tthis.id = id;\r\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "@Override\r\n\tpublic void setID(String id) {\n\t\tsuper.id=id;\r\n\t}", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void setId(long id) {\r\n this.id = id;\r\n }", "@Override\n\tpublic void setId(Integer id) {\n this.id = id;\n }" ]
[ "0.6894081", "0.67667294", "0.67557216", "0.6748637", "0.6748637", "0.67286533", "0.6679914", "0.6663676", "0.6663572", "0.6663572", "0.6660567", "0.6657241", "0.6657241", "0.66493714", "0.66455054", "0.6624657", "0.6614758", "0.6595068", "0.6560348", "0.65473366", "0.6545324", "0.6545324", "0.6540002", "0.6533922", "0.63436675", "0.63333", "0.6325888", "0.63255924", "0.62796295", "0.6278047", "0.6254627", "0.6234557", "0.6201895", "0.62013656", "0.6187884", "0.616403", "0.61606455", "0.6150113", "0.61456853", "0.61343867", "0.61343867", "0.6128126", "0.6128126", "0.6100988", "0.60972583", "0.6077742", "0.60734725", "0.60718817", "0.60653216", "0.6050566", "0.60427994", "0.6032629", "0.6024446", "0.6011771", "0.6011771", "0.5992436", "0.5992436", "0.5992436", "0.5992436", "0.5992436", "0.5992436", "0.5992436", "0.5992436", "0.5992436", "0.59600395", "0.59576845", "0.5957173", "0.59563303", "0.59436363", "0.5943059", "0.59279096", "0.59279096", "0.59279096", "0.59279096", "0.59279096", "0.59279096", "0.59279096", "0.5912385", "0.5909895", "0.5907197", "0.5884922", "0.58839774", "0.5880757", "0.5877618", "0.58736193", "0.5872762", "0.5863621", "0.58606076", "0.5860323", "0.584811", "0.5847708", "0.58474666", "0.5843545", "0.5840508", "0.5839544", "0.5838758", "0.5838758", "0.58348817", "0.5832941", "0.58213663", "0.58165187" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.id attribute.
public void setId(final String value) { setId( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }", "public CustomerBuilder id (String idVal) {\n if (idVal == null) {\n throw new IllegalArgumentException(\"id can not be null\");\n }\n id = idVal;\n return this;\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }", "public String getCustomerid() {\n return customerid;\n }", "public Integer getCustomerId()\n {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }", "public Long getCustomerId() {\n return customerId;\n }", "public void setCustomerId(long value) {\n this.customerId = value;\n }", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }", "public int getCustomerId() {\n\t\treturn customerId;\n\t}", "public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }", "public Customer(int id) {\n\t\tthis.id = id;\n\t}", "public Integer getCustomerID() {\n return customerID;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public int getCustomerID() {\n\t\treturn customerID;\n\t}", "public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }", "public String getCustId() {\n return custId;\n }", "public int getCustomerID() {\n return customerID;\n }", "public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }", "public int getCustomerId() \n {\n return customerId;\n }", "public Long getCustId() {\n return custId;\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public CustomerAddressQuery id() {\n startField(\"id\");\n\n return this;\n }", "@Override\n public void setId(UserDetailsPk id) {\n this.id = id;\n }", "public void setID(int value) {\n this.id = value;\n }", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public Long getCustId() {\n\t\treturn custId;\n\t}", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }", "public int toInt(){\n\t\treturn CustomerId;\n\t}", "public int getCustomerID() {\n\t\treturn 0;\n\t}", "public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}", "public void setCustomerid(String customerid) {\n this.customerid = customerid == null ? null : customerid.trim();\n }", "public int getCustId(){\n return this.custId;\r\n }", "public void setCustId(Long custId) {\n this.custId = custId;\n }", "public void setId(int value) {\r\n this.id = value;\r\n }", "public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(Object id) {\n this.id = id;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}", "public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}", "@Override\n public void setDealerId(java.lang.String dealerId) {\n _entityCustomer.setDealerId(dealerId);\n }", "public void setId(int value) {\n this.id = value;\n }", "public void setidnumber(int id) {\r\n idnumber = id;\r\n }", "public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "private void setId(int value) {\n \n id_ = value;\n }", "@ApiModelProperty(value = \"Unique identifier for this stored card\")\r\n public Integer getCustomerProfileCreditCardId() {\r\n return customerProfileCreditCardId;\r\n }", "public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}", "public void setId (long id)\r\n {\r\n _id = id;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public void setId(Integer id) {\n this.id = id;\n }", "@Override\n public void setId(final long id) {\n super.setId(id);\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public void setId(Integer value) {\n this.id = value;\n }", "public String getCustID()\n\t{\n\t\treturn custID;\n\t}", "@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }", "public void setID(int id) {\n this.id = id;\n }", "public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}", "public void setID(int id){\n this.id=id;\n }", "public void setID(int value) {\r\n\t\tid = value;\r\n\t}", "@ApiModelProperty(required = true, value = \"internal domestic payment order identifier\")\n public String getId() {\n return id;\n }", "@Override\n public void setId(int id) {\n this.id = id;\n }", "public void setID(int id)\r\n {\r\n\tthis.id = id;\r\n }", "public void setCustID(String custID) {\r\n this.custID = custID;\r\n }", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "com.google.protobuf.ByteString\n getCustomerIdBytes();", "@Override\r\n\tpublic void setID(String id) {\n\t\tsuper.id=id;\r\n\t}", "public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}", "public void setId(long id) {\r\n this.id = id;\r\n }", "@Override\n\tpublic void setId(Integer id) {\n this.id = id;\n }" ]
[ "0.689419", "0.676695", "0.6755046", "0.67478436", "0.67478436", "0.67287713", "0.66790885", "0.6662907", "0.66625446", "0.66625446", "0.6659845", "0.6655952", "0.6655952", "0.6649612", "0.6644582", "0.6624682", "0.6613892", "0.65941775", "0.65592337", "0.65460604", "0.6544191", "0.6544191", "0.65395695", "0.65330356", "0.6344335", "0.633332", "0.63249046", "0.6324279", "0.62784934", "0.6278357", "0.62535095", "0.62331986", "0.6202106", "0.62000465", "0.61867607", "0.61632043", "0.61604524", "0.6150383", "0.6146055", "0.61332595", "0.61332595", "0.61285114", "0.61285114", "0.6100834", "0.60959375", "0.6076856", "0.60727745", "0.6072128", "0.6065383", "0.605094", "0.604463", "0.6032956", "0.60246015", "0.60127234", "0.60127234", "0.59929395", "0.59929395", "0.59929395", "0.59929395", "0.59929395", "0.59929395", "0.59929395", "0.59929395", "0.59929395", "0.5960204", "0.59578043", "0.5957163", "0.5956714", "0.59437925", "0.5943611", "0.59281826", "0.59281826", "0.59281826", "0.59281826", "0.59281826", "0.59281826", "0.59281826", "0.59117687", "0.59103405", "0.5907775", "0.5885953", "0.58852917", "0.5881672", "0.58776534", "0.5874425", "0.58716315", "0.5863826", "0.58613193", "0.5860861", "0.5848426", "0.5847877", "0.5846589", "0.5844672", "0.58409846", "0.5839317", "0.58380103", "0.58380103", "0.5835366", "0.5833882", "0.58224225", "0.5817666" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.lastName attribute.
public String getLastName(final SessionContext ctx) { return (String)getProperty( ctx, LASTNAME); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "@XmlElement\n public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName()\n {\n return this.lastName;\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() {\n return this.lastName;\n }", "public String getLastName(){\n\t\treturn this.lastName;\n\t}", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName() { return lastName; }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n return lastName;\r\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName() {\r\n // Bouml preserved body begin 00040B82\r\n\t System.out.println(lastName);\r\n\t return lastName;\r\n\r\n // Bouml preserved body end 00040B82\r\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName()\r\n\t{\r\n\t\treturn lastName.getModelObjectAsString();\r\n\t}", "public String getLastName() {\n\t\treturn this.lastName;\n\t}", "public String getLastName(){\n\t\treturn lastName;\n\t}", "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\t\t\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getContactLastName() {\n return contactLastName;\n }", "public CustomerLastNameElements getCustomerLastNameAccess() {\n\t\treturn pCustomerLastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\r\n\t}", "public String returnLastName() {\n\t\treturn this.registration_lastname.getAttribute(\"value\");\r\n\t}", "public String getLastName()\n\t{\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.CharSequence getLastName() {\n return lastName;\n }", "public final String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLast_name() {\r\n return last_name;\r\n }", "public String getContactLastName() {\n\n \n return contactLastName;\n\n }", "public synchronized String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastname() {\n return (String) get(\"lastname\");\n }", "public String getLast_name() {\n return last_name;\n }", "public java.lang.String getLastName() {\r\n return lastName;\r\n }", "public String getLastName() {\n\t\tthis.setLastName(this.lastName);\n\t\treturn this.lastName;\n\t}", "public final String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.CharSequence getLastName() {\n return lastName;\n }", "public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }", "public String getLastNameFieldName() {\n return getStringProperty(LAST_NAME_FIELD_NAME_KEY);\n }", "public java.lang.String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastNameField.getText();\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "public String getLastname() {\n return lastname;\n }", "public java.lang.String getUserLastName() {\r\n return userLastName;\r\n }", "@Column(length = 50, nullable = false)\n public String getLastName() {\n return lastName;\n }", "@ApiModelProperty(required = true, value = \"User's last name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getLastName() {\n return lastName;\n }", "public String getLastName(){\r\n return lastname;\r\n }", "public java.lang.String getLastName() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tlastName_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "@Column(length = 100, nullable = false)\n\tpublic String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.String getLastName() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tlastName_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "public java.lang.String getLast_name() {\n return last_name;\n }", "public java.lang.String getLast_name() {\n return last_name;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@JsonProperty( \"lastname\" )\n\tpublic String getLastname()\n\t{\n\t\treturn m_lastname;\n\t}", "public String getLastname() {\r\n\t\treturn lastname;\r\n\t}", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getNameLast() {\n\t\t\treturn nameLast;\n\t\t}", "public com.google.protobuf.ByteString getLastNameBytes() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (ref instanceof String) {\n\t\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\n\t\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\n\t\t\t\t\tlastName_ = b;\n\t\t\t\t\treturn b;\n\t\t\t\t} else {\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t\t}\n\t\t\t}", "public com.google.protobuf.ByteString getLastNameBytes() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n\t\t\t\tlastName_ = b;\n\t\t\t\treturn b;\n\t\t\t} else {\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t}\n\t\t}", "public String getLastName() {\n \treturn lName;\n }" ]
[ "0.7823363", "0.7801887", "0.777976", "0.77455235", "0.77269673", "0.76932216", "0.7671941", "0.7655245", "0.7655245", "0.7641303", "0.7641303", "0.7641303", "0.76402855", "0.7633671", "0.76265895", "0.76260686", "0.7601662", "0.75916535", "0.75841475", "0.7578894", "0.75756496", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.75747204", "0.7574421", "0.7559463", "0.7548362", "0.7541527", "0.7513787", "0.7502164", "0.7502164", "0.7467029", "0.74667567", "0.7465793", "0.74229795", "0.7421138", "0.741847", "0.741847", "0.741847", "0.741847", "0.741847", "0.741847", "0.741847", "0.741847", "0.74012285", "0.73938787", "0.73863286", "0.73768914", "0.73768413", "0.7365913", "0.7361004", "0.73571485", "0.73562634", "0.7330019", "0.73249465", "0.7313021", "0.7300982", "0.72796625", "0.7277996", "0.7259232", "0.7250999", "0.7250999", "0.72463375", "0.7245382", "0.7226348", "0.7222889", "0.7210688", "0.7210422", "0.72029555", "0.7194914", "0.7174717", "0.7174717", "0.71664083", "0.71664083", "0.71616465", "0.7154603", "0.7143886", "0.7143462", "0.7108748", "0.7108748", "0.71047807", "0.70958906", "0.7071297", "0.7065727" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.lastName attribute.
public String getLastName() { return getLastName( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "@XmlElement\n public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName()\n {\n return this.lastName;\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() {\n return this.lastName;\n }", "public String getLastName(){\n\t\treturn this.lastName;\n\t}", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName() { return lastName; }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n return lastName;\r\n }", "@Override\n public java.lang.String getSecondLastName() {\n return _entityCustomer.getSecondLastName();\n }", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName()\n {\n return lastName;\n }", "public String getLastName() {\r\n // Bouml preserved body begin 00040B82\r\n\t System.out.println(lastName);\r\n\t return lastName;\r\n\r\n // Bouml preserved body end 00040B82\r\n }", "public String getLastName()\r\n\t{\r\n\t\treturn lastName.getModelObjectAsString();\r\n\t}", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n\t\treturn this.lastName;\n\t}", "public String getLastName(){\n\t\treturn lastName;\n\t}", "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\t\t\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public CustomerLastNameElements getCustomerLastNameAccess() {\n\t\treturn pCustomerLastName;\n\t}", "public String getContactLastName() {\n return contactLastName;\n }", "public String getLastName() {\n\t\treturn lastName;\r\n\t}", "public String returnLastName() {\n\t\treturn this.registration_lastname.getAttribute(\"value\");\r\n\t}", "public String getLastName()\n\t{\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.CharSequence getLastName() {\n return lastName;\n }", "public final String getLastName() {\r\n\t\treturn lastName;\r\n\t}", "public String getLast_name() {\r\n return last_name;\r\n }", "public String getContactLastName() {\n\n \n return contactLastName;\n\n }", "public synchronized String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastname() {\n return (String) get(\"lastname\");\n }", "public String getLast_name() {\n return last_name;\n }", "public java.lang.String getLastName() {\r\n return lastName;\r\n }", "public String getLastName() {\n\t\tthis.setLastName(this.lastName);\n\t\treturn this.lastName;\n\t}", "public final String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.CharSequence getLastName() {\n return lastName;\n }", "public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }", "public String getLastNameFieldName() {\n return getStringProperty(LAST_NAME_FIELD_NAME_KEY);\n }", "public java.lang.String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastNameField.getText();\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "@java.lang.Override\n public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n }\n }", "public String getLastname() {\n return lastname;\n }", "public java.lang.String getUserLastName() {\r\n return userLastName;\r\n }", "@Column(length = 50, nullable = false)\n public String getLastName() {\n return lastName;\n }", "@ApiModelProperty(required = true, value = \"User's last name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getLastName() {\n return lastName;\n }", "public String getLastName(){\r\n return lastname;\r\n }", "public java.lang.String getLastName() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tlastName_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}", "@Column(length = 100, nullable = false)\n\tpublic String getLastName() {\n\t\treturn lastName;\n\t}", "public java.lang.String getLastName() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\tlastName_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}", "public java.lang.String getLast_name() {\n return last_name;\n }", "public java.lang.String getLast_name() {\n return last_name;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getLastNameBytes() {\n java.lang.Object ref = lastName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n lastName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@JsonProperty( \"lastname\" )\n\tpublic String getLastname()\n\t{\n\t\treturn m_lastname;\n\t}", "public String getLastname() {\r\n\t\treturn lastname;\r\n\t}", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getLastName() {\n java.lang.Object ref = lastName_;\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 lastName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getNameLast() {\n\t\t\treturn nameLast;\n\t\t}", "public com.google.protobuf.ByteString getLastNameBytes() {\n\t\t\t\tjava.lang.Object ref = lastName_;\n\t\t\t\tif (ref instanceof String) {\n\t\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString\n\t\t\t\t\t\t\t.copyFromUtf8((java.lang.String) ref);\n\t\t\t\t\tlastName_ = b;\n\t\t\t\t\treturn b;\n\t\t\t\t} else {\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t\t}\n\t\t\t}", "public com.google.protobuf.ByteString getLastNameBytes() {\n\t\t\tjava.lang.Object ref = lastName_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\tcom.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n\t\t\t\tlastName_ = b;\n\t\t\t\treturn b;\n\t\t\t} else {\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t}\n\t\t}", "public String getLastName() {\n \treturn lName;\n }" ]
[ "0.78221375", "0.7800238", "0.77762705", "0.7742454", "0.7723274", "0.76898986", "0.7668798", "0.7652042", "0.7652042", "0.76380867", "0.76380867", "0.76380867", "0.7637175", "0.7630416", "0.7623294", "0.7622638", "0.7600802", "0.7588794", "0.75810677", "0.75760317", "0.7572857", "0.7571988", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75713664", "0.75559974", "0.7545234", "0.7537922", "0.75101966", "0.7498474", "0.7498474", "0.7466931", "0.7466619", "0.7462188", "0.7421632", "0.7417544", "0.7414846", "0.7414846", "0.7414846", "0.7414846", "0.7414846", "0.7414846", "0.7414846", "0.7414846", "0.7397605", "0.73901004", "0.7383377", "0.7377324", "0.73735934", "0.7363231", "0.7358057", "0.73533815", "0.7352969", "0.7326299", "0.7321163", "0.73108846", "0.72986877", "0.72758627", "0.72752094", "0.72551954", "0.7246891", "0.7246891", "0.7242764", "0.7242241", "0.7223164", "0.7220762", "0.7208509", "0.7206482", "0.71990615", "0.7190878", "0.7171403", "0.7171403", "0.7162202", "0.7162202", "0.71575826", "0.71511424", "0.7140031", "0.7139456", "0.710481", "0.710481", "0.71013516", "0.70919174", "0.70672214", "0.7062964" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.lastName attribute.
public void setLastName(final SessionContext ctx, final String value) { setProperty(ctx, LASTNAME,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLastName(java.lang.String lastName) {\n _entityCustomer.setLastName(lastName);\n }", "public void setLastName(java.lang.CharSequence value) {\n this.lastName = value;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer last name can't be null.\" );\r\n else \r\n\t this.lastName = name; \r\n }", "public void setLastName(String lastName){\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName( String last )\r\n {\r\n lastName = last;\r\n }", "public void setLastName(String newLastName) {\n this.lastName = newLastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n if (lastName.length() >= 3 && lastName.length() <= 20)\n this.lastName = lastName;\n }", "public void setLastName(final String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public final void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\r\n this.lastName = doTrim(lastName);\r\n }", "public void setLastName(java.lang.String lastName) {\r\n this.lastName = lastName;\r\n }", "public void setLastName(String newLastName) {\n _lastName = newLastName;\n }", "public void setLastName(java.lang.String lastName) {\n this.lastName = lastName;\n }", "void lastName( String key, String value ){\n developer.lastName = value;\n }", "public final void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.lastName = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setLastName(String lastName)\n\t{\n\t\tthis.lastName = lastName;\n\t}", "protected void setLastName(String last)\n {\n lastName = last;\n }", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String s) {\r\n\t\tlastName = s;\t\t\r\n\t}", "public void setLastName(String lastName) {\n\t\tif (lastName == null)\n\t\t\tlastName = \"\";\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n if(lastName.length()>0)\n this.lastName = lastName;\n else this.lastName =\"undefined\";\n\n }", "public void setLastName(String value) {\n setAttributeInternal(LASTNAME, value);\n }", "public void setLastName(String lastName) {\n\t\tthis.lastName = StringUtils.trimString( lastName );\n\t}", "public void setLastNameFieldName(final String value) {\n setProperty(LAST_NAME_FIELD_NAME_KEY, value);\n }", "public void setLastName(String newLastName)\r\n {\r\n lastName = newLastName;\r\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public void setLastName(java.lang.CharSequence value) {\n this.last_name = value;\n }", "public com.politrons.avro.AvroPerson.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.last_name = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public Builder setLastName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tlastName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void setLastName(String lastName) {\n String old = this.lastName;\n this.lastName = lastName;\n firePropertyChange(LAST_NAME_PROPERTY, old, lastName);\n }", "public void setLastName(String lastName);", "public void setlastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "@XmlElement\n public String getLastName() {\n return lastName;\n }", "public void setLastName(String lName) {\n this.lastName = lName;\n }", "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "public void setLastName() {\n\t}", "public void setLastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "public void setLastName(java.lang.String newLastName);", "public void setLastName(String lastName){\n //this keyword refers to the instance\n //is the local variable/argument\n //this is called shadowing\n\n lastName = this.lastName;\n\n }", "public static void setLastName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyLName,name);\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() { return lastName; }", "public String getLastName()\n {\n return this.lastName;\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\n return _lastName;\n }", "@Override\n\tpublic void setLastName(java.lang.String lastName) {\n\t\t_candidate.setLastName(lastName);\n\t}", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public void setLastName(StringFilter lastName) {\n\t\tthis.lastName = lastName;\n\t}", "@Override\n\tpublic void LastName(String lastName) {\n\t\t\n\t}", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public Builder setLastNameBytes(com.google.protobuf.ByteString value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tcheckByteStringIsUtf8(value);\n\n\t\t\t\tlastName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public String getLastName() {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\n {\n return lastName;\n }", "@ApiModelProperty(required = true, value = \"User's last name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return this.lastName;\n }", "public String getLastName(){\n\t\treturn this.lastName;\n\t}", "public void setLastName(String lastName) {\n this.lastName = Objects.requireNonNull(lastName,\n \"Last name can't be null.\");\n }", "public String getLastName(){\n\t\treturn lastName;\n\t}", "public void setLastName(String inLast)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set the value of lastName.\n\t\tlastName = inLast;\n\n\t}", "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\t\t\r\n\t}", "public void setLast_name(String last_name);", "public Builder setLastNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public String getLastName()\n {\n return lastName;\n }", "public Builder setLastNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public void setLastname(String lastname);", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }" ]
[ "0.79484814", "0.7642553", "0.759245", "0.7570695", "0.756452", "0.7541434", "0.75074804", "0.7501938", "0.7501938", "0.7501938", "0.7501938", "0.7501938", "0.7501938", "0.7501938", "0.7501938", "0.7501938", "0.7501938", "0.7462445", "0.7455591", "0.74521464", "0.74521464", "0.7446021", "0.7441153", "0.7433071", "0.7408853", "0.7377482", "0.7369467", "0.73679775", "0.7367365", "0.736054", "0.7351187", "0.73424774", "0.73424774", "0.73424774", "0.73424774", "0.73424774", "0.73424774", "0.73424774", "0.73424774", "0.7320438", "0.7303373", "0.7297127", "0.72756535", "0.72675514", "0.72433543", "0.72387296", "0.72324806", "0.72324806", "0.7229553", "0.7223302", "0.7223302", "0.7206781", "0.7202801", "0.7188744", "0.7172671", "0.71579957", "0.7157745", "0.7133218", "0.7132645", "0.71050656", "0.71030813", "0.7084292", "0.70327145", "0.70073223", "0.6979796", "0.6948885", "0.6924613", "0.69214314", "0.6891888", "0.6880257", "0.6872349", "0.68447584", "0.68447584", "0.68447584", "0.6844402", "0.6843988", "0.6837155", "0.6834305", "0.6834305", "0.6829468", "0.6827224", "0.681439", "0.6809581", "0.6805636", "0.6805072", "0.67881227", "0.6770444", "0.6760407", "0.67573833", "0.6752116", "0.6751207", "0.67480886", "0.6747994", "0.6747052", "0.6746836", "0.6746836", "0.67459756", "0.67273885", "0.67273885", "0.67273885", "0.67273885" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.lastName attribute.
public void setLastName(final String value) { setLastName( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setLastName(java.lang.String lastName) {\n _entityCustomer.setLastName(lastName);\n }", "public void setLastName(java.lang.CharSequence value) {\n this.lastName = value;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName( String name ) {\n if ( name == null ) \r\n throw new NullPointerException( \"Customer last name can't be null.\" );\r\n else \r\n\t this.lastName = name; \r\n }", "public void setLastName(String lastName){\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName( String last )\r\n {\r\n lastName = last;\r\n }", "public void setLastName(String newLastName) {\n this.lastName = newLastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\n if (lastName.length() >= 3 && lastName.length() <= 20)\n this.lastName = lastName;\n }", "public void setLastName(final String lastName) {\n this.lastName = lastName;\n }", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public final void setLastName(String lastName) {\r\n\t\tthis.lastName = lastName;\r\n\t}", "public void setLastName(String lastName) {\r\n this.lastName = doTrim(lastName);\r\n }", "public void setLastName(java.lang.String lastName) {\r\n this.lastName = lastName;\r\n }", "public void setLastName(String newLastName) {\n _lastName = newLastName;\n }", "public void setLastName(java.lang.String lastName) {\n this.lastName = lastName;\n }", "void lastName( String key, String value ){\n developer.lastName = value;\n }", "public final void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[1], value);\n this.lastName = value;\n fieldSetFlags()[1] = true;\n return this;\n }", "public void setLastName(String lastName)\n\t{\n\t\tthis.lastName = lastName;\n\t}", "protected void setLastName(String last)\n {\n lastName = last;\n }", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String s) {\r\n\t\tlastName = s;\t\t\r\n\t}", "public void setLastName(String lastName) {\n\t\tif (lastName == null)\n\t\t\tlastName = \"\";\n\t\tthis.lastName = lastName;\n\t}", "public void setLastName(String lastName) {\n if(lastName.length()>0)\n this.lastName = lastName;\n else this.lastName =\"undefined\";\n\n }", "public void setLastName(String value) {\n setAttributeInternal(LASTNAME, value);\n }", "public void setLastName(String lastName) {\n\t\tthis.lastName = StringUtils.trimString( lastName );\n\t}", "public void setLastNameFieldName(final String value) {\n setProperty(LAST_NAME_FIELD_NAME_KEY, value);\n }", "public void setLastName(String newLastName)\r\n {\r\n lastName = newLastName;\r\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public void setLastName(String lastName) {\n this.lastName = lastName == null ? null : lastName.trim();\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public void setLastName(java.lang.CharSequence value) {\n this.last_name = value;\n }", "public com.politrons.avro.AvroPerson.Builder setLastName(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.last_name = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public Builder setLastName(java.lang.String value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\n\t\t\t\tlastName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void setLastName(String lastName) {\n String old = this.lastName;\n this.lastName = lastName;\n firePropertyChange(LAST_NAME_PROPERTY, old, lastName);\n }", "public void setlastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "public void setLastName(String lastName);", "@XmlElement\n public String getLastName() {\n return lastName;\n }", "public void setLastName(String lName) {\n this.lastName = lName;\n }", "@Override\n public java.lang.String getLastName() {\n return _entityCustomer.getLastName();\n }", "public void setLastName() {\n\t}", "public void setLastName(String ln)\n\t{\n\t\tlastName = ln;\n\t}", "public void setLastName(java.lang.String newLastName);", "public void setLastName(String lastName){\n //this keyword refers to the instance\n //is the local variable/argument\n //this is called shadowing\n\n lastName = this.lastName;\n\n }", "public static void setLastName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyLName,name);\n }", "public String getLastName() {\n return _lastName;\n }", "public String getLastName() { return lastName; }", "public String getLastName()\n {\n return this.lastName;\n }", "public String getLastName(){\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\n return _lastName;\n }", "@Override\n\tpublic void setLastName(java.lang.String lastName) {\n\t\t_candidate.setLastName(lastName);\n\t}", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public void setLastName(StringFilter lastName) {\n\t\tthis.lastName = lastName;\n\t}", "@Override\n\tpublic void LastName(String lastName) {\n\t\t\n\t}", "public String getLastName(){\n return(this.lastName);\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public Builder setLastNameBytes(com.google.protobuf.ByteString value) {\n\t\t\t\tif (value == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t\tcheckByteStringIsUtf8(value);\n\n\t\t\t\tlastName_ = value;\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public String getLastName() {\r\n return lastName;\r\n }", "public String getLastName()\r\n {\r\n return lastName;\r\n }", "public String getLastName()\n {\n return lastName;\n }", "@ApiModelProperty(required = true, value = \"User's last name. Effect: Controls the value of the corresponding CfgPerson attribute \")\n public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return this.lastName;\n }", "public String getLastName(){\n\t\treturn this.lastName;\n\t}", "public void setLastName(String lastName) {\n this.lastName = Objects.requireNonNull(lastName,\n \"Last name can't be null.\");\n }", "public String getLastName(){\n\t\treturn lastName;\n\t}", "public void setLastName(String inLast)\n\t{\n\t\t//local constants\n\n\t\t//local variables\n\n\t\t/*******************************************************************************/\n\n\t\t//Set the value of lastName.\n\t\tlastName = inLast;\n\n\t}", "public String getLastName()\r\n\t{\r\n\t\treturn lastName;\r\n\t}", "public String getLastName() {\r\n\t\treturn lastName;\t\t\r\n\t}", "public void setLast_name(String last_name);", "public String getLastName()\n {\n return lastName;\n }", "public Builder setLastNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public void setLastname(String lastname);", "public Builder setLastNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public Builder setLastNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n lastName_ = value;\n onChanged();\n return this;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }", "public String getLastName() {\n return lastName;\n }" ]
[ "0.79479516", "0.76440644", "0.75937426", "0.7570951", "0.7565802", "0.754307", "0.750862", "0.7503165", "0.7503165", "0.7503165", "0.7503165", "0.7503165", "0.7503165", "0.7503165", "0.7503165", "0.7503165", "0.7503165", "0.7464197", "0.74567586", "0.7453445", "0.7453445", "0.74472827", "0.74430853", "0.7434381", "0.740992", "0.7378735", "0.7369217", "0.73692036", "0.73688704", "0.7361795", "0.7352465", "0.7343722", "0.7343722", "0.7343722", "0.7343722", "0.7343722", "0.7343722", "0.7343722", "0.7343722", "0.73221314", "0.7304793", "0.72992134", "0.72769636", "0.7269383", "0.72445095", "0.72397846", "0.7234018", "0.7234018", "0.72310084", "0.722479", "0.722479", "0.7208058", "0.7204312", "0.7190319", "0.7173712", "0.7160308", "0.71596617", "0.7134404", "0.71341556", "0.71048665", "0.7104816", "0.7086377", "0.7034263", "0.70085436", "0.6980654", "0.69503367", "0.6926192", "0.6923085", "0.68934923", "0.6881658", "0.6873649", "0.6846336", "0.6846336", "0.6846336", "0.68457913", "0.68455637", "0.6838886", "0.6835721", "0.6835721", "0.68295723", "0.6828709", "0.68159187", "0.681115", "0.68069315", "0.6806608", "0.67898494", "0.67710835", "0.6761929", "0.67592615", "0.675373", "0.67527324", "0.67501795", "0.6748594", "0.6748043", "0.6747943", "0.6746827", "0.6746827", "0.6728847", "0.6728847", "0.6728847", "0.6728847" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.paymentMethods attribute.
public List<BrainTreePaymentInfo> getPaymentMethods(final SessionContext ctx) { List<BrainTreePaymentInfo> coll = (List<BrainTreePaymentInfo>)getProperty( ctx, PAYMENTMETHODS); return coll != null ? coll : Collections.EMPTY_LIST; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<BrainTreePaymentInfo> getPaymentMethods()\n\t{\n\t\treturn getPaymentMethods( getSession().getSessionContext() );\n\t}", "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getUnactivatedPaymentMethods();", "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();", "PaymentMethod getPaymentMethod();", "public List<PaymentEntity> getPaymentMethods() {\n return entityManager.createNamedQuery(\"getAllPaymentMethods\", PaymentEntity.class).getResultList();\n\n }", "public String getPaymentMethod() {\n\t\treturn paymentMethod;\n\t}", "@ApiModelProperty(value = \"List of payment options that are supported\")\n public List<PaymentOptionsEnum> getPaymentOptions() {\n return paymentOptions;\n }", "@org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.PaymentMethod getPaymentMethod();", "public List<CoinbasePaymentMethod> getCoinbasePaymentMethods() throws IOException {\n\n String path = \"/v2/payment-methods\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n\n return coinbase.getPaymentMethods(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "List<PaymentMethode> getSupportedPaymentMethods(AbstractOrder order);", "public void setPaymentMethods(final List<BrainTreePaymentInfo> value)\n\t{\n\t\tsetPaymentMethods( getSession().getSessionContext(), value );\n\t}", "public Payment[] getPaymentInfo(){\n \t\n \treturn paymentArr;\n }", "public void setPaymentMethods(final SessionContext ctx, final List<BrainTreePaymentInfo> value)\n\t{\n\t\tsetProperty(ctx, PAYMENTMETHODS,value == null || !value.isEmpty() ? value : null );\n\t}", "@Override\n public String getPaymentMethodCode() {\n return this.getAdvanceTravelPayment().getPaymentMethodCode();\n }", "io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();", "public String getPaymentType() {\r\n return paymentType;\r\n }", "public String getPayMethod() {\n return payMethod;\n }", "public abstract java.util.Set getPaymentTypes();", "public AppCDef.PaymentMethod getPaymentMethodCodeAsPaymentMethod() {\n return AppCDef.PaymentMethod.codeOf(getPaymentMethodCode());\n }", "public static String getPaymentMethods(String account){\n return \"select pm_method from payment_methods where pm_account = '\"+account+\"'\";\n }", "public List<Method> getMethod_list() {\n\t\treturn arrayMethods;\n\t}", "public Collection<VOPaymentType> getEnabledPaymentTypes() {\n return paymentInfoBean.getEnabledPaymentTypes(\n Long.valueOf(model.getService().getKey()),\n getAccountingService());\n }", "PaymentTermsType getPaymentTerms();", "public PaymentType getPaymentType()\n {\n return PAYMENT_TYPE;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPaymentDetails() {\n return instance.getSerializedPaymentDetails();\n }", "@WebMethod public LinkedList<CreditCard> getAllPaymentMethods(Account user);", "public int[] getPaymentCardNumber() {\n\t\treturn paymentCardNumber;\n\t}", "public PaymentProviderType getPaymentProviderType() {\n return paymentProviderType;\n }", "public String getAccountPayment() {\r\n return accountPayment;\r\n }", "public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}", "@Bean\n public PaymentOptions paymentOptions() {\n return new PaymentOptions(\n Arrays.asList(examplePaymentMethodHandler())\n );\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPaymentUrlBytes() {\n return instance.getPaymentUrlBytes();\n }", "public java.lang.String getPaymenttype () {\r\n\t\treturn paymenttype;\r\n\t}", "public List<String> getSupportedCreditCardTypes() {\n return mSupportedCreditCardTypes;\n }", "public List<MonetaryRuleType> getPaymentRuleList() {\n return paymentRuleList;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPaymentUrlBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(paymentUrl_);\n }", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "public String getPaymentAmountType() {\r\n return paymentAmountType;\r\n }", "public ArrayList<Method> getMethods() {\n\t\treturn arrayMethods;\n\t}", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return paymentUrl_;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPaymentDetails() {\n return serializedPaymentDetails_;\n }", "public long getPaymentType() {\n return paymentType;\n }", "public PaymentType getPaymentType() {\n\t\treturn paymentType;\n\t}", "public String getPaymentData() {\n return paymentData;\n }", "public Object getPaymentMode() {\n\t\treturn null;\n\t}", "@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return instance.getPayment();\n }", "public String[] getMethods() {\n\t\treturn methods;\n\t}", "public com.jspgou.cms.entity.Payment getPayment () {\r\n\t\treturn payment;\r\n\t}", "public abstract PaymentType getPaymentType();", "public ArrayList<PaymentPO> getPayment() throws RemoteException {\n\t\treturn null;\r\n\t}", "public java.lang.String getPaymentGateway() {\n return paymentGateway;\n }", "void setPaymentMethod(PaymentMethod paymentMethod);", "public Payment getPayment() {\n\t\treturn this.payment;\n\t}", "public List<ServiceMethod> getMethodList()\n {\n return Collections.unmodifiableList(methods);\n }", "public io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentMethod result = io.opencannabis.schema.commerce.Payments.PaymentMethod.valueOf(method_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentMethod.UNRECOGNIZED : result;\n }", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return instance.getPaymentUrl();\n }", "public int getPaymentNum() {\n \treturn this.paymentNum;\n }", "public io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentMethod result = io.opencannabis.schema.commerce.Payments.PaymentMethod.valueOf(method_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentMethod.UNRECOGNIZED : result;\n }", "public List<SelectItem> loadComboPaymentType() {\n\t\tlistPaymentType = new ArrayList<SelectItem>();\n\t\tlistPaymentType.add(new SelectItem(ContantsUtil.PaymentType.PAYMENT_TYPE_PREPAID,\n\t\t\t\tContantsUtil.PaymentType.PAYMENT_TYPE_PREPAID_NAME));\n\t\tlistPaymentType.add(new SelectItem(ContantsUtil.PaymentType.PAYMENT_TYPE_POSTPAID,\n\t\t\t\tContantsUtil.PaymentType.PAYMENT_TYPE_POSTPAID_NAME));\n\t\treturn listPaymentType;\n\t}", "CashSettlementMethodEnum getCashSettlementMethod();", "public BigDecimal getBALLOON_PAYMENT() {\r\n return BALLOON_PAYMENT;\r\n }", "public boolean verifyPaymentMethodDisabled() {\n\t\treturn !divPaymentMethod.isEnabled();\n\t}", "@NotNull(message = \"empty.paymentType\")\n public PaymentType getPaymentType() {\n\n return paymentType;\n }", "public String getCreditCardType();", "public String getPaymentTypeName() {\n return paymentTypeName;\n }", "@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return payment_ == null ? com.dogecoin.protocols.payments.Protos.Payment.getDefaultInstance() : payment_;\n }", "public List<Payment> getAllPayments() {\n\t\treturn null;\r\n\t}", "public void setPayMethod(String value) {\n this.payMethod = value;\n }", "public void setPaymentMethodCode_CreditCard() {\n setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod.CreditCard);\n }", "public Payment getPayment(){\n return payment;\n }", "public String getPaymentPlatform() {\n\t\treturn paymentPlatform;\n\t}", "public ArrayList<String> getNullMethods() {\n\t\treturn methods;\n\t}", "@NotNull\n public PaymentType getPaymentType(){\n if(payment.size() == 1){\n return payment.get(0).getPaymentType();\n }else if(payment.size() > 1){\n return PaymentType.SPLIT;\n }\n return PaymentType.UNPAID;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "public String getPayment() {\n if(payment==null) { payment = \"\"; }\n return payment;\n }", "public List<AvailableShippingMethod> getAvailableShippingMethods() {\n return (List<AvailableShippingMethod>) get(\"available_shipping_methods\");\n }", "List<MethodNode> getMethods() {\n return this.classNode.methods;\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();", "public io.opencannabis.schema.commerce.CommercialOrder.OrderPaymentOrBuilder getPaymentOrBuilder() {\n return getPayment();\n }", "public java.lang.String getModePfPayment () {\n\t\treturn modePfPayment;\n\t}", "public static MethodClass getMethods (){\n\t\treturn methods;\n\t}", "public String getPAYMENT_TYPE() {\r\n return PAYMENT_TYPE;\r\n }", "public String getPaymentInstanceCode() {\n\t\treturn paymentInstanceCode;\n\t}", "public java.lang.String getPaymentinformation () {\r\n\t\treturn paymentinformation;\r\n\t}", "public int getDownPayment() {\n return downPayment;\n }", "@ApiModelProperty(value = \"The payment amount for the past due invoices. This value must match the pastDueBalance value retrieved using Get Past Due Invoices.\")\n public String getPaymentAmount() {\n return paymentAmount;\n }", "@ApiModelProperty(value = \"Status of the payment\")\n public PaymentStatusEnum getPaymentStatus() {\n return paymentStatus;\n }", "public List<VOPaymentType> getAvailablePaymentTypesForCreation() {\n return paymentInfoBean.getAvailablePaymentTypesForCreation(\n model.getService().getKey(), getAccountingService());\n }", "public PaymentTypeObject[] getAllPaymentTypes() throws AppException;", "public java.lang.String getPaymentTerm() {\n return paymentTerm;\n }", "public void setPaymentMethod(String paymentMethod) {\n\t\tthis.paymentMethod = paymentMethod;\n\t}", "@JsonGetter(\"payment_id\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getPaymentId() {\r\n return paymentId;\r\n }", "@Override\n\tpublic java.lang.String getPayment() {\n\t\treturn _esfShooterAffiliationChrono.getPayment();\n\t}", "public String getIncomingPaymentBic() {\n return incomingPaymentBic;\n }", "@Override\r\n\tpublic void setPaymentType() {\n\t\tthis.paymentType = PaymentType.YINLIAN;\r\n\t}", "public PaymentType typeOfPayment() {\n\t\treturn category.Comision;\n\t}", "String getPaymentInformation();", "public PaymentGatewayType getType() {\n return this.paymentGatewayType;\n }", "public\tList<ChangedJsMethod>\tgetChangedMethods() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.changedMethods);\n\t}", "public AuthMethod[] getAuthMethods() {\n\t\treturn authMethods.clone();\n\t}" ]
[ "0.69463116", "0.69032", "0.67746556", "0.6440185", "0.63766056", "0.6304154", "0.62808204", "0.6208506", "0.6173835", "0.59729856", "0.5966507", "0.5919726", "0.5916433", "0.5789859", "0.5771277", "0.5727959", "0.56615627", "0.56203824", "0.5544168", "0.5531386", "0.5530465", "0.55109876", "0.55079526", "0.55072564", "0.5506226", "0.5495543", "0.54886675", "0.54815644", "0.54759824", "0.5467627", "0.54377097", "0.54185295", "0.53874564", "0.5377523", "0.5367123", "0.53627914", "0.5348201", "0.53433067", "0.53414506", "0.53029853", "0.5302506", "0.5294165", "0.528637", "0.52812505", "0.5263047", "0.5262567", "0.52384955", "0.5235137", "0.5217308", "0.517573", "0.51675195", "0.51611644", "0.5131771", "0.51138437", "0.51036185", "0.50917834", "0.5090399", "0.50807196", "0.5065708", "0.5064596", "0.5057311", "0.5052397", "0.5046254", "0.50323343", "0.5023513", "0.5019998", "0.5019889", "0.5018374", "0.5015983", "0.50116533", "0.5008366", "0.49880618", "0.49866748", "0.49866447", "0.4982795", "0.49801934", "0.49701115", "0.49554187", "0.494476", "0.49422547", "0.492661", "0.49202403", "0.48934373", "0.48910975", "0.488953", "0.48804203", "0.48773745", "0.48725808", "0.486941", "0.48612598", "0.4853323", "0.4853202", "0.48531085", "0.4836164", "0.4836142", "0.483559", "0.48337117", "0.48090023", "0.4801548", "0.47999826" ]
0.6667716
3
Generated method Getter of the BraintreeCustomerDetails.paymentMethods attribute.
public List<BrainTreePaymentInfo> getPaymentMethods() { return getPaymentMethods( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getUnactivatedPaymentMethods();", "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();", "public List<BrainTreePaymentInfo> getPaymentMethods(final SessionContext ctx)\n\t{\n\t\tList<BrainTreePaymentInfo> coll = (List<BrainTreePaymentInfo>)getProperty( ctx, PAYMENTMETHODS);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "PaymentMethod getPaymentMethod();", "public List<PaymentEntity> getPaymentMethods() {\n return entityManager.createNamedQuery(\"getAllPaymentMethods\", PaymentEntity.class).getResultList();\n\n }", "public String getPaymentMethod() {\n\t\treturn paymentMethod;\n\t}", "@ApiModelProperty(value = \"List of payment options that are supported\")\n public List<PaymentOptionsEnum> getPaymentOptions() {\n return paymentOptions;\n }", "@org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.PaymentMethod getPaymentMethod();", "public List<CoinbasePaymentMethod> getCoinbasePaymentMethods() throws IOException {\n\n String path = \"/v2/payment-methods\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n\n return coinbase.getPaymentMethods(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "List<PaymentMethode> getSupportedPaymentMethods(AbstractOrder order);", "public void setPaymentMethods(final List<BrainTreePaymentInfo> value)\n\t{\n\t\tsetPaymentMethods( getSession().getSessionContext(), value );\n\t}", "public Payment[] getPaymentInfo(){\n \t\n \treturn paymentArr;\n }", "public void setPaymentMethods(final SessionContext ctx, final List<BrainTreePaymentInfo> value)\n\t{\n\t\tsetProperty(ctx, PAYMENTMETHODS,value == null || !value.isEmpty() ? value : null );\n\t}", "@Override\n public String getPaymentMethodCode() {\n return this.getAdvanceTravelPayment().getPaymentMethodCode();\n }", "io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();", "public String getPaymentType() {\r\n return paymentType;\r\n }", "public String getPayMethod() {\n return payMethod;\n }", "public abstract java.util.Set getPaymentTypes();", "public AppCDef.PaymentMethod getPaymentMethodCodeAsPaymentMethod() {\n return AppCDef.PaymentMethod.codeOf(getPaymentMethodCode());\n }", "public List<Method> getMethod_list() {\n\t\treturn arrayMethods;\n\t}", "public static String getPaymentMethods(String account){\n return \"select pm_method from payment_methods where pm_account = '\"+account+\"'\";\n }", "public Collection<VOPaymentType> getEnabledPaymentTypes() {\n return paymentInfoBean.getEnabledPaymentTypes(\n Long.valueOf(model.getService().getKey()),\n getAccountingService());\n }", "PaymentTermsType getPaymentTerms();", "@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPaymentDetails() {\n return instance.getSerializedPaymentDetails();\n }", "public PaymentType getPaymentType()\n {\n return PAYMENT_TYPE;\n }", "@WebMethod public LinkedList<CreditCard> getAllPaymentMethods(Account user);", "public int[] getPaymentCardNumber() {\n\t\treturn paymentCardNumber;\n\t}", "public PaymentProviderType getPaymentProviderType() {\n return paymentProviderType;\n }", "public String getAccountPayment() {\r\n return accountPayment;\r\n }", "public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}", "@Bean\n public PaymentOptions paymentOptions() {\n return new PaymentOptions(\n Arrays.asList(examplePaymentMethodHandler())\n );\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPaymentUrlBytes() {\n return instance.getPaymentUrlBytes();\n }", "public java.lang.String getPaymenttype () {\r\n\t\treturn paymenttype;\r\n\t}", "public List<String> getSupportedCreditCardTypes() {\n return mSupportedCreditCardTypes;\n }", "public List<MonetaryRuleType> getPaymentRuleList() {\n return paymentRuleList;\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPaymentUrlBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(paymentUrl_);\n }", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "public ArrayList<Method> getMethods() {\n\t\treturn arrayMethods;\n\t}", "public String getPaymentAmountType() {\r\n return paymentAmountType;\r\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getSerializedPaymentDetails() {\n return serializedPaymentDetails_;\n }", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return paymentUrl_;\n }", "public long getPaymentType() {\n return paymentType;\n }", "public PaymentType getPaymentType() {\n\t\treturn paymentType;\n\t}", "public String getPaymentData() {\n return paymentData;\n }", "public Object getPaymentMode() {\n\t\treturn null;\n\t}", "@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return instance.getPayment();\n }", "public String[] getMethods() {\n\t\treturn methods;\n\t}", "public com.jspgou.cms.entity.Payment getPayment () {\r\n\t\treturn payment;\r\n\t}", "public abstract PaymentType getPaymentType();", "public ArrayList<PaymentPO> getPayment() throws RemoteException {\n\t\treturn null;\r\n\t}", "public java.lang.String getPaymentGateway() {\n return paymentGateway;\n }", "void setPaymentMethod(PaymentMethod paymentMethod);", "public Payment getPayment() {\n\t\treturn this.payment;\n\t}", "public List<ServiceMethod> getMethodList()\n {\n return Collections.unmodifiableList(methods);\n }", "public io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentMethod result = io.opencannabis.schema.commerce.Payments.PaymentMethod.valueOf(method_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentMethod.UNRECOGNIZED : result;\n }", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return instance.getPaymentUrl();\n }", "public int getPaymentNum() {\n \treturn this.paymentNum;\n }", "public io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod() {\n @SuppressWarnings(\"deprecation\")\n io.opencannabis.schema.commerce.Payments.PaymentMethod result = io.opencannabis.schema.commerce.Payments.PaymentMethod.valueOf(method_);\n return result == null ? io.opencannabis.schema.commerce.Payments.PaymentMethod.UNRECOGNIZED : result;\n }", "public List<SelectItem> loadComboPaymentType() {\n\t\tlistPaymentType = new ArrayList<SelectItem>();\n\t\tlistPaymentType.add(new SelectItem(ContantsUtil.PaymentType.PAYMENT_TYPE_PREPAID,\n\t\t\t\tContantsUtil.PaymentType.PAYMENT_TYPE_PREPAID_NAME));\n\t\tlistPaymentType.add(new SelectItem(ContantsUtil.PaymentType.PAYMENT_TYPE_POSTPAID,\n\t\t\t\tContantsUtil.PaymentType.PAYMENT_TYPE_POSTPAID_NAME));\n\t\treturn listPaymentType;\n\t}", "CashSettlementMethodEnum getCashSettlementMethod();", "public BigDecimal getBALLOON_PAYMENT() {\r\n return BALLOON_PAYMENT;\r\n }", "public boolean verifyPaymentMethodDisabled() {\n\t\treturn !divPaymentMethod.isEnabled();\n\t}", "@NotNull(message = \"empty.paymentType\")\n public PaymentType getPaymentType() {\n\n return paymentType;\n }", "public String getCreditCardType();", "public String getPaymentTypeName() {\n return paymentTypeName;\n }", "public List<Payment> getAllPayments() {\n\t\treturn null;\r\n\t}", "@java.lang.Override\n public com.dogecoin.protocols.payments.Protos.Payment getPayment() {\n return payment_ == null ? com.dogecoin.protocols.payments.Protos.Payment.getDefaultInstance() : payment_;\n }", "public void setPayMethod(String value) {\n this.payMethod = value;\n }", "public void setPaymentMethodCode_CreditCard() {\n setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod.CreditCard);\n }", "public Payment getPayment(){\n return payment;\n }", "public String getPaymentPlatform() {\n\t\treturn paymentPlatform;\n\t}", "public ArrayList<String> getNullMethods() {\n\t\treturn methods;\n\t}", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "@NotNull\n public PaymentType getPaymentType(){\n if(payment.size() == 1){\n return payment.get(0).getPaymentType();\n }else if(payment.size() > 1){\n return PaymentType.SPLIT;\n }\n return PaymentType.UNPAID;\n }", "public List<AvailableShippingMethod> getAvailableShippingMethods() {\n return (List<AvailableShippingMethod>) get(\"available_shipping_methods\");\n }", "public String getPayment() {\n if(payment==null) { payment = \"\"; }\n return payment;\n }", "List<MethodNode> getMethods() {\n return this.classNode.methods;\n }", "io.opencannabis.schema.commerce.CommercialOrder.OrderPayment getPayment();", "public io.opencannabis.schema.commerce.CommercialOrder.OrderPaymentOrBuilder getPaymentOrBuilder() {\n return getPayment();\n }", "public java.lang.String getModePfPayment () {\n\t\treturn modePfPayment;\n\t}", "public static MethodClass getMethods (){\n\t\treturn methods;\n\t}", "public String getPAYMENT_TYPE() {\r\n return PAYMENT_TYPE;\r\n }", "public String getPaymentInstanceCode() {\n\t\treturn paymentInstanceCode;\n\t}", "public java.lang.String getPaymentinformation () {\r\n\t\treturn paymentinformation;\r\n\t}", "public int getDownPayment() {\n return downPayment;\n }", "@ApiModelProperty(value = \"The payment amount for the past due invoices. This value must match the pastDueBalance value retrieved using Get Past Due Invoices.\")\n public String getPaymentAmount() {\n return paymentAmount;\n }", "@ApiModelProperty(value = \"Status of the payment\")\n public PaymentStatusEnum getPaymentStatus() {\n return paymentStatus;\n }", "public List<VOPaymentType> getAvailablePaymentTypesForCreation() {\n return paymentInfoBean.getAvailablePaymentTypesForCreation(\n model.getService().getKey(), getAccountingService());\n }", "public PaymentTypeObject[] getAllPaymentTypes() throws AppException;", "public java.lang.String getPaymentTerm() {\n return paymentTerm;\n }", "@JsonGetter(\"payment_id\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n public String getPaymentId() {\r\n return paymentId;\r\n }", "@Override\n\tpublic java.lang.String getPayment() {\n\t\treturn _esfShooterAffiliationChrono.getPayment();\n\t}", "public void setPaymentMethod(String paymentMethod) {\n\t\tthis.paymentMethod = paymentMethod;\n\t}", "public String getIncomingPaymentBic() {\n return incomingPaymentBic;\n }", "public PaymentType typeOfPayment() {\n\t\treturn category.Comision;\n\t}", "@Override\r\n\tpublic void setPaymentType() {\n\t\tthis.paymentType = PaymentType.YINLIAN;\r\n\t}", "String getPaymentInformation();", "public PaymentGatewayType getType() {\n return this.paymentGatewayType;\n }", "public\tList<ChangedJsMethod>\tgetChangedMethods() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.changedMethods);\n\t}", "public AuthMethod[] getAuthMethods() {\n\t\treturn authMethods.clone();\n\t}" ]
[ "0.6904281", "0.6775635", "0.6669008", "0.6438986", "0.6378848", "0.63043416", "0.6281462", "0.6207155", "0.6176909", "0.5972917", "0.5966346", "0.59213513", "0.59163487", "0.57897323", "0.5770863", "0.5726961", "0.5660724", "0.5621017", "0.55451363", "0.5534329", "0.553347", "0.5512998", "0.5506789", "0.5506753", "0.55064577", "0.5496359", "0.5489742", "0.54800653", "0.5476543", "0.546733", "0.5436607", "0.54184574", "0.53865546", "0.5377533", "0.53674275", "0.5362408", "0.5347373", "0.5346087", "0.5342365", "0.5302582", "0.5302425", "0.5292896", "0.5285596", "0.5281589", "0.52626926", "0.52617836", "0.5242571", "0.5234418", "0.5215276", "0.5177455", "0.5167176", "0.51594126", "0.51313823", "0.5116803", "0.5103628", "0.50912756", "0.50899065", "0.5080692", "0.5067168", "0.50637144", "0.5058282", "0.50516635", "0.5044874", "0.50303847", "0.5022958", "0.5022672", "0.5019403", "0.5016889", "0.50146234", "0.50104666", "0.5008454", "0.4991558", "0.49898276", "0.49857065", "0.49823004", "0.49820903", "0.49726415", "0.4954396", "0.49450105", "0.49422967", "0.49297348", "0.4919857", "0.48932907", "0.48913315", "0.48884413", "0.48800516", "0.48765618", "0.48742345", "0.48712847", "0.48604164", "0.4853557", "0.4852826", "0.48525506", "0.48371065", "0.4835131", "0.48349896", "0.48335633", "0.48080742", "0.48054287", "0.48043784" ]
0.69484323
0
Generated method Setter of the BraintreeCustomerDetails.paymentMethods attribute.
public void setPaymentMethods(final SessionContext ctx, final List<BrainTreePaymentInfo> value) { setProperty(ctx, PAYMENTMETHODS,value == null || !value.isEmpty() ? value : null ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPaymentMethods(final List<BrainTreePaymentInfo> value)\n\t{\n\t\tsetPaymentMethods( getSession().getSessionContext(), value );\n\t}", "void setPaymentMethod(PaymentMethod paymentMethod);", "public abstract void setPaymentTypes(java.util.Set paymentTypes);", "public void setPayMethod(String value) {\n this.payMethod = value;\n }", "public PaymentMethodsSearchFilters setPaymentMethodsTypes(List<PaymentMethodsTypesEnum> paymentMethodsTypes) {\n if (paymentMethodsTypes != null) {\n this.paymentMethodsTypes = new ArrayList<>();\n paymentMethodsTypes.forEach(transactionType ->\n this.paymentMethodsTypes.add(transactionType.getValue())\n );\n }\n return this;\n }", "@Override\r\n\tpublic void setPaymentType() {\n\t\tthis.paymentType = PaymentType.YINLIAN;\r\n\t}", "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();", "public void setPaymentMethod(String paymentMethod) {\n\t\tthis.paymentMethod = paymentMethod;\n\t}", "public void setPaymentMethodCode_CreditCard() {\n setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod.CreditCard);\n }", "@ApiModelProperty(value = \"List of payment options that are supported\")\n public List<PaymentOptionsEnum> getPaymentOptions() {\n return paymentOptions;\n }", "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getUnactivatedPaymentMethods();", "public List<BrainTreePaymentInfo> getPaymentMethods()\n\t{\n\t\treturn getPaymentMethods( getSession().getSessionContext() );\n\t}", "PaymentMethod getPaymentMethod();", "@Bean\n public PaymentOptions paymentOptions() {\n return new PaymentOptions(\n Arrays.asList(examplePaymentMethodHandler())\n );\n }", "public\tvoid\tsetRemovedMethods(List<JsClass.Method> removedMethods) {\n\t\tthis.removedMethods = removedMethods;\n\t}", "public String getPaymentMethod() {\n\t\treturn paymentMethod;\n\t}", "public List<BrainTreePaymentInfo> getPaymentMethods(final SessionContext ctx)\n\t{\n\t\tList<BrainTreePaymentInfo> coll = (List<BrainTreePaymentInfo>)getProperty( ctx, PAYMENTMETHODS);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public Builder setMethod(io.opencannabis.schema.commerce.Payments.PaymentMethod value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n method_ = value.getNumber();\n onChanged();\n return this;\n }", "public boolean setPaymentProcessor() {\n return setPaymentProcessor(getTenderType(), getCreditCardType());\n }", "public abstract void populatePeripheralMethods(@Nonnull final List<ComputerMethod> methods);", "@org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.PaymentMethod getPaymentMethod();", "List<PaymentMethode> getSupportedPaymentMethods(AbstractOrder order);", "public void setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod cdef) {\n setPaymentMethodCode(cdef != null ? cdef.code() : null);\n }", "public C5610m mo17763a(C6889d paymentMethod) {\n this.f9489a = paymentMethod;\n return this;\n }", "public List<CoinbasePaymentMethod> getCoinbasePaymentMethods() throws IOException {\n\n String path = \"/v2/payment-methods\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n\n return coinbase.getPaymentMethods(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "@Override\n public String getPaymentMethodCode() {\n return this.getAdvanceTravelPayment().getPaymentMethodCode();\n }", "public List<PaymentEntity> getPaymentMethods() {\n return entityManager.createNamedQuery(\"getAllPaymentMethods\", PaymentEntity.class).getResultList();\n\n }", "public void setC_Payment_ID (int C_Payment_ID);", "public void setPaymentMethodCode_BankTransfer() {\n setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod.BankTransfer);\n }", "public void setCreditCardType (String CreditCardType);", "public String getPayMethod() {\n return payMethod;\n }", "@JsonSetter(\"blockPayphone\")\r\n public void setBlockPayphone (boolean value) { \r\n this.blockPayphone = value;\r\n }", "private void setPayment(com.dogecoin.protocols.payments.Protos.Payment value) {\n value.getClass();\n payment_ = value;\n bitField0_ |= 0x00000001;\n }", "public abstract java.util.Set getPaymentTypes();", "@WebMethod public LinkedList<CreditCard> getAllPaymentMethods(Account user);", "public ConnectInfo setAuthMethods(AuthMethod... authMethods) {\n\t\tthis.authMethods = authMethods;\n\t\treturn this;\n\t}", "io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();", "private void setPaymentUrl(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n paymentUrl_ = value;\n }", "public String getPaymentType() {\r\n return paymentType;\r\n }", "public void setSupportedCreditCardTypes(List<String> pSupportedCreditCardTypes) {\n mSupportedCreditCardTypes = pSupportedCreditCardTypes;\n }", "void setPaymentInformation(String information);", "@Override\n\tpublic void setPayment(java.lang.String payment) {\n\t\t_esfShooterAffiliationChrono.setPayment(payment);\n\t}", "public void setDownPayment(int value) {\n this.downPayment = value;\n }", "private void setPaymentDetailsVersion(int value) {\n bitField0_ |= 0x00000001;\n paymentDetailsVersion_ = value;\n }", "public void setAuthMethods(int authMethods) throws FrameException {\n try {\n ByteBuffer byteBuffer = new ByteBuffer(ByteBuffer.SIZE_16BITS);\n byteBuffer.put16bits(authMethods);\n infoElements.put(new Integer(InfoElement.AUTHMETHODS), byteBuffer.getBuffer());\n } catch (Exception e) {\n throw new FrameException(e);\n }\n }", "public static String getPaymentMethods(String account){\n return \"select pm_method from payment_methods where pm_account = '\"+account+\"'\";\n }", "private void setPaymentUrlBytes(\n com.google.protobuf.ByteString value) {\n paymentUrl_ = value.toStringUtf8();\n bitField0_ |= 0x00000010;\n }", "public boolean verifyPaymentMethodDisabled() {\n\t\treturn !divPaymentMethod.isEnabled();\n\t}", "public void setPaymentType(PaymentType paymentType) {\n\n this.paymentType = paymentType;\n }", "public void setPaymentInfoInCart(CreditCard cc);", "public void selectPaymentMethod(String payment) {\n\t\tif (payment == \"Cashless\")\n\t\t\tdriver.findElement(By.id(\"payBtn1\")).click();\n\t\tif (payment == \"Cash\")\n\t\t\tdriver.findElement(By.id(\"payBtn2\")).click();\n\t\tif (payment == \"Special\")\n\t\t\tdriver.findElement(By.id(\"payBtn3\")).click();\n\t}", "private void setSerializedPaymentDetails(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000008;\n serializedPaymentDetails_ = value;\n }", "public void chosePaymentMethod(String paymentMode) {\n\t\tswitch (paymentMode) {\n\t\tcase \"COD\":\n\t\t\tPayMethod = new cashOnDelivery();\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"creditCard\":\n\t\t\tPayMethod = new creditCard();\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"debitCard\":\n\t\t\tPayMethod = new debitCard();\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"netBanking\":\n\t\t\tPayMethod =new netBanking();\n\t\t\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tPayMethod =null;\n\t\t\tbreak;\n\t\t}\n\n\t}", "public\tvoid\tsetAddedMethods(List<JsClass.Method> addedMethods) {\n\t\tthis.addedMethods = addedMethods;\n\t}", "public void setLBR_PartialPayment (String LBR_PartialPayment);", "protected void setPaymentCardNumber(int[] paymentCardNumber) {\n\t\tthis.paymentCardNumber = paymentCardNumber;\n\t}", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "public void setTestPayment(boolean isTestPayment) {\n\t\tthis.isTestPayment = isTestPayment;\n\t}", "public void setPaymentURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PAYMENTURL, value);\r\n\t}", "public AppCDef.PaymentMethod getPaymentMethodCodeAsPaymentMethod() {\n return AppCDef.PaymentMethod.codeOf(getPaymentMethodCode());\n }", "public interface CarPaymentMethod {\n\n /**\n * Choose PayPal payment option\n */\n CarPaymentMethod processPayPal();\n\n /**\n * Choose HotDollars payment option\n */\n CarPaymentMethod processHotDollars();\n\n /**\n * Choose CreditCard payment option\n */\n CarPaymentMethod processCreditCard();\n\n /**\n * Choosing saved payment methods\n */\n\n CarPaymentMethod processSavedVisa(String securityCode);\n\n CarPaymentMethod processSavedMasterCard(String securityCode);\n\n /**\n * Getting payment buttons\n */\n\n WebElement getPayPalRadioButton();\n\n WebElement getHotDollarsButton();\n\n WebElement getCreditCardField();\n\n WebElement getSavedCreditCardButton();\n\n WebElement getSavedVisaButton();\n\n WebElement getSavedMasterCardButton();\n\n String getNameOfChosenPaymentMethod();\n\n boolean isHotDollarsModuleAvailable();\n\n String getHotDollarsMessage();\n\n WebElement getPaymentOptionCreditCard();\n\n /**\n * Input card holder's initials for credit card\n */\n CarPaymentMethod cardHolder(String firstName, String lastName);\n\n /**\n * Input credit card attributes\n */\n CarPaymentMethod creditCardNumber(String cardNumber);\n\n CarPaymentMethod expDate(String cardExpMonth, String cardExpYear);\n\n CarPaymentMethod creditCardSecurityCode(String cardSecCode);\n\n CarPaymentMethod savedVisaSecurityCode(String cardSecCode);\n\n /**\n * Fill in card holder's address information\n */\n CarPaymentMethod city(String city);\n\n CarPaymentMethod country(String country);\n\n CarPaymentMethod state(String state);\n\n CarPaymentMethod billingAddress(String address);\n\n CarPaymentMethod zipCode(String zipCode);\n\n CarPaymentMethod continuePanel();\n\n /**\n * Filling PayPal payment fields\n */\n CarPaymentMethod payPalUser(String firstName, String lastName);\n\n CarPaymentMethod payPalAddress(String address);\n\n CarPaymentMethod payPalCity(String city);\n\n CarPaymentMethod payPalState(String state);\n\n CarPaymentMethod payPalZipCode(String zip);\n\n /**\n * Verify that billing section is present on the page\n */\n boolean isBillingSectionPresent();\n\n /**\n * Verify that billing section has only one Credit Card payment method\n */\n boolean isCreditCardIsSingleAvailablePayment();\n\n void saveMyInformation();\n\n void savePaymentInformation();\n\n WebElement getPasswordField();\n\n WebElement getConfirmPasswordField();\n\n boolean isSaveMyInfoExpanded();\n\n void chooseCreditCardPaymentMethod();\n\n boolean isSavedPaymentPresent();\n\n void typeCreditCardNameField(String ccNumber);\n\n\n}", "public void setPayAmt (BigDecimal PayAmt);", "private void setMethods(Class<?> token) {\n List<Method> newMethods = new ArrayList<>();\n for (Method method : token.getDeclaredMethods()) {\n if (methods.add(new MethodWithHash(method)) && !method.isDefault()) {\n newMethods.add(method);\n }\n }\n for (Method method : newMethods) {\n Type returnType = method.getReturnType();\n StringBuilder body = new StringBuilder(\"return\");\n if (((Class) returnType).isPrimitive()) {\n if (returnType.equals(boolean.class)) {\n body.append(\" false\");\n } else if (!returnType.equals(void.class)) {\n body.append(\" 0\");\n }\n } else {\n body.append(\" null\");\n }\n body.append(\";\");\n setExecutable(method, ((Class) returnType).getCanonicalName(), body, false);\n }\n }", "public ConfiguredObjectMethodOperationTransformer(final List<T> methods)\n {\n super();\n _methods = new ArrayList<>(methods);\n }", "public String getPaymentAmountType() {\r\n return paymentAmountType;\r\n }", "public PaymentProviderType getPaymentProviderType() {\n return paymentProviderType;\n }", "public void setAccountPayment(String accountPayment) {\r\n this.accountPayment = accountPayment;\r\n }", "PaymentTermsType getPaymentTerms();", "public void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);", "@WebMethod public void addPaymentMethod(Account user,CreditCard e);", "public void setPaymentCurrency(String paymentCurrency) {\n _paymentCurrency = paymentCurrency;\n }", "public void setRateBookCalcRoutines(entity.RateBookCalcRoutine[] value);", "public String getAccountPayment() {\r\n return accountPayment;\r\n }", "public void setMotors(double rate) {\n\t\tclimberMotor1.set(rate);\n\t}", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "public void setPaymentType(Integer paymentType) {\n\t\tthis.paymentType = paymentType;\n\t}", "public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);", "public ThreeDSecureRequest addPaymentMethod(String paymentMethod) {\n this.paymentMethod = paymentMethod;\n return this;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setPaymentType(String paymentType) {\r\n this.paymentType = paymentType == null ? null : paymentType.trim();\r\n }", "PaymentMethodCode(String description, Integer value) {\n this.description = description;\n this.value = value;\n }", "public void setProtectedBranches(List<String> protectedBranches) {\n\t\tString protectedBranch = VerigreenMap.get(\"_protectedBranches\");\n\t\tString localBranchesRoot = CollectorApi.getSourceControlOperator().getLocalBranchesRoot();\n\n\t\tfor(String branch : protectedBranches)\n\t\t{\n\t\t\tprotectedBranch+=\",\"+localBranchesRoot+branch;\n\t\t}\n\t\tVerigreenMap.put(\"_protectedBranches\", protectedBranch);\n\t}", "public void setAllow(Set<HttpMethod> allowedMethods)\r\n/* 132: */ {\r\n/* 133:200 */ set(\"Allow\", StringUtils.collectionToCommaDelimitedString(allowedMethods));\r\n/* 134: */ }", "public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}", "public T enableMethods(List<String> enabledMethods) {\n this.enabledMethods = Objects.requireNonNullElse(enabledMethods, new ArrayList<>());\n return self();\n }", "public void setPaymentTerm(java.lang.String paymentTerm) {\n this.paymentTerm = paymentTerm;\n }", "public List<Method> getMethod_list() {\n\t\treturn arrayMethods;\n\t}", "public void setPaymentType(PaymentType paymentType) {\n\t\tthis.paymentType = paymentType;\n\t}", "public Set getExcludeMethods() {\n return mExcludeMethods;\n }", "public Builder encryptionMethods(final EncryptionMethod... encs) {\n\n\t\t\tencryptionMethods(new HashSet<>(Arrays.asList(encs)));\n\t\t\treturn this;\n\t\t}", "@FXML\r\n void samePaymentMethod(ActionEvent event) {\r\n \trbChangeCreditNumber.setSelected(false);\r\n \trbtnPreviousCreditCard.setSelected(true);\r\n \tsetCreditCardBooleanBinding();\r\n \ttfIDNumber.setDisable(true);\r\n \tdpCreditCardExpiryDate.setDisable(true);\r\n \ttfCreditCard1.setDisable(true);\r\n \ttfCreditCard2.setDisable(true);\r\n \ttfCreditCard3.setDisable(true);\r\n \ttfCreditCard4.setDisable(true);\r\n }", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return paymentUrl_;\n }", "public PaymentMethod()\n {\n }", "public Payment[] getPaymentInfo(){\n \t\n \treturn paymentArr;\n }", "public void setPaymentPlatform(String paymentPlatform) {\n\t\tthis.paymentPlatform = paymentPlatform == null ? null : paymentPlatform\n\t\t\t\t.trim();\n\t}", "public List<String> getSupportedCreditCardTypes() {\n return mSupportedCreditCardTypes;\n }", "public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }", "public PaymentmethodRecord() {\n super(Paymentmethod.PAYMENTMETHOD);\n }", "public java.lang.String getPaymenttype () {\r\n\t\treturn paymenttype;\r\n\t}", "public int[] getPaymentCardNumber() {\n\t\treturn paymentCardNumber;\n\t}" ]
[ "0.7148753", "0.6329379", "0.59352744", "0.5801189", "0.579563", "0.55153555", "0.5466332", "0.53524554", "0.53308296", "0.5330241", "0.5320859", "0.5172571", "0.5171124", "0.5157715", "0.5146702", "0.51274616", "0.5017751", "0.49979815", "0.4995478", "0.49642774", "0.49007753", "0.48905134", "0.48766482", "0.48688808", "0.48405993", "0.4825692", "0.48168033", "0.4802332", "0.47847718", "0.47488812", "0.4730997", "0.4719799", "0.47050023", "0.4674718", "0.46546036", "0.4653486", "0.46337128", "0.46139354", "0.45859945", "0.45687452", "0.45657444", "0.4543259", "0.45204642", "0.452006", "0.45167795", "0.4484736", "0.44635707", "0.4446169", "0.44338", "0.44335487", "0.44186687", "0.4412431", "0.44117105", "0.4411697", "0.43986174", "0.4391452", "0.43878543", "0.43796235", "0.43749034", "0.4371252", "0.43676051", "0.43673038", "0.43629563", "0.43580416", "0.4352442", "0.43358397", "0.43338788", "0.4333303", "0.43324566", "0.4321263", "0.4314096", "0.4291257", "0.4286616", "0.42860058", "0.42828143", "0.4274707", "0.42673618", "0.426472", "0.42564398", "0.4252703", "0.4251968", "0.423593", "0.42341658", "0.4229923", "0.42283797", "0.42269492", "0.42244878", "0.4220536", "0.42155644", "0.42073146", "0.4204204", "0.4202441", "0.4184627", "0.41793135", "0.4175415", "0.4174643", "0.4173389", "0.41703454", "0.41686958", "0.41680995" ]
0.69530123
1
Generated method Setter of the BraintreeCustomerDetails.paymentMethods attribute.
public void setPaymentMethods(final List<BrainTreePaymentInfo> value) { setPaymentMethods( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPaymentMethods(final SessionContext ctx, final List<BrainTreePaymentInfo> value)\n\t{\n\t\tsetProperty(ctx, PAYMENTMETHODS,value == null || !value.isEmpty() ? value : null );\n\t}", "void setPaymentMethod(PaymentMethod paymentMethod);", "public abstract void setPaymentTypes(java.util.Set paymentTypes);", "public void setPayMethod(String value) {\n this.payMethod = value;\n }", "public PaymentMethodsSearchFilters setPaymentMethodsTypes(List<PaymentMethodsTypesEnum> paymentMethodsTypes) {\n if (paymentMethodsTypes != null) {\n this.paymentMethodsTypes = new ArrayList<>();\n paymentMethodsTypes.forEach(transactionType ->\n this.paymentMethodsTypes.add(transactionType.getValue())\n );\n }\n return this;\n }", "@Override\r\n\tpublic void setPaymentType() {\n\t\tthis.paymentType = PaymentType.YINLIAN;\r\n\t}", "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();", "public void setPaymentMethod(String paymentMethod) {\n\t\tthis.paymentMethod = paymentMethod;\n\t}", "@ApiModelProperty(value = \"List of payment options that are supported\")\n public List<PaymentOptionsEnum> getPaymentOptions() {\n return paymentOptions;\n }", "public void setPaymentMethodCode_CreditCard() {\n setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod.CreditCard);\n }", "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getUnactivatedPaymentMethods();", "public List<BrainTreePaymentInfo> getPaymentMethods()\n\t{\n\t\treturn getPaymentMethods( getSession().getSessionContext() );\n\t}", "PaymentMethod getPaymentMethod();", "@Bean\n public PaymentOptions paymentOptions() {\n return new PaymentOptions(\n Arrays.asList(examplePaymentMethodHandler())\n );\n }", "public\tvoid\tsetRemovedMethods(List<JsClass.Method> removedMethods) {\n\t\tthis.removedMethods = removedMethods;\n\t}", "public String getPaymentMethod() {\n\t\treturn paymentMethod;\n\t}", "public List<BrainTreePaymentInfo> getPaymentMethods(final SessionContext ctx)\n\t{\n\t\tList<BrainTreePaymentInfo> coll = (List<BrainTreePaymentInfo>)getProperty( ctx, PAYMENTMETHODS);\n\t\treturn coll != null ? coll : Collections.EMPTY_LIST;\n\t}", "public Builder setMethod(io.opencannabis.schema.commerce.Payments.PaymentMethod value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n method_ = value.getNumber();\n onChanged();\n return this;\n }", "public boolean setPaymentProcessor() {\n return setPaymentProcessor(getTenderType(), getCreditCardType());\n }", "public abstract void populatePeripheralMethods(@Nonnull final List<ComputerMethod> methods);", "@org.jetbrains.annotations.Nullable()\n public abstract com.stripe.android.model.PaymentMethod getPaymentMethod();", "List<PaymentMethode> getSupportedPaymentMethods(AbstractOrder order);", "public void setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod cdef) {\n setPaymentMethodCode(cdef != null ? cdef.code() : null);\n }", "public C5610m mo17763a(C6889d paymentMethod) {\n this.f9489a = paymentMethod;\n return this;\n }", "public List<CoinbasePaymentMethod> getCoinbasePaymentMethods() throws IOException {\n\n String path = \"/v2/payment-methods\";\n String apiKey = exchange.getExchangeSpecification().getApiKey();\n BigDecimal timestamp = coinbase.getTime(Coinbase.CB_VERSION_VALUE).getData().getEpoch();\n String signature = getSignature(timestamp, path);\n showCurl(apiKey, timestamp, signature, path);\n\n return coinbase.getPaymentMethods(Coinbase.CB_VERSION_VALUE, apiKey, signature, timestamp).getData();\n }", "@Override\n public String getPaymentMethodCode() {\n return this.getAdvanceTravelPayment().getPaymentMethodCode();\n }", "public List<PaymentEntity> getPaymentMethods() {\n return entityManager.createNamedQuery(\"getAllPaymentMethods\", PaymentEntity.class).getResultList();\n\n }", "public void setC_Payment_ID (int C_Payment_ID);", "public void setPaymentMethodCode_BankTransfer() {\n setPaymentMethodCodeAsPaymentMethod(AppCDef.PaymentMethod.BankTransfer);\n }", "public void setCreditCardType (String CreditCardType);", "public String getPayMethod() {\n return payMethod;\n }", "@JsonSetter(\"blockPayphone\")\r\n public void setBlockPayphone (boolean value) { \r\n this.blockPayphone = value;\r\n }", "private void setPayment(com.dogecoin.protocols.payments.Protos.Payment value) {\n value.getClass();\n payment_ = value;\n bitField0_ |= 0x00000001;\n }", "public abstract java.util.Set getPaymentTypes();", "@WebMethod public LinkedList<CreditCard> getAllPaymentMethods(Account user);", "public ConnectInfo setAuthMethods(AuthMethod... authMethods) {\n\t\tthis.authMethods = authMethods;\n\t\treturn this;\n\t}", "io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();", "private void setPaymentUrl(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n paymentUrl_ = value;\n }", "public String getPaymentType() {\r\n return paymentType;\r\n }", "public void setSupportedCreditCardTypes(List<String> pSupportedCreditCardTypes) {\n mSupportedCreditCardTypes = pSupportedCreditCardTypes;\n }", "void setPaymentInformation(String information);", "@Override\n\tpublic void setPayment(java.lang.String payment) {\n\t\t_esfShooterAffiliationChrono.setPayment(payment);\n\t}", "public void setDownPayment(int value) {\n this.downPayment = value;\n }", "public void setAuthMethods(int authMethods) throws FrameException {\n try {\n ByteBuffer byteBuffer = new ByteBuffer(ByteBuffer.SIZE_16BITS);\n byteBuffer.put16bits(authMethods);\n infoElements.put(new Integer(InfoElement.AUTHMETHODS), byteBuffer.getBuffer());\n } catch (Exception e) {\n throw new FrameException(e);\n }\n }", "private void setPaymentDetailsVersion(int value) {\n bitField0_ |= 0x00000001;\n paymentDetailsVersion_ = value;\n }", "public static String getPaymentMethods(String account){\n return \"select pm_method from payment_methods where pm_account = '\"+account+\"'\";\n }", "private void setPaymentUrlBytes(\n com.google.protobuf.ByteString value) {\n paymentUrl_ = value.toStringUtf8();\n bitField0_ |= 0x00000010;\n }", "public boolean verifyPaymentMethodDisabled() {\n\t\treturn !divPaymentMethod.isEnabled();\n\t}", "public void setPaymentType(PaymentType paymentType) {\n\n this.paymentType = paymentType;\n }", "public void setPaymentInfoInCart(CreditCard cc);", "public void selectPaymentMethod(String payment) {\n\t\tif (payment == \"Cashless\")\n\t\t\tdriver.findElement(By.id(\"payBtn1\")).click();\n\t\tif (payment == \"Cash\")\n\t\t\tdriver.findElement(By.id(\"payBtn2\")).click();\n\t\tif (payment == \"Special\")\n\t\t\tdriver.findElement(By.id(\"payBtn3\")).click();\n\t}", "public void chosePaymentMethod(String paymentMode) {\n\t\tswitch (paymentMode) {\n\t\tcase \"COD\":\n\t\t\tPayMethod = new cashOnDelivery();\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"creditCard\":\n\t\t\tPayMethod = new creditCard();\n\t\t\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"debitCard\":\n\t\t\tPayMethod = new debitCard();\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"netBanking\":\n\t\t\tPayMethod =new netBanking();\n\t\t\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tPayMethod =null;\n\t\t\tbreak;\n\t\t}\n\n\t}", "private void setSerializedPaymentDetails(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000008;\n serializedPaymentDetails_ = value;\n }", "public\tvoid\tsetAddedMethods(List<JsClass.Method> addedMethods) {\n\t\tthis.addedMethods = addedMethods;\n\t}", "public void setLBR_PartialPayment (String LBR_PartialPayment);", "protected void setPaymentCardNumber(int[] paymentCardNumber) {\n\t\tthis.paymentCardNumber = paymentCardNumber;\n\t}", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "public void setTestPayment(boolean isTestPayment) {\n\t\tthis.isTestPayment = isTestPayment;\n\t}", "public AppCDef.PaymentMethod getPaymentMethodCodeAsPaymentMethod() {\n return AppCDef.PaymentMethod.codeOf(getPaymentMethodCode());\n }", "public void setPaymentURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PAYMENTURL, value);\r\n\t}", "public interface CarPaymentMethod {\n\n /**\n * Choose PayPal payment option\n */\n CarPaymentMethod processPayPal();\n\n /**\n * Choose HotDollars payment option\n */\n CarPaymentMethod processHotDollars();\n\n /**\n * Choose CreditCard payment option\n */\n CarPaymentMethod processCreditCard();\n\n /**\n * Choosing saved payment methods\n */\n\n CarPaymentMethod processSavedVisa(String securityCode);\n\n CarPaymentMethod processSavedMasterCard(String securityCode);\n\n /**\n * Getting payment buttons\n */\n\n WebElement getPayPalRadioButton();\n\n WebElement getHotDollarsButton();\n\n WebElement getCreditCardField();\n\n WebElement getSavedCreditCardButton();\n\n WebElement getSavedVisaButton();\n\n WebElement getSavedMasterCardButton();\n\n String getNameOfChosenPaymentMethod();\n\n boolean isHotDollarsModuleAvailable();\n\n String getHotDollarsMessage();\n\n WebElement getPaymentOptionCreditCard();\n\n /**\n * Input card holder's initials for credit card\n */\n CarPaymentMethod cardHolder(String firstName, String lastName);\n\n /**\n * Input credit card attributes\n */\n CarPaymentMethod creditCardNumber(String cardNumber);\n\n CarPaymentMethod expDate(String cardExpMonth, String cardExpYear);\n\n CarPaymentMethod creditCardSecurityCode(String cardSecCode);\n\n CarPaymentMethod savedVisaSecurityCode(String cardSecCode);\n\n /**\n * Fill in card holder's address information\n */\n CarPaymentMethod city(String city);\n\n CarPaymentMethod country(String country);\n\n CarPaymentMethod state(String state);\n\n CarPaymentMethod billingAddress(String address);\n\n CarPaymentMethod zipCode(String zipCode);\n\n CarPaymentMethod continuePanel();\n\n /**\n * Filling PayPal payment fields\n */\n CarPaymentMethod payPalUser(String firstName, String lastName);\n\n CarPaymentMethod payPalAddress(String address);\n\n CarPaymentMethod payPalCity(String city);\n\n CarPaymentMethod payPalState(String state);\n\n CarPaymentMethod payPalZipCode(String zip);\n\n /**\n * Verify that billing section is present on the page\n */\n boolean isBillingSectionPresent();\n\n /**\n * Verify that billing section has only one Credit Card payment method\n */\n boolean isCreditCardIsSingleAvailablePayment();\n\n void saveMyInformation();\n\n void savePaymentInformation();\n\n WebElement getPasswordField();\n\n WebElement getConfirmPasswordField();\n\n boolean isSaveMyInfoExpanded();\n\n void chooseCreditCardPaymentMethod();\n\n boolean isSavedPaymentPresent();\n\n void typeCreditCardNameField(String ccNumber);\n\n\n}", "public void setPayAmt (BigDecimal PayAmt);", "private void setMethods(Class<?> token) {\n List<Method> newMethods = new ArrayList<>();\n for (Method method : token.getDeclaredMethods()) {\n if (methods.add(new MethodWithHash(method)) && !method.isDefault()) {\n newMethods.add(method);\n }\n }\n for (Method method : newMethods) {\n Type returnType = method.getReturnType();\n StringBuilder body = new StringBuilder(\"return\");\n if (((Class) returnType).isPrimitive()) {\n if (returnType.equals(boolean.class)) {\n body.append(\" false\");\n } else if (!returnType.equals(void.class)) {\n body.append(\" 0\");\n }\n } else {\n body.append(\" null\");\n }\n body.append(\";\");\n setExecutable(method, ((Class) returnType).getCanonicalName(), body, false);\n }\n }", "public ConfiguredObjectMethodOperationTransformer(final List<T> methods)\n {\n super();\n _methods = new ArrayList<>(methods);\n }", "public String getPaymentAmountType() {\r\n return paymentAmountType;\r\n }", "public PaymentProviderType getPaymentProviderType() {\n return paymentProviderType;\n }", "PaymentTermsType getPaymentTerms();", "public void setTaxAmtPriceList (BigDecimal TaxAmtPriceList);", "public void setAccountPayment(String accountPayment) {\r\n this.accountPayment = accountPayment;\r\n }", "@WebMethod public void addPaymentMethod(Account user,CreditCard e);", "public void setPaymentCurrency(String paymentCurrency) {\n _paymentCurrency = paymentCurrency;\n }", "public void setRateBookCalcRoutines(entity.RateBookCalcRoutine[] value);", "public String getAccountPayment() {\r\n return accountPayment;\r\n }", "public void setMotors(double rate) {\n\t\tclimberMotor1.set(rate);\n\t}", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "public void setPaymentType(Integer paymentType) {\n\t\tthis.paymentType = paymentType;\n\t}", "public void setLBR_TaxAmtCredit (BigDecimal LBR_TaxAmtCredit);", "public ThreeDSecureRequest addPaymentMethod(String paymentMethod) {\n this.paymentMethod = paymentMethod;\n return this;\n }", "public void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);", "public void setPaymentType(String paymentType) {\r\n this.paymentType = paymentType == null ? null : paymentType.trim();\r\n }", "PaymentMethodCode(String description, Integer value) {\n this.description = description;\n this.value = value;\n }", "public void setProtectedBranches(List<String> protectedBranches) {\n\t\tString protectedBranch = VerigreenMap.get(\"_protectedBranches\");\n\t\tString localBranchesRoot = CollectorApi.getSourceControlOperator().getLocalBranchesRoot();\n\n\t\tfor(String branch : protectedBranches)\n\t\t{\n\t\t\tprotectedBranch+=\",\"+localBranchesRoot+branch;\n\t\t}\n\t\tVerigreenMap.put(\"_protectedBranches\", protectedBranch);\n\t}", "public void setAllow(Set<HttpMethod> allowedMethods)\r\n/* 132: */ {\r\n/* 133:200 */ set(\"Allow\", StringUtils.collectionToCommaDelimitedString(allowedMethods));\r\n/* 134: */ }", "public Integer getPaymentType() {\n\t\treturn paymentType;\n\t}", "public T enableMethods(List<String> enabledMethods) {\n this.enabledMethods = Objects.requireNonNullElse(enabledMethods, new ArrayList<>());\n return self();\n }", "public void setPaymentTerm(java.lang.String paymentTerm) {\n this.paymentTerm = paymentTerm;\n }", "public List<Method> getMethod_list() {\n\t\treturn arrayMethods;\n\t}", "public void setPaymentType(PaymentType paymentType) {\n\t\tthis.paymentType = paymentType;\n\t}", "public Set getExcludeMethods() {\n return mExcludeMethods;\n }", "public Builder encryptionMethods(final EncryptionMethod... encs) {\n\n\t\t\tencryptionMethods(new HashSet<>(Arrays.asList(encs)));\n\t\t\treturn this;\n\t\t}", "@FXML\r\n void samePaymentMethod(ActionEvent event) {\r\n \trbChangeCreditNumber.setSelected(false);\r\n \trbtnPreviousCreditCard.setSelected(true);\r\n \tsetCreditCardBooleanBinding();\r\n \ttfIDNumber.setDisable(true);\r\n \tdpCreditCardExpiryDate.setDisable(true);\r\n \ttfCreditCard1.setDisable(true);\r\n \ttfCreditCard2.setDisable(true);\r\n \ttfCreditCard3.setDisable(true);\r\n \ttfCreditCard4.setDisable(true);\r\n }", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return paymentUrl_;\n }", "public PaymentMethod()\n {\n }", "public Payment[] getPaymentInfo(){\n \t\n \treturn paymentArr;\n }", "public List<String> getSupportedCreditCardTypes() {\n return mSupportedCreditCardTypes;\n }", "public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }", "public void setPaymentPlatform(String paymentPlatform) {\n\t\tthis.paymentPlatform = paymentPlatform == null ? null : paymentPlatform\n\t\t\t\t.trim();\n\t}", "public PaymentmethodRecord() {\n super(Paymentmethod.PAYMENTMETHOD);\n }", "public java.lang.String getPaymenttype () {\r\n\t\treturn paymenttype;\r\n\t}", "public T disableMethods(List<String> disabledMethods) {\n this.disabledMethods = Objects.requireNonNullElse(disabledMethods, new ArrayList<>());\n return self();\n }" ]
[ "0.6953598", "0.6328986", "0.59312034", "0.58020836", "0.57953036", "0.551521", "0.5467643", "0.5352108", "0.53318375", "0.53294295", "0.5323604", "0.51745987", "0.5172993", "0.51584595", "0.5145475", "0.5128515", "0.50205576", "0.4999929", "0.49930835", "0.49638003", "0.49036732", "0.48925823", "0.48761427", "0.48692268", "0.48433122", "0.4827289", "0.48190522", "0.4798583", "0.47843355", "0.47470528", "0.47325867", "0.47193664", "0.47022703", "0.46741316", "0.4656476", "0.46547517", "0.46354714", "0.4610326", "0.45862544", "0.45658886", "0.45630068", "0.4541903", "0.45198175", "0.45178854", "0.45170534", "0.44862714", "0.44614875", "0.4448339", "0.44330406", "0.4431341", "0.44183055", "0.4411095", "0.440998", "0.4409579", "0.4398312", "0.43878886", "0.4387715", "0.4377682", "0.43726882", "0.43721643", "0.43678716", "0.43674204", "0.43624762", "0.43584058", "0.43529317", "0.43368688", "0.4335022", "0.43319952", "0.43317813", "0.43214718", "0.43129817", "0.42913124", "0.4286438", "0.42855278", "0.4282824", "0.42732036", "0.42669162", "0.42654157", "0.42524529", "0.42512402", "0.42509207", "0.4234168", "0.42330715", "0.4230005", "0.42279345", "0.42265874", "0.42257202", "0.4219705", "0.42173153", "0.4207786", "0.4203443", "0.42010775", "0.41851023", "0.41789728", "0.41742596", "0.41730106", "0.41724852", "0.4171866", "0.41685376", "0.4168306" ]
0.7148619
0
Generated method Getter of the BraintreeCustomerDetails.phone attribute.
public String getPhone(final SessionContext ctx) { return (String)getProperty( ctx, PHONE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomerPhone() {\n return customerPhone;\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public String getPhone() {\n return _phone;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\n return phone;\n }", "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public final String getPhone() {\n return phone;\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone(){\n\t\treturn phone;\n\t}", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public String getPhone() {\n return mPhone;\n }", "public String getPhone() {\n return mPhone;\n }", "public java.lang.String getPhone() {\n return phone;\n }", "public Phone getPhone() {\n\t\treturn phone;\n\t}", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "public long getPhone() {\n return phone;\n }", "public java.lang.String getPhone () {\n\t\treturn phone;\n\t}", "public String getMobilePhone() {\n return mobilePhone;\n }", "public String getPhoneNumber() {\r\n return phoneNumber;\r\n }", "public String getContactPhone() {\n return contactPhone;\n }", "public String getContactPhone() {\n return contactPhone;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber(){\r\n\t\treturn phoneNumber;\r\n\t}", "public String getaPhone() {\n return aPhone;\n }", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "public String getPhone(){\n return phone;\n }", "public String getPhone(){\n return phone;\n }", "public String getPhoneNumber() {\n return this.phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getPhoneNum()\r\n {\r\n return phoneNum;\r\n }", "public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }", "public String getPhone_number() {\n return phone_number;\n }", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}", "public String getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public String getPhoneNumber() {\n\t\treturn this.phoneNumber;\n\t}", "@ApiModelProperty(value = \"Phone number of customer\")\n public String getCustomerPhoneNumber() {\n return customerPhoneNumber;\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}", "public String getPhoneNumber()\n\t{\n\t\treturn this._phoneNumber;\n\t}", "public String getPhoneNumber() {\n return mPhoneNumber;\n }", "public String getPhone() {\r\n // Bouml preserved body begin 00040C82\r\n\t return phoneNumber;\r\n // Bouml preserved body end 00040C82\r\n }", "java.lang.String getPhone();", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n phone_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPhone_number() {\n return phone_number;\n }", "public String getUserPhone() {\r\n return userPhone;\r\n }", "public com.google.protobuf.ByteString\n getPhoneBytes() {\n java.lang.Object ref = phone_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n phone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "public com.google.protobuf.ByteString\n getPhoneBytes() {\n java.lang.Object ref = phone_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n phone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@AutoEscape\n\tpublic String getPhone();", "public java.lang.String getMobilePhone() {\r\n return mobilePhone;\r\n }", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "@XmlElement\n public String getMobilePhone() {\n return mobilePhone;\n }", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n phone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "@ApiModelProperty(value = \"手机\")\n\tpublic String getPhone() {\n\t\treturn phone;\n\t}", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "public String getPhoneNumber(){\n return phone_number;\n }", "@java.lang.Override\n public com.google.protobuf.StringValue getPhoneNumber() {\n return phoneNumber_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : phoneNumber_;\n }", "public String getTelephoneNumber(){\n return telephoneNumber;\n }", "public String getTelephoneNumber() {\n\t\treturn telephoneNumber;\n\t}" ]
[ "0.82180977", "0.80515563", "0.8050548", "0.80303705", "0.80303705", "0.80303705", "0.80303705", "0.80303705", "0.80303705", "0.801841", "0.80144465", "0.8006985", "0.79794455", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.7968458", "0.79177743", "0.78885466", "0.7848558", "0.7848558", "0.7843238", "0.7762281", "0.7727014", "0.7713811", "0.7713811", "0.76995486", "0.7677987", "0.7632691", "0.7632435", "0.7619083", "0.7619083", "0.761202", "0.761202", "0.761202", "0.761202", "0.761202", "0.761202", "0.761202", "0.761202", "0.761202", "0.760961", "0.76025087", "0.7591564", "0.757419", "0.757419", "0.7568958", "0.7562337", "0.75604635", "0.75604635", "0.75604635", "0.75335485", "0.75335485", "0.75335485", "0.7529117", "0.751275", "0.74993813", "0.74967766", "0.7481352", "0.74749386", "0.7467398", "0.7458322", "0.7451258", "0.74423665", "0.74241287", "0.74025714", "0.7397852", "0.73747194", "0.7370191", "0.73558754", "0.735176", "0.7351563", "0.7351293", "0.7348805", "0.7348625", "0.734159", "0.7337895", "0.73275965", "0.7304208", "0.72977734", "0.7291919", "0.7284741", "0.72808933", "0.7276583", "0.72596073", "0.72122633", "0.7206419", "0.719425", "0.718811" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.phone attribute.
public String getPhone() { return getPhone( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomerPhone() {\n return customerPhone;\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public String getPhone() {\n return _phone;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\n return phone;\n }", "@Override\n public java.lang.String getPhone() {\n return _entityCustomer.getPhone();\n }", "public final String getPhone() {\n return phone;\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone(){\n\t\treturn phone;\n\t}", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public String getPhone() {\n return mPhone;\n }", "public String getPhone() {\n return mPhone;\n }", "public java.lang.String getPhone() {\n return phone;\n }", "public Phone getPhone() {\n\t\treturn phone;\n\t}", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public String getTelephone() {\n return telephone;\n }", "public String getTelephone() {\n return telephone;\n }", "public long getPhone() {\n return phone;\n }", "public java.lang.String getPhone () {\n\t\treturn phone;\n\t}", "public String getMobilePhone() {\n return mobilePhone;\n }", "public String getPhoneNumber() {\r\n return phoneNumber;\r\n }", "public String getContactPhone() {\n return contactPhone;\n }", "public String getContactPhone() {\n return contactPhone;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNumber(){\r\n\t\treturn phoneNumber;\r\n\t}", "public String getaPhone() {\n return aPhone;\n }", "public String getTelephone() {\n return (String) get(\"telephone\");\n }", "public String getPhone(){\n return phone;\n }", "public String getPhone(){\n return phone;\n }", "public String getPhoneNumber() {\n return this.phoneNumber;\n }", "public String getPhoneNumber() {\n return phoneNumber;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getPhoneNum() {\n return phoneNum;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getPhoneNum()\r\n {\r\n return phoneNum;\r\n }", "public String getPhoneNum()\r\n {\r\n\treturn phoneNum;\r\n }", "public String getPhone_number() {\n return phone_number;\n }", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public long getPhoneNumber() {\r\n\t\treturn phoneNumber;\r\n\t}", "public String getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public String getPhoneNumber() {\n\t\treturn this.phoneNumber;\n\t}", "@ApiModelProperty(value = \"Phone number of customer\")\n public String getCustomerPhoneNumber() {\n return customerPhoneNumber;\n }", "public String getTelephoneNumber() {\n return telephoneNumber;\n }", "public String getphoneNum() {\n\t\treturn _phoneNum;\n\t}", "public String getPhoneNumber()\n\t{\n\t\treturn this._phoneNumber;\n\t}", "public String getPhoneNumber() {\n return mPhoneNumber;\n }", "public String getPhone() {\r\n // Bouml preserved body begin 00040C82\r\n\t return phoneNumber;\r\n // Bouml preserved body end 00040C82\r\n }", "java.lang.String getPhone();", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n phone_ = s;\n }\n return s;\n }\n }", "public java.lang.String getPhone_number() {\n return phone_number;\n }", "public String getUserPhone() {\r\n return userPhone;\r\n }", "public com.google.protobuf.ByteString\n getPhoneBytes() {\n java.lang.Object ref = phone_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n phone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getPhoneNumber() {\n\t\treturn phoneNumber;\n\t}", "public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }", "@Override\n public String getPhoneNumber() {\n\n if(this.phoneNumber == null){\n\n this.phoneNumber = TestDatabase.getInstance().getClientField(token, id, \"phoneNumber\");\n }\n\n return phoneNumber;\n }", "public com.google.protobuf.ByteString\n getPhoneBytes() {\n java.lang.Object ref = phone_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n phone_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@AutoEscape\n\tpublic String getPhone();", "public java.lang.String getMobilePhone() {\r\n return mobilePhone;\r\n }", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "@XmlElement\n public String getMobilePhone() {\n return mobilePhone;\n }", "public java.lang.String getPhone() {\n java.lang.Object ref = phone_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n phone_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getPhone() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(PHONE_PROP.get());\n }", "@ApiModelProperty(value = \"手机\")\n\tpublic String getPhone() {\n\t\treturn phone;\n\t}", "public java.lang.CharSequence getPhoneNumber() {\n return phone_number;\n }", "public String getPhoneNumber(){\n return phone_number;\n }", "@java.lang.Override\n public com.google.protobuf.StringValue getPhoneNumber() {\n return phoneNumber_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : phoneNumber_;\n }", "public String getTelephoneNumber(){\n return telephoneNumber;\n }", "public String getTelephoneNumber() {\n\t\treturn telephoneNumber;\n\t}" ]
[ "0.821843", "0.8051932", "0.80507475", "0.80305856", "0.80305856", "0.80305856", "0.80305856", "0.80305856", "0.80305856", "0.80186677", "0.8014245", "0.80068964", "0.7979531", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7968579", "0.7917956", "0.78886217", "0.78483766", "0.78483766", "0.78430057", "0.7762408", "0.77283657", "0.7713634", "0.7713634", "0.7699198", "0.7677782", "0.7632628", "0.7631911", "0.76191527", "0.76191527", "0.76113707", "0.76113707", "0.76113707", "0.76113707", "0.76113707", "0.76113707", "0.76113707", "0.76113707", "0.76113707", "0.7609207", "0.7603289", "0.7591127", "0.75743884", "0.75743884", "0.7568442", "0.75617903", "0.7558821", "0.7558821", "0.7558821", "0.7533162", "0.7533162", "0.7533162", "0.75276214", "0.751125", "0.7498772", "0.74958843", "0.7480527", "0.7474221", "0.7466738", "0.7458549", "0.74503297", "0.7440909", "0.7423515", "0.740178", "0.73974526", "0.73751044", "0.73694766", "0.735503", "0.73513293", "0.735104", "0.73500985", "0.7348127", "0.73476726", "0.7340915", "0.7338671", "0.7327402", "0.7303778", "0.7298241", "0.72913575", "0.7283391", "0.72795665", "0.7277233", "0.7259149", "0.721191", "0.7205363", "0.71936", "0.7187129" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.phone attribute.
public void setPhone(final SessionContext ctx, final String value) { setProperty(ctx, PHONE,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public void setPhone(String phone) {\r\n this.phone = phone;\r\n }", "public void setPhone(String phone)\n {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.mPhone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone( String phone ) {\n this.phone = phone;\n }", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public void setPhone(String phone){\n\t\tthis.phone = phone;\n\t}", "public void setPhone(String phone);", "public void set_phone(String Phone)\n {\n phone =Phone;\n }", "public void setPhone(final String phone) {\n this.phone = phone;\n }", "public void setPhone(java.lang.String phone) {\n this.phone = phone;\n }", "public void setPhone(String mPhone) {\n this.mPhone = mPhone;\n }", "public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }", "public void setPhone(long phone) {\n this.phone = phone;\n }", "public void setPhone (java.lang.String phone) {\n\t\tthis.phone = phone;\n\t}", "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "public void setPhone(String newPhone) {\r\n\t\tthis.phone = newPhone;\r\n\t}", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n\t\tthis.phone = phone == null ? null : phone.trim();\n\t}", "public void setPhone(String phone) {\n\t\tthis.phone = StringUtils.trimString( phone );\n\t}", "public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public String getCustomerPhone() {\n return customerPhone;\n }", "public void setPhoneNum(String phoneNum) {\n this.phoneNum = phoneNum;\n }", "public com.politrons.avro.AvroPerson.Builder setPhoneNumber(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.phone_number = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "@Generated(hash = 1187165439)\n public void setPhone(Phone phone) {\n synchronized (this) {\n this.phone = phone;\n phoneId = phone == null ? null : phone.getId();\n phone__resolvedKey = phoneId;\n }\n }", "public void setphoneNum(String phoneNum) {\n\t\t_phoneNum = phoneNum;\n\t}", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public String getPhone() {\n return _phone;\n }", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public void setMobilePhone(String mobilePhone) {\n this.mobilePhone = mobilePhone;\n }", "public void setContactPhone(String contactPhone) {\n this.contactPhone = contactPhone;\n }", "public void setPhoneNo(String value) {\n setAttributeInternal(PHONENO, value);\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public String getPhone(){\n\t\treturn phone;\n\t}", "public GoldenContactBuilder phone(String value) {\n phone = value;\n return this;\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setPhoneNumber(java.lang.CharSequence value) {\n this.phone_number = value;\n }", "public final void setPhone(final String phoneNew) {\n this.phone = phoneNew;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "void setPhone(int phone);", "public void setPhoneNumber(String phoneNumber) {\n\t\tthis.phoneNumber=phoneNumber;\r\n\t}", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n phone_ = value;\n onChanged();\n return this;\n }", "public void setTelePhone(java.lang.String telePhone) {\r\n this.telePhone = telePhone;\r\n }", "public final String getPhone() {\n return phone;\n }", "public Builder setPhoneNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n phoneNumber_ = value;\n onChanged();\n return this;\n }", "public void setPhoneNumber(String phoneNumber)\n\t{\n\t\tthis._phoneNumber=phoneNumber;\n\t}" ]
[ "0.78211963", "0.7739039", "0.77171993", "0.77059567", "0.7691451", "0.7691451", "0.7691451", "0.7691451", "0.7691451", "0.7691451", "0.7691451", "0.7691451", "0.7691451", "0.7691451", "0.7691451", "0.76886874", "0.7682748", "0.7670853", "0.7632002", "0.76282", "0.754947", "0.75106585", "0.74911815", "0.73828846", "0.7370175", "0.73320013", "0.7317712", "0.73147434", "0.72758657", "0.72758657", "0.72758657", "0.72758657", "0.72758657", "0.72758657", "0.72758657", "0.72686267", "0.72624636", "0.72438675", "0.723783", "0.723783", "0.723783", "0.723783", "0.7223886", "0.7223886", "0.72215635", "0.72150296", "0.72142047", "0.72055835", "0.7205545", "0.7200695", "0.71828413", "0.71658117", "0.7162597", "0.7159947", "0.7142233", "0.7118022", "0.7113615", "0.7113615", "0.7113615", "0.7113615", "0.7113615", "0.7113615", "0.7110239", "0.70807093", "0.707688", "0.7066246", "0.70653063", "0.70653063", "0.70653063", "0.70653063", "0.70653063", "0.70544904", "0.705257", "0.70438164", "0.70438164", "0.7039613", "0.7037657", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.70287645", "0.7005365", "0.69962156", "0.69755524", "0.6973711", "0.6967077", "0.6913249", "0.6872888", "0.6872371" ]
0.0
-1
Generated method Setter of the BraintreeCustomerDetails.phone attribute.
public void setPhone(final String value) { setPhone( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void setPhone(java.lang.String phone) {\n _entityCustomer.setPhone(phone);\n }", "public void setPhone(String phone) {\r\n this.phone = phone;\r\n }", "public void setPhone(String phone)\n {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.mPhone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone(String phone) {\n this.phone = phone;\n }", "public void setPhone( String phone ) {\n this.phone = phone;\n }", "public void setPhone(String phone)\r\n/* 46: */ {\r\n/* 47:58 */ this.phone = phone;\r\n/* 48: */ }", "public void setPhone(String phone){\n\t\tthis.phone = phone;\n\t}", "public void setPhone(String phone);", "public void set_phone(String Phone)\n {\n phone =Phone;\n }", "public void setPhone(final String phone) {\n this.phone = phone;\n }", "public void setPhone(java.lang.String phone) {\n this.phone = phone;\n }", "public void setPhone(String mPhone) {\n this.mPhone = mPhone;\n }", "public void setPhone(String phone) {\r\n // Bouml preserved body begin 00041002\r\n\t this.phoneNumber = phone;\r\n // Bouml preserved body end 00041002\r\n }", "public void setPhone(long phone) {\n this.phone = phone;\n }", "public void setPhone (java.lang.String phone) {\n\t\tthis.phone = phone;\n\t}", "public void setTelephone(String telephone) {\n\t\tthis.telephone = telephone;\n\t}", "public void setPhone(String newPhone) {\r\n\t\tthis.phone = newPhone;\r\n\t}", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n this.phone = phone == null ? null : phone.trim();\n }", "public void setPhone(String phone) {\n\t\tthis.phone = phone == null ? null : phone.trim();\n\t}", "public void setPhone(String phone) {\n\t\tthis.phone = StringUtils.trimString( phone );\n\t}", "public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setPhone(String phone) {\r\n this.phone = phone == null ? null : phone.trim();\r\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public void setTelphone(String telphone) {\n this.telphone = telphone;\n }", "public String getCustomerPhone() {\n return customerPhone;\n }", "public void setPhoneNum(String phoneNum) {\n this.phoneNum = phoneNum;\n }", "public com.politrons.avro.AvroPerson.Builder setPhoneNumber(java.lang.CharSequence value) {\n validate(fields()[3], value);\n this.phone_number = value;\n fieldSetFlags()[3] = true;\n return this; \n }", "public void setphoneNum(String phoneNum) {\n\t\t_phoneNum = phoneNum;\n\t}", "@Generated(hash = 1187165439)\n public void setPhone(Phone phone) {\n synchronized (this) {\n this.phone = phone;\n phoneId = phone == null ? null : phone.getId();\n phone__resolvedKey = phoneId;\n }\n }", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public String getPhone() {\r\n\t\treturn this.phone;\r\n\t}", "public void setPhone(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(PHONE_PROP.get(), value);\n }", "public String getPhone() {\n return _phone;\n }", "@Override\n public String provideCustomerMobilePhone( )\n {\n return _signaleur.getIdTelephone( );\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public String getPhone() {\r\n return phone;\r\n }", "public void setMobilePhone(String mobilePhone) {\n this.mobilePhone = mobilePhone;\n }", "public void setContactPhone(String contactPhone) {\n this.contactPhone = contactPhone;\n }", "public void setPhoneNo(String value) {\n setAttributeInternal(PHONENO, value);\n }", "public String getPhone() {\n\t\treturn phone;\n\t}", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public void setPhoneNumber(String phoneNumber) {\n this.phoneNumber = phoneNumber;\n }", "public String getPhone(){\n\t\treturn phone;\n\t}", "public GoldenContactBuilder phone(String value) {\n phone = value;\n return this;\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setTelephone(String telephone) {\n this.telephone = telephone == null ? null : telephone.trim();\n }", "public void setPhoneNumber(java.lang.CharSequence value) {\n this.phone_number = value;\n }", "public final void setPhone(final String phoneNew) {\n this.phone = phoneNew;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "public String getPhone() {\n return phone;\n }", "void setPhone(int phone);", "public void setPhoneNumber(String phoneNumber) {\n\t\tthis.phoneNumber=phoneNumber;\r\n\t}", "@Override\r\n\tpublic String getPhone() {\n\t\treturn phone;\r\n\t}", "public Builder setPhone(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n phone_ = value;\n onChanged();\n return this;\n }", "public void setTelePhone(java.lang.String telePhone) {\r\n this.telePhone = telePhone;\r\n }", "public final String getPhone() {\n return phone;\n }", "public Builder setPhoneNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n phoneNumber_ = value;\n onChanged();\n return this;\n }", "public void setPhoneNumber(String phoneNumber)\n\t{\n\t\tthis._phoneNumber=phoneNumber;\n\t}" ]
[ "0.78207266", "0.7739306", "0.77176905", "0.77060086", "0.769177", "0.769177", "0.769177", "0.769177", "0.769177", "0.769177", "0.769177", "0.769177", "0.769177", "0.769177", "0.769177", "0.76889443", "0.76830673", "0.76710206", "0.7633281", "0.7628466", "0.7549509", "0.7510873", "0.74913716", "0.7383067", "0.7370225", "0.7331996", "0.73187834", "0.73136276", "0.72750413", "0.72750413", "0.72750413", "0.72750413", "0.72750413", "0.72750413", "0.72750413", "0.7267935", "0.72615683", "0.7244325", "0.72369725", "0.72369725", "0.72369725", "0.72369725", "0.72249234", "0.72249234", "0.7221984", "0.7215654", "0.72153014", "0.72063065", "0.720567", "0.7201631", "0.718336", "0.716626", "0.7163527", "0.7160309", "0.71429044", "0.71183276", "0.71140057", "0.71140057", "0.71140057", "0.71140057", "0.71140057", "0.71140057", "0.7110821", "0.7080591", "0.7077189", "0.70666844", "0.70657206", "0.70657206", "0.70657206", "0.70657206", "0.70657206", "0.70548415", "0.7054435", "0.7043919", "0.7043919", "0.7040227", "0.7036255", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.70292985", "0.7007162", "0.699652", "0.6975886", "0.6975325", "0.69677323", "0.6913481", "0.68739516", "0.687262" ]
0.0
-1
Generated method Getter of the BraintreeCustomerDetails.updatedAt attribute.
public Date getUpdatedAt(final SessionContext ctx) { return (Date)getProperty( ctx, UPDATEDAT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZonedDateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public DateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public DateTime updatedAt() {\n return this.updatedAt;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "public OffsetDateTime updatedAt() {\n return this.updatedAt;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\r\n\t\treturn updatedAt;\r\n\t}", "public Date getUpdatedAt() {\n\t\treturn updatedAt;\n\t}", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder() {\n return getUpdatedAt();\n }", "public io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt() {\n return updatedAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n }", "@JsonProperty(\"updated_at\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "public java.util.Date getLastUpdatedAt() {\n return this.lastUpdatedAt;\n }", "@ApiModelProperty(value = \"Person last updated. (May not be accurate)\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt();", "public io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt() {\n if (updatedAtBuilder_ == null) {\n return updatedAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n } else {\n return updatedAtBuilder_.getMessage();\n }\n }", "public ZonedDateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The timestamp when the incident was updated at.\")\n\n public OffsetDateTime getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedAt()\n\t{\n\t\treturn getUpdatedAt( getSession().getSessionContext() );\n\t}", "public OffsetDateTime updatedDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().updatedDateTime();\n }", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder() {\n if (updatedAtBuilder_ != null) {\n return updatedAtBuilder_.getMessageOrBuilder();\n } else {\n return updatedAt_ == null ?\n io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n }\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public DateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder();", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public Date getCateUpdated() {\n return cateUpdated;\n }", "public Long getUpdateAt() {\n return updateAt;\n }", "@ApiModelProperty(required = true, value = \"last update timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"updated\")\n public Date getUpdated() {\n return updated;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn this.updatedTimestamp;\n\t}", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getUpdated() {\n return mUpdated;\n }", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public java.util.Date getLastUpdatedDateTime() {\n return this.lastUpdatedDateTime;\n }", "public Date getUpdatedDate() {\n return updatedDate;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getUpdatedOn();", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public void setUpdatedAt(Long updatedAt) {\n this.updatedAt = updatedAt;\n }", "@JsonIgnore\n\tpublic Date getLatestUpdate()\n\t{\n\t\treturn latestUpdate;\n\t}", "Date getUpdatedDate();", "public void setUpdatedAt( Date updatedAt ) {\n this.updatedAt = updatedAt;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedDt() {\n\t\treturn updatedDt;\n\t}", "public Timestamp getLastUpdated() {\n return lastUpdated;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public DateTime getUpdateTime() {\n return updated;\n }", "public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getModifiedAt() {\n return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n\t\tthis.updatedAt = updatedAt;\r\n\t}", "@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getLastUpdated() {\n return lastUpdated;\n }", "@Schema(description = \"The datetime on which the worklog was last updated.\")\n public OffsetDateTime getUpdated() {\n return updated;\n }", "@ApiModelProperty(value = \"The date/time this resource was last updated in seconds since unix epoch\")\n public Long getUpdatedDate() {\n return updatedDate;\n }", "@JsonProperty(\"updated_at\")\n public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public java.time.ZonedDateTime getLastModifiedAt() {\n return this.lastModifiedAt;\n }" ]
[ "0.8062886", "0.78668773", "0.76503676", "0.7564819", "0.74946594", "0.74138546", "0.74138546", "0.73911256", "0.732469", "0.732469", "0.732469", "0.73215526", "0.73215526", "0.73215526", "0.73215526", "0.73215526", "0.73215526", "0.73215526", "0.73106706", "0.7291641", "0.7109702", "0.70060146", "0.6982604", "0.6979396", "0.69777626", "0.6958636", "0.6907191", "0.6896531", "0.6877252", "0.6868509", "0.67893755", "0.6727225", "0.6720017", "0.6720017", "0.66573906", "0.6647042", "0.6618283", "0.6608542", "0.6601356", "0.6547589", "0.6491627", "0.64272976", "0.6415231", "0.64087456", "0.6390248", "0.6380254", "0.6373719", "0.6359893", "0.63558084", "0.635416", "0.6353754", "0.63353294", "0.63218015", "0.63218015", "0.62930214", "0.62930214", "0.62929535", "0.62929535", "0.62929064", "0.6262709", "0.62610406", "0.62610406", "0.62610406", "0.6258089", "0.6247443", "0.6247443", "0.6247443", "0.6247443", "0.6247443", "0.6247443", "0.6247443", "0.62279904", "0.6223421", "0.6223421", "0.6223421", "0.6213213", "0.619492", "0.6189371", "0.61883515", "0.61825186", "0.6178751", "0.6178751", "0.6178751", "0.6164605", "0.6159861", "0.61370295", "0.61370295", "0.61370295", "0.6134346", "0.6129001", "0.6123814", "0.6123814", "0.6117473", "0.6113315", "0.60958683", "0.6094712", "0.60779226", "0.6065321", "0.60629874", "0.6059474" ]
0.63461137
51
Generated method Getter of the BraintreeCustomerDetails.updatedAt attribute.
public Date getUpdatedAt() { return getUpdatedAt( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZonedDateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public DateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public DateTime updatedAt() {\n return this.updatedAt;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "public OffsetDateTime updatedAt() {\n return this.updatedAt;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\r\n\t\treturn updatedAt;\r\n\t}", "public Date getUpdatedAt() {\n\t\treturn updatedAt;\n\t}", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder() {\n return getUpdatedAt();\n }", "public io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt() {\n return updatedAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n }", "@JsonProperty(\"updated_at\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "public java.util.Date getLastUpdatedAt() {\n return this.lastUpdatedAt;\n }", "@ApiModelProperty(value = \"Person last updated. (May not be accurate)\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt();", "public io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt() {\n if (updatedAtBuilder_ == null) {\n return updatedAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n } else {\n return updatedAtBuilder_.getMessage();\n }\n }", "public ZonedDateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The timestamp when the incident was updated at.\")\n\n public OffsetDateTime getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public OffsetDateTime updatedDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().updatedDateTime();\n }", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder() {\n if (updatedAtBuilder_ != null) {\n return updatedAtBuilder_.getMessageOrBuilder();\n } else {\n return updatedAt_ == null ?\n io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n }\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public DateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder();", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "public Date getCateUpdated() {\n return cateUpdated;\n }", "public Long getUpdateAt() {\n return updateAt;\n }", "@ApiModelProperty(required = true, value = \"last update timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"updated\")\n public Date getUpdated() {\n return updated;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn this.updatedTimestamp;\n\t}", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getUpdated() {\n return mUpdated;\n }", "public Date getUpdatedDate() {\n return (Date) getAttributeInternal(UPDATEDDATE);\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public java.util.Date getLastUpdatedDateTime() {\n return this.lastUpdatedDateTime;\n }", "public Date getUpdatedAt(final SessionContext ctx)\n\t{\n\t\treturn (Date)getProperty( ctx, UPDATEDAT);\n\t}", "public Date getUpdatedDate() {\n return updatedDate;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\n return updated;\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public Date getUpdated() {\r\n return updated;\r\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getUpdatedOn();", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public java.util.Date getUpdated()\r\n {\r\n return getSemanticObject().getDateProperty(swb_updated);\r\n }", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public void setUpdatedAt(Long updatedAt) {\n this.updatedAt = updatedAt;\n }", "@JsonIgnore\n\tpublic Date getLatestUpdate()\n\t{\n\t\treturn latestUpdate;\n\t}", "Date getUpdatedDate();", "public void setUpdatedAt( Date updatedAt ) {\n this.updatedAt = updatedAt;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedTime() {\n return updatedTime;\n }", "public Date getUpdatedDt() {\n\t\treturn updatedDt;\n\t}", "public Timestamp getLastUpdated() {\n return lastUpdated;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public DateTime getUpdateTime() {\n return updated;\n }", "public Date getUpdated() {\r\n\t\treturn updated;\r\n\t}", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdateDate() {\n return (Date) getAttributeInternal(LASTUPDATEDATE);\n }", "public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }", "@java.lang.Override\n public com.google.protobuf.Timestamp getModifiedAt() {\n return modifiedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifiedAt_;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n\t\tthis.updatedAt = updatedAt;\r\n\t}", "@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getLastUpdated() {\n return lastUpdated;\n }", "@Schema(description = \"The datetime on which the worklog was last updated.\")\n public OffsetDateTime getUpdated() {\n return updated;\n }", "@ApiModelProperty(value = \"The date/time this resource was last updated in seconds since unix epoch\")\n public Long getUpdatedDate() {\n return updatedDate;\n }", "@JsonProperty(\"updated_at\")\n public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public java.time.ZonedDateTime getLastModifiedAt() {\n return this.lastModifiedAt;\n }" ]
[ "0.80627716", "0.78667474", "0.7650867", "0.7564258", "0.74947685", "0.7413916", "0.7413916", "0.7391063", "0.73248595", "0.73248595", "0.73248595", "0.73217773", "0.73217773", "0.73217773", "0.73217773", "0.73217773", "0.73217773", "0.73217773", "0.7310776", "0.72917444", "0.71094173", "0.7005563", "0.6982482", "0.69794476", "0.69767743", "0.6958598", "0.6906562", "0.6896063", "0.68775856", "0.6868343", "0.67890996", "0.6726815", "0.67196256", "0.67196256", "0.6647035", "0.661748", "0.66082036", "0.66014165", "0.654784", "0.64911026", "0.64272004", "0.64150196", "0.64091915", "0.6390342", "0.6379957", "0.63729924", "0.6359959", "0.6356367", "0.6354128", "0.63529664", "0.63453364", "0.6335476", "0.6322057", "0.6322057", "0.6293201", "0.6293201", "0.62931037", "0.62931037", "0.6292136", "0.62624705", "0.626068", "0.626068", "0.626068", "0.62582", "0.62467325", "0.62467325", "0.62467325", "0.62467325", "0.62467325", "0.62467325", "0.62467325", "0.6227793", "0.62226135", "0.62226135", "0.62226135", "0.6213176", "0.61949784", "0.61895216", "0.6188162", "0.61829233", "0.6179", "0.6179", "0.6179", "0.6164535", "0.615953", "0.6137383", "0.6137383", "0.6137383", "0.61345166", "0.6129106", "0.61234254", "0.61234254", "0.61163074", "0.6113231", "0.6096105", "0.60944694", "0.6077461", "0.6065254", "0.6062982", "0.60594016" ]
0.6656847
34
Generated method Setter of the BraintreeCustomerDetails.updatedAt attribute.
public void setUpdatedAt(final SessionContext ctx, final Date value) { setProperty(ctx, UPDATEDAT,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZonedDateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public DateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public DateTime updatedAt() {\n return this.updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt( Date updatedAt ) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Long updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n\t\tthis.updatedAt = updatedAt;\r\n\t}", "public OffsetDateTime updatedAt() {\n return this.updatedAt;\n }", "@JsonProperty(\"updated_at\")\n public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n\t\treturn updatedAt;\r\n\t}", "public void setUpdatedAt(Date updatedAt) {\n\t\tthis.updatedAt = updatedAt;\n\t}", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n\t\treturn updatedAt;\n\t}", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "@JsonProperty(\"updated_at\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public void setUpdatedAtDD(Long value) {\n setUpdatedAt(new Date(value));\n }", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder() {\n return getUpdatedAt();\n }", "io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt();", "@ApiModelProperty(value = \"Person last updated. (May not be accurate)\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt() {\n return updatedAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n }", "public void setLastUpdatedAt(Timestamp value) {\n setAttributeInternal(LASTUPDATEDAT, value);\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The timestamp when the incident was updated at.\")\n\n public OffsetDateTime getUpdatedAt() {\n return updatedAt;\n }", "public java.util.Date getLastUpdatedAt() {\n return this.lastUpdatedAt;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt() {\n if (updatedAtBuilder_ == null) {\n return updatedAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n } else {\n return updatedAtBuilder_.getMessage();\n }\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public ZonedDateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public void setUpdatedAt(final Date value)\n\t{\n\t\tsetUpdatedAt( getSession().getSessionContext(), value );\n\t}", "io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder();", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder() {\n if (updatedAtBuilder_ != null) {\n return updatedAtBuilder_.getMessageOrBuilder();\n } else {\n return updatedAt_ == null ?\n io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n }\n }", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "public void setUpdatedDateTime(ZonedDateTime updatedDateTime) {\n this.updatedDateTime = updatedDateTime;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "public OffsetDateTime updatedDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().updatedDateTime();\n }", "public void setLastUpdatedAt(java.util.Date lastUpdatedAt) {\n this.lastUpdatedAt = lastUpdatedAt;\n }", "void setUpdatedDate(Date updatedDate);", "public Flow withUpdatedAt(DateTime updatedAt) {\n this.updatedAt = updatedAt;\n return this;\n }", "public void setUpdatedate(Date updatedate) {\r\n this.updatedate = updatedate;\r\n }", "public DateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public void setUpdatedOn(Date updatedOn);", "public Date getUpdatedAt()\n\t{\n\t\treturn getUpdatedAt( getSession().getSessionContext() );\n\t}", "public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }", "public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public Builder setUpdatedAt(io.opencannabis.schema.temporal.TemporalInstant.Instant value) {\n if (updatedAtBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n updatedAt_ = value;\n onChanged();\n } else {\n updatedAtBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Long getUpdateAt() {\n return updateAt;\n }", "public Date getUpdatedAt(final SessionContext ctx)\n\t{\n\t\treturn (Date)getProperty( ctx, UPDATEDAT);\n\t}", "public void setLastupdatedate(Date lastupdatedate) {\n this.lastupdatedate = lastupdatedate;\n }", "@NotNull\n @JsonProperty(\"lastModifiedAt\")\n public ZonedDateTime getLastModifiedAt();", "@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }", "@ApiModelProperty(required = true, value = \"last update timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"updated\")\n public Date getUpdated() {\n return updated;\n }", "public Date getUpdatedDate() {\n return updatedDate;\n }", "public void setUpdatedDateTime(DateTime updatedDateTime) {\n this.updatedDateTime = updatedDateTime;\n }", "public Builder setUpdatedAt(\n io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) {\n if (updatedAtBuilder_ == null) {\n updatedAt_ = builderForValue.build();\n onChanged();\n } else {\n updatedAtBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "@ApiModelProperty(example = \"2020-12-03T19:04:58.6970000\", value = \"Updated date in UTC\")\n /**\n * Updated date in UTC\n *\n * @return updatedDateUtc String\n */\n public String getUpdatedDateUtc() {\n return updatedDateUtc;\n }", "void setLastUpdatedTime();", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public Date getCateUpdated() {\n return cateUpdated;\n }", "public Date getUpdatedOn();", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public void setCateUpdated(Date cateUpdated) {\n this.cateUpdated = cateUpdated;\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getUpdatedAtBuilder() {\n \n onChanged();\n return getUpdatedAtFieldBuilder().getBuilder();\n }", "public void setUpdateDatetime(Date updateDatetime);", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public boolean hasUpdatedAt() {\n return updatedAt_ != null;\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }" ]
[ "0.74936813", "0.723764", "0.6855581", "0.68342024", "0.68342024", "0.68342024", "0.68313473", "0.6786555", "0.67647356", "0.6764571", "0.6761459", "0.6734181", "0.6734181", "0.6734181", "0.6734181", "0.6734181", "0.6734181", "0.671027", "0.671027", "0.671027", "0.67002976", "0.6696887", "0.66803575", "0.66803575", "0.6674799", "0.6674799", "0.6674799", "0.6674799", "0.6674799", "0.6674799", "0.6674799", "0.6633586", "0.6606966", "0.65655357", "0.6525644", "0.6525644", "0.64120054", "0.6398837", "0.63871366", "0.63396585", "0.6298843", "0.62935024", "0.6273774", "0.6269384", "0.62309724", "0.61950177", "0.61690766", "0.6131996", "0.611716", "0.6052684", "0.6014318", "0.60103154", "0.5961564", "0.59574705", "0.59574705", "0.59108514", "0.58922416", "0.5830296", "0.58061564", "0.5799259", "0.5792182", "0.5779804", "0.57641166", "0.57558894", "0.5738784", "0.5738784", "0.56957495", "0.5686294", "0.56462985", "0.56402296", "0.56240594", "0.5622222", "0.5610268", "0.5609323", "0.56062084", "0.55887383", "0.55844975", "0.55828786", "0.55828786", "0.5580542", "0.55752033", "0.5562758", "0.55627304", "0.55367833", "0.55287445", "0.55165863", "0.55142736", "0.55142736", "0.5500096", "0.54981333", "0.54931027", "0.54811585", "0.5473295", "0.5472477", "0.5469022", "0.5460192", "0.5453203", "0.54435015", "0.54359466", "0.54359466" ]
0.589096
57
Generated method Setter of the BraintreeCustomerDetails.updatedAt attribute.
public void setUpdatedAt(final Date value) { setUpdatedAt( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ZonedDateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public DateTime getUpdatedAt() {\n return this.updatedAt;\n }", "public DateTime updatedAt() {\n return this.updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt(Date updatedAt) {\r\n this.updatedAt = updatedAt;\r\n }", "public void setUpdatedAt( Date updatedAt ) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Long updatedAt) {\n this.updatedAt = updatedAt;\n }", "public OffsetDateTime updatedAt() {\n return this.updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\r\n\t\tthis.updatedAt = updatedAt;\r\n\t}", "@JsonProperty(\"updated_at\")\n public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public void setUpdatedAt(Date updatedAt) {\n this.updatedAt = updatedAt;\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n return updatedAt;\r\n }", "public Date getUpdatedAt() {\r\n\t\treturn updatedAt;\r\n\t}", "public void setUpdatedAt(Date updatedAt) {\n\t\tthis.updatedAt = updatedAt;\n\t}", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public void setUpdatedAt(Date value) {\n setAttributeInternal(UPDATEDAT, value);\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n\t\treturn updatedAt;\n\t}", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public Long getUpdatedAtDD() {\n return getUpdatedAt() == null ? null : getUpdatedAt().getTime();\n }", "public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "public Date getUpdatedAt() {\n return (Date)getAttributeInternal(UPDATEDAT);\n }", "@JsonProperty(\"updated_at\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "@JsonIgnore\n @DynamoDBAttribute(attributeName=\"updatedAt\")\n public void setUpdatedAtDD(Long value) {\n setUpdatedAt(new Date(value));\n }", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder() {\n return getUpdatedAt();\n }", "io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt();", "@ApiModelProperty(value = \"Person last updated. (May not be accurate)\")\n public Date getUpdatedAt() {\n return updatedAt;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt() {\n return updatedAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n }", "public void setLastUpdatedAt(Timestamp value) {\n setAttributeInternal(LASTUPDATEDAT, value);\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"The timestamp when the incident was updated at.\")\n\n public OffsetDateTime getUpdatedAt() {\n return updatedAt;\n }", "public java.util.Date getLastUpdatedAt() {\n return this.lastUpdatedAt;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.Instant getUpdatedAt() {\n if (updatedAtBuilder_ == null) {\n return updatedAt_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n } else {\n return updatedAtBuilder_.getMessage();\n }\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public ZonedDateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder();", "public io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder getUpdatedAtOrBuilder() {\n if (updatedAtBuilder_ != null) {\n return updatedAtBuilder_.getMessageOrBuilder();\n } else {\n return updatedAt_ == null ?\n io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : updatedAt_;\n }\n }", "public Date getUpdatedate() {\r\n return updatedate;\r\n }", "public void setUpdatedDateTime(ZonedDateTime updatedDateTime) {\n this.updatedDateTime = updatedDateTime;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Date getUpdatedate() {\n return updatedate;\n }", "public Timestamp getLastUpdatedAt() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDAT);\n }", "public OffsetDateTime updatedDateTime() {\n return this.innerProperties() == null ? null : this.innerProperties().updatedDateTime();\n }", "public void setUpdatedAt(final SessionContext ctx, final Date value)\n\t{\n\t\tsetProperty(ctx, UPDATEDAT,value);\n\t}", "public void setLastUpdatedAt(java.util.Date lastUpdatedAt) {\n this.lastUpdatedAt = lastUpdatedAt;\n }", "void setUpdatedDate(Date updatedDate);", "public Flow withUpdatedAt(DateTime updatedAt) {\n this.updatedAt = updatedAt;\n return this;\n }", "public void setUpdatedate(Date updatedate) {\r\n this.updatedate = updatedate;\r\n }", "public DateTime getUpdatedDateTime() {\n return updatedDateTime;\n }", "public void setUpdatedOn(Date updatedOn);", "public Date getUpdatedAt()\n\t{\n\t\treturn getUpdatedAt( getSession().getSessionContext() );\n\t}", "public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }", "public void setUpdatedate(Date updatedate) {\n this.updatedate = updatedate;\n }", "public Date getLastupdatedate() {\n return lastupdatedate;\n }", "public Builder setUpdatedAt(io.opencannabis.schema.temporal.TemporalInstant.Instant value) {\n if (updatedAtBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n updatedAt_ = value;\n onChanged();\n } else {\n updatedAtBuilder_.setMessage(value);\n }\n\n return this;\n }", "public Long getUpdateAt() {\n return updateAt;\n }", "public Date getUpdatedAt(final SessionContext ctx)\n\t{\n\t\treturn (Date)getProperty( ctx, UPDATEDAT);\n\t}", "public void setLastupdatedate(Date lastupdatedate) {\n this.lastupdatedate = lastupdatedate;\n }", "@NotNull\n @JsonProperty(\"lastModifiedAt\")\n public ZonedDateTime getLastModifiedAt();", "@PreUpdate\r\n void updatedAt() {\r\n setDateRecordUpdated();\r\n }", "@ApiModelProperty(required = true, value = \"last update timestamp in ISO-8601 format, see http://en.wikipedia.org/wiki/ISO_8601\")\n @JsonProperty(\"updated\")\n public Date getUpdated() {\n return updated;\n }", "public Date getUpdatedDate() {\n return updatedDate;\n }", "public void setUpdatedDateTime(DateTime updatedDateTime) {\n this.updatedDateTime = updatedDateTime;\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public void setUpdated(Date updated) {\r\n this.updated = updated;\r\n }", "public Builder setUpdatedAt(\n io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder builderForValue) {\n if (updatedAtBuilder_ == null) {\n updatedAt_ = builderForValue.build();\n onChanged();\n } else {\n updatedAtBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "@ApiModelProperty(example = \"2020-12-03T19:04:58.6970000\", value = \"Updated date in UTC\")\n /**\n * Updated date in UTC\n *\n * @return updatedDateUtc String\n */\n public String getUpdatedDateUtc() {\n return updatedDateUtc;\n }", "void setLastUpdatedTime();", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public void setLastUpdateDate(Date value)\n {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public Date getCateUpdated() {\n return cateUpdated;\n }", "public Date getUpdatedOn();", "public void setLastUpdatedDate(Date value) {\r\n setAttributeInternal(LASTUPDATEDDATE, value);\r\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public void setUpdated(Date updated) {\n this.updated = updated;\n }", "public void setCateUpdated(Date cateUpdated) {\n this.cateUpdated = cateUpdated;\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "@Basic( optional = false )\r\n\t@Column( name = \"updated_date\", nullable = false )\r\n\tpublic Date getUpdatedDate() {\r\n\t\treturn this.updatedDate;\r\n\t\t\r\n\t}", "public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getUpdatedAtBuilder() {\n \n onChanged();\n return getUpdatedAtFieldBuilder().getBuilder();\n }", "public void setUpdateDatetime(Date updateDatetime);", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public Date getLastUpdateDate()\n {\n return (Date)getAttributeInternal(LASTUPDATEDATE);\n }", "public Date getLastUpdatedDate() {\r\n return (Date) getAttributeInternal(LASTUPDATEDDATE);\r\n }", "public Timestamp getUpdateDate() {\n return updateDate;\n }", "public boolean hasUpdatedAt() {\n return updatedAt_ != null;\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }", "public void setLastUpdateDate(Date value) {\n setAttributeInternal(LASTUPDATEDATE, value);\n }" ]
[ "0.74933314", "0.723743", "0.6855344", "0.6833131", "0.6833131", "0.6833131", "0.68301004", "0.6784396", "0.6764068", "0.6763358", "0.6761363", "0.673295", "0.673295", "0.673295", "0.673295", "0.673295", "0.673295", "0.6709767", "0.6709767", "0.6709767", "0.6699397", "0.6695499", "0.66798776", "0.66798776", "0.66742647", "0.66742647", "0.66742647", "0.66742647", "0.66742647", "0.66742647", "0.66742647", "0.6632654", "0.6606176", "0.65646124", "0.6524966", "0.6524966", "0.6412629", "0.63977987", "0.6386327", "0.6338394", "0.62986714", "0.6291909", "0.62725055", "0.62686765", "0.6229447", "0.61941016", "0.6168772", "0.61324394", "0.60516226", "0.60135156", "0.60115266", "0.59619313", "0.59586966", "0.59586966", "0.59094274", "0.5892183", "0.58909017", "0.582824", "0.5807869", "0.5798769", "0.5793837", "0.5780912", "0.5766189", "0.5755029", "0.5740365", "0.5740365", "0.5695573", "0.5686191", "0.5646107", "0.563919", "0.56243134", "0.56224155", "0.5612245", "0.5609503", "0.5607378", "0.55890495", "0.5584232", "0.5584232", "0.55838794", "0.55802476", "0.55752087", "0.5562724", "0.55622876", "0.55386287", "0.5529393", "0.55163985", "0.551552", "0.551552", "0.5500233", "0.54994965", "0.549396", "0.54815555", "0.5474158", "0.547273", "0.546811", "0.5459292", "0.5453883", "0.54424924", "0.5435286", "0.5435286" ]
0.61171407
48
Generated method Getter of the BraintreeCustomerDetails.website attribute.
public String getWebsite(final SessionContext ctx) { return (String)getProperty( ctx, WEBSITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getWebsite() {\n return website;\n }", "public String getWebsite() {\n return website;\n }", "public String getWebsite() {\n return mWebsite;\n }", "public com.jspgou.core.entity.Website getWebsite () {\r\n\t\treturn website;\r\n\t}", "public static String getWebsite() {\n\t \treturn website;\n\t }", "public java.lang.String getWebsite () {\n\t\treturn website;\n\t}", "public void setWebsite(String website) {\n this.website = website;\n }", "public void setWebsite(String website) {\n this.website = website;\n }", "String getWebsite();", "@ApiModelProperty(value = \"The event website URL\")\n public String getWebsite() {\n return website;\n }", "public String getWeb() {\n\t\treturn web;\n\t}", "public String getWebsite()\n\t{\n\t\treturn getWebsite( getSession().getSessionContext() );\n\t}", "@Override\n public String getWeb() {\n return web;\n }", "public void setWebsite (java.lang.String website) {\n\t\tthis.website = website;\n\t}", "public String getWebstoreUrl() {\n return webstoreUrl;\n }", "public String getAttractionWebsite() {\n return mAttractionWebsite;\n }", "public String getWebUrl() {\n return mWebUrl;\n }", "public String getcompanyURL() {\n return companyURL;\n }", "public Integer getWebsiteId() {\n return (Integer) get(\"website_id\");\n }", "public void setWebsite (com.jspgou.core.entity.Website website) {\r\n\t\tthis.website = website;\r\n\t}", "public String getSiteUrl() {\n return siteUrl;\n }", "public String getSiteUrl();", "public String getCompanyLicenseUrl()\n/* */ {\n/* 125 */ return this.companyLicenseUrl;\n/* */ }", "public int getClientSite () {\n return clientSite;\n }", "public String getGameWebsite() {\n return gameWebsite;\n }", "public String getSite() {\n return site;\n }", "public String getSite() {\r\n return site;\r\n }", "public String getSite() {\r\n return site;\r\n }", "@ApiModelProperty(value = \"website or ecommerce URL\")\n @JsonProperty(\"url\")\n public String getUrl() {\n return url;\n }", "public static final String getCompany() { return company; }", "@ZAttr(id=506)\n public String getWebClientLoginURL() {\n return getAttr(Provisioning.A_zimbraWebClientLoginURL, null);\n }", "String getSite();", "public String getWebPage() {\n\t\treturn webPage;\n\t}", "public String getCompanyCity() {\n return companyCity;\n }", "public String getWebSiteId() {\r\n\t\treturn webSiteId;\r\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public CimString getVendorUrl() {\n return vendorUrl;\n }", "public String getSourceSite() {\n return sourceSite;\n }", "public String getCompany() {\n return company;\n }", "@ApiModelProperty(value = \"The name of the company that is the administrative authority for the space within this Service Site. (For example, the company leasing space in a multi-tenant building).\")\n\n\n public String getSiteCustomerName() {\n return siteCustomerName;\n }", "public String getWebPageURL()\n\t{\n\t\treturn webPageURL;\n\t}", "public String getCompanyCode() {\n return companyCode;\n }", "public String getBuyLink() {\n return buyLink;\n }", "public String getWapBannerUrl() {\n return wapBannerUrl;\n }", "@Override\n\tpublic String getSiteUrl() {\n\t\treturn null;\n\t}", "@java.lang.SuppressWarnings(\"all\")\n\[email protected](\"lombok\")\n\tpublic String getCoinbase() {\n\t\treturn this.coinbase;\n\t}", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getServiceSite() {\r\n\t\treturn serviceSite;\r\n\t}", "public String getSiteNumber()\n {\n \treturn siteNumber;\n }", "@JSProperty\n String getCite();", "public String getCompany() {\n return (String) get(\"company\");\n }", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "public EmailVendor getWallaAccount() {\r\n return WallaAccount;\r\n }", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "public Site getSite() {\n return site;\n }", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://www.zohoapis.eu\";\n\t\t}", "@ApiModelProperty(value = \"A textual description of the Service Site.\")\n\n\n public String getSiteDescription() {\n return siteDescription;\n }", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "@ApiModelProperty(value = \"Additional information about the Site.\")\n\n\n public String getAdditionalSiteInformation() {\n return additionalSiteInformation;\n }", "public VendorWebsiteBean getVendorWebsiteByVendorId(VendorWebsiteBean tmpVendorWebsiteBean) {\n VendorWebsiteBean vendorLandingPageBean = new VendorWebsiteBean();\n if(tmpVendorWebsiteBean!=null && !Utility.isNullOrEmpty(tmpVendorWebsiteBean.getVendorId())) {\n String sQuery = \"SELECT * FROM GTVENDORWEBSITE WHERE FK_VENDORID = ?\";\n ArrayList<Object> aParams = DBDAO.createConstraint(tmpVendorWebsiteBean.getVendorId());\n\n ArrayList<HashMap<String, String>> arrResult = DBDAO.getDBData(EVENTADMIN_DB, sQuery, aParams, false, \"AccessVendorWebsiteData.java\", \"getVendorWebsiteByVendorId()\");\n if(arrResult!=null) {\n for(HashMap<String, String> hmResult : arrResult ) {\n vendorLandingPageBean = new VendorWebsiteBean(hmResult);\n }\n }\n }\n return vendorLandingPageBean;\n }", "public String getWebPageShortUrl() {\n\t\treturn webPageShortUrl;\n\t}", "public java.lang.String getBoletoUrl() {\n return boletoUrl;\n }", "@ApiModelProperty(value = \"The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).\")\n\n\n public String getSiteCompanyName() {\n return siteCompanyName;\n }", "@ZAttr(id=649)\n public String getSkinLogoURL() {\n return getAttr(Provisioning.A_zimbraSkinLogoURL, null);\n }", "public String getSrcInformedOfWebsite() {\r\n return (String) getAttributeInternal(SRCINFORMEDOFWEBSITE);\r\n }", "public String getContactCompany() {\n return contactCompany;\n }", "public java.lang.String getBrowserurl() {\n return browserurl;\n }", "public java.lang.Integer getCompanycode() {\n\treturn companycode;\n}", "public String getSrcCompany() {\r\n return (String) getAttributeInternal(SRCCOMPANY);\r\n }", "public String getSiteName() {\n return siteName;\n }", "String getCompany();", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return instance.getPaymentUrl();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.UWCompany getUWCompany();", "public String getBorough() {\n return borough;\n }", "public String siteName() {\n return this.siteName;\n }", "public void setAmusementObjectWebsite(String website){\r\n amusementObjectWebsite = Uri.parse(website);\r\n }", "public String getSITE_ID() {\n\t\treturn SITE_ID;\n\t}", "public String getContactUrl() {\n\n \n return contactUrl;\n\n }", "public String getCompanyCountry() {\n return companyCountry;\n }", "public URL getAddress() {\n return address;\n }", "@ApiModelProperty(value = \"A name commonly used by people to refer to this Service Site.\")\n\n\n public String getSiteName() {\n return siteName;\n }", "@Override\n public Site getSite() {\n return site;\n }", "@Override\n public Site getSite() {\n return site;\n }", "public Site getSite() {\n\t\treturn site;\n\t}", "public String getCompanyDocumentUrl() {\n\t\tString address = getProperties().getProperty(\"company.document.url\").trim();\n\t\treturn address;\n\t}", "@Override\n public void setWeb(String web) {\n this.web = web;\n }", "public static String getTestsiteurl() {\n\t\treturn testsiteurl;\n\t}", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "@Override\n\tpublic Site getSite() {\n\t\treturn site;\n\t}", "public static WebElement getPayBillLink() {\r\n\t\treturn payBillLink;\r\n\t}", "public String getCustomerAddress() {\n return customerAddress;\n }", "public WebSiteProperties getWebSiteProperties() {\n return webSiteProps;\n }", "public String getHotelcode() {\n return hotelcode;\n }", "public void setWebsite(final String value)\n\t{\n\t\tsetWebsite( getSession().getSessionContext(), value );\n\t}", "java.lang.String getPaymentUrl();", "public java.lang.Integer getCompany() {\n\treturn company;\n}", "public void setWeb(String web) {\n\t\tthis.web = web;\n\t}" ]
[ "0.74049574", "0.74049574", "0.7392645", "0.7210396", "0.7133928", "0.7103305", "0.6509729", "0.6509729", "0.6401505", "0.63325876", "0.6095489", "0.6094355", "0.60573465", "0.60361224", "0.6021665", "0.59227294", "0.5914171", "0.5898762", "0.5863193", "0.5860517", "0.5857705", "0.5751287", "0.57465696", "0.56994736", "0.5650999", "0.56475043", "0.5620406", "0.5620406", "0.5588114", "0.5517453", "0.5510903", "0.5462563", "0.54547185", "0.5434713", "0.5414135", "0.5389888", "0.5389888", "0.53867954", "0.53743553", "0.53613836", "0.53565186", "0.5355889", "0.534901", "0.53475547", "0.5334352", "0.5332933", "0.53324234", "0.5331729", "0.5331729", "0.5294214", "0.5255746", "0.5253093", "0.52464366", "0.5230363", "0.52078855", "0.520627", "0.5201641", "0.51971895", "0.5191425", "0.5190259", "0.5190259", "0.51560766", "0.5151809", "0.51044446", "0.5102926", "0.5096883", "0.50957024", "0.50854325", "0.50790983", "0.50707245", "0.50701106", "0.5065944", "0.50596434", "0.5052794", "0.5040922", "0.5035492", "0.5033945", "0.50323033", "0.50303704", "0.5027971", "0.50229263", "0.50141203", "0.50116277", "0.49878484", "0.49823394", "0.49823394", "0.49817726", "0.4971966", "0.49675417", "0.49629205", "0.49570274", "0.4955879", "0.49526566", "0.49430835", "0.49411282", "0.49389413", "0.49386778", "0.49310812", "0.49293232", "0.49272957" ]
0.57663935
21
Generated method Getter of the BraintreeCustomerDetails.website attribute.
public String getWebsite() { return getWebsite( getSession().getSessionContext() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getWebsite() {\n return website;\n }", "public String getWebsite() {\n return website;\n }", "public String getWebsite() {\n return mWebsite;\n }", "public com.jspgou.core.entity.Website getWebsite () {\r\n\t\treturn website;\r\n\t}", "public static String getWebsite() {\n\t \treturn website;\n\t }", "public java.lang.String getWebsite () {\n\t\treturn website;\n\t}", "public void setWebsite(String website) {\n this.website = website;\n }", "public void setWebsite(String website) {\n this.website = website;\n }", "String getWebsite();", "@ApiModelProperty(value = \"The event website URL\")\n public String getWebsite() {\n return website;\n }", "public String getWeb() {\n\t\treturn web;\n\t}", "@Override\n public String getWeb() {\n return web;\n }", "public void setWebsite (java.lang.String website) {\n\t\tthis.website = website;\n\t}", "public String getWebstoreUrl() {\n return webstoreUrl;\n }", "public String getAttractionWebsite() {\n return mAttractionWebsite;\n }", "public String getWebUrl() {\n return mWebUrl;\n }", "public String getcompanyURL() {\n return companyURL;\n }", "public Integer getWebsiteId() {\n return (Integer) get(\"website_id\");\n }", "public String getSiteUrl() {\n return siteUrl;\n }", "public void setWebsite (com.jspgou.core.entity.Website website) {\r\n\t\tthis.website = website;\r\n\t}", "public String getWebsite(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, WEBSITE);\n\t}", "public String getSiteUrl();", "public String getCompanyLicenseUrl()\n/* */ {\n/* 125 */ return this.companyLicenseUrl;\n/* */ }", "public int getClientSite () {\n return clientSite;\n }", "public String getGameWebsite() {\n return gameWebsite;\n }", "public String getSite() {\n return site;\n }", "public String getSite() {\r\n return site;\r\n }", "public String getSite() {\r\n return site;\r\n }", "@ApiModelProperty(value = \"website or ecommerce URL\")\n @JsonProperty(\"url\")\n public String getUrl() {\n return url;\n }", "public static final String getCompany() { return company; }", "@ZAttr(id=506)\n public String getWebClientLoginURL() {\n return getAttr(Provisioning.A_zimbraWebClientLoginURL, null);\n }", "String getSite();", "public String getWebPage() {\n\t\treturn webPage;\n\t}", "public String getCompanyCity() {\n return companyCity;\n }", "public String getWebSiteId() {\r\n\t\treturn webSiteId;\r\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public CimString getVendorUrl() {\n return vendorUrl;\n }", "public String getSourceSite() {\n return sourceSite;\n }", "public String getCompany() {\n return company;\n }", "@ApiModelProperty(value = \"The name of the company that is the administrative authority for the space within this Service Site. (For example, the company leasing space in a multi-tenant building).\")\n\n\n public String getSiteCustomerName() {\n return siteCustomerName;\n }", "public String getWebPageURL()\n\t{\n\t\treturn webPageURL;\n\t}", "public String getCompanyCode() {\n return companyCode;\n }", "public String getBuyLink() {\n return buyLink;\n }", "@java.lang.SuppressWarnings(\"all\")\n\[email protected](\"lombok\")\n\tpublic String getCoinbase() {\n\t\treturn this.coinbase;\n\t}", "public String getWapBannerUrl() {\n return wapBannerUrl;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "@Override\n\tpublic String getSiteUrl() {\n\t\treturn null;\n\t}", "public String getServiceSite() {\r\n\t\treturn serviceSite;\r\n\t}", "public String getSiteNumber()\n {\n \treturn siteNumber;\n }", "@JSProperty\n String getCite();", "public String getCompany() {\n return (String) get(\"company\");\n }", "public String getCompany()\r\n {\r\n return (m_company);\r\n }", "public EmailVendor getWallaAccount() {\r\n return WallaAccount;\r\n }", "public String getCompany() {\r\n\t\treturn company;\r\n\t}", "public Site getSite() {\n return site;\n }", "public String getUrl()\n\t\t{\n\t\t\treturn \"https://www.zohoapis.eu\";\n\t\t}", "@ApiModelProperty(value = \"A textual description of the Service Site.\")\n\n\n public String getSiteDescription() {\n return siteDescription;\n }", "public String getCompany() {\n\t\treturn company;\n\t}", "public String getCompany() {\n\t\treturn company;\n\t}", "@ApiModelProperty(value = \"Additional information about the Site.\")\n\n\n public String getAdditionalSiteInformation() {\n return additionalSiteInformation;\n }", "public VendorWebsiteBean getVendorWebsiteByVendorId(VendorWebsiteBean tmpVendorWebsiteBean) {\n VendorWebsiteBean vendorLandingPageBean = new VendorWebsiteBean();\n if(tmpVendorWebsiteBean!=null && !Utility.isNullOrEmpty(tmpVendorWebsiteBean.getVendorId())) {\n String sQuery = \"SELECT * FROM GTVENDORWEBSITE WHERE FK_VENDORID = ?\";\n ArrayList<Object> aParams = DBDAO.createConstraint(tmpVendorWebsiteBean.getVendorId());\n\n ArrayList<HashMap<String, String>> arrResult = DBDAO.getDBData(EVENTADMIN_DB, sQuery, aParams, false, \"AccessVendorWebsiteData.java\", \"getVendorWebsiteByVendorId()\");\n if(arrResult!=null) {\n for(HashMap<String, String> hmResult : arrResult ) {\n vendorLandingPageBean = new VendorWebsiteBean(hmResult);\n }\n }\n }\n return vendorLandingPageBean;\n }", "public String getWebPageShortUrl() {\n\t\treturn webPageShortUrl;\n\t}", "public java.lang.String getBoletoUrl() {\n return boletoUrl;\n }", "@ApiModelProperty(value = \"The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).\")\n\n\n public String getSiteCompanyName() {\n return siteCompanyName;\n }", "@ZAttr(id=649)\n public String getSkinLogoURL() {\n return getAttr(Provisioning.A_zimbraSkinLogoURL, null);\n }", "public String getSrcInformedOfWebsite() {\r\n return (String) getAttributeInternal(SRCINFORMEDOFWEBSITE);\r\n }", "public String getContactCompany() {\n return contactCompany;\n }", "public java.lang.Integer getCompanycode() {\n\treturn companycode;\n}", "public java.lang.String getBrowserurl() {\n return browserurl;\n }", "public String getSrcCompany() {\r\n return (String) getAttributeInternal(SRCCOMPANY);\r\n }", "public String getSiteName() {\n return siteName;\n }", "String getCompany();", "@java.lang.Override\n public java.lang.String getPaymentUrl() {\n return instance.getPaymentUrl();\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.UWCompany getUWCompany();", "public String getBorough() {\n return borough;\n }", "public String siteName() {\n return this.siteName;\n }", "public String getSITE_ID() {\n\t\treturn SITE_ID;\n\t}", "public void setAmusementObjectWebsite(String website){\r\n amusementObjectWebsite = Uri.parse(website);\r\n }", "public String getContactUrl() {\n\n \n return contactUrl;\n\n }", "public String getCompanyCountry() {\n return companyCountry;\n }", "public URL getAddress() {\n return address;\n }", "@ApiModelProperty(value = \"A name commonly used by people to refer to this Service Site.\")\n\n\n public String getSiteName() {\n return siteName;\n }", "@Override\n public Site getSite() {\n return site;\n }", "@Override\n public Site getSite() {\n return site;\n }", "public Site getSite() {\n\t\treturn site;\n\t}", "public String getCompanyDocumentUrl() {\n\t\tString address = getProperties().getProperty(\"company.document.url\").trim();\n\t\treturn address;\n\t}", "@Override\n public void setWeb(String web) {\n this.web = web;\n }", "public static String getTestsiteurl() {\n\t\treturn testsiteurl;\n\t}", "public String getBaseUrl()\r\n {\r\n return this.url;\r\n }", "@Override\n\tpublic Site getSite() {\n\t\treturn site;\n\t}", "public static WebElement getPayBillLink() {\r\n\t\treturn payBillLink;\r\n\t}", "public String getCustomerAddress() {\n return customerAddress;\n }", "public String getHotelcode() {\n return hotelcode;\n }", "public WebSiteProperties getWebSiteProperties() {\n return webSiteProps;\n }", "public void setWebsite(final String value)\n\t{\n\t\tsetWebsite( getSession().getSessionContext(), value );\n\t}", "java.lang.String getPaymentUrl();", "public java.lang.Integer getCompany() {\n\treturn company;\n}", "public String getCompanyname() {\n return companyname;\n }" ]
[ "0.7402629", "0.7402629", "0.73901695", "0.72075325", "0.7131466", "0.710067", "0.6504982", "0.6504982", "0.63991445", "0.63308775", "0.6095127", "0.6057148", "0.6031359", "0.60210174", "0.5922029", "0.59138715", "0.5898577", "0.5860298", "0.58562225", "0.5855687", "0.57632595", "0.5748794", "0.5747389", "0.5699026", "0.564978", "0.56461114", "0.56189287", "0.56189287", "0.5587342", "0.55178493", "0.5512833", "0.5460971", "0.54543656", "0.5436914", "0.5411916", "0.53906935", "0.53906935", "0.53889465", "0.5373813", "0.5362009", "0.5358771", "0.53551465", "0.53501284", "0.5349398", "0.53350335", "0.5334477", "0.5332825", "0.5332825", "0.5331006", "0.52932334", "0.52562076", "0.5253185", "0.5247353", "0.5231799", "0.520863", "0.52066493", "0.5200048", "0.5195958", "0.51911175", "0.5190745", "0.5190745", "0.5156808", "0.5149813", "0.5105151", "0.5102742", "0.5096706", "0.50958717", "0.5084525", "0.508051", "0.50716436", "0.50715446", "0.5066482", "0.5059184", "0.5053826", "0.5041375", "0.50358826", "0.5035213", "0.5031167", "0.50264966", "0.5025455", "0.5024061", "0.5015636", "0.5012618", "0.4987962", "0.49806947", "0.49806947", "0.49800596", "0.49715158", "0.49653935", "0.49616134", "0.49569026", "0.49543628", "0.49523902", "0.49476078", "0.49410337", "0.49394262", "0.49355137", "0.49308637", "0.49303722", "0.49271068" ]
0.6092069
11
Generated method Setter of the BraintreeCustomerDetails.website attribute.
public void setWebsite(final SessionContext ctx, final String value) { setProperty(ctx, WEBSITE,value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWebsite(String website) {\n this.website = website;\n }", "public void setWebsite(String website) {\n this.website = website;\n }", "public void setWebsite (com.jspgou.core.entity.Website website) {\r\n\t\tthis.website = website;\r\n\t}", "public void setWebsite (java.lang.String website) {\n\t\tthis.website = website;\n\t}", "public String getWebsite() {\n return website;\n }", "public String getWebsite() {\n return website;\n }", "public String getWebsite() {\n return mWebsite;\n }", "public void setAmusementObjectWebsite(String website){\r\n amusementObjectWebsite = Uri.parse(website);\r\n }", "public void setWebsite(final String value)\n\t{\n\t\tsetWebsite( getSession().getSessionContext(), value );\n\t}", "public com.jspgou.core.entity.Website getWebsite () {\r\n\t\treturn website;\r\n\t}", "@Override\n public void setWeb(String web) {\n this.web = web;\n }", "public static String getWebsite() {\n\t \treturn website;\n\t }", "public java.lang.String getWebsite () {\n\t\treturn website;\n\t}", "public void setWeb(String web) {\n\t\tthis.web = web;\n\t}", "@ApiModelProperty(value = \"The event website URL\")\n public String getWebsite() {\n return website;\n }", "public void setGameWebsite(String gameWebsite) {\n this.gameWebsite = gameWebsite == null ? null : gameWebsite.trim();\n }", "public void setWebPage(String webPage) {\n\t\tthis.webPage = webPage;\n\t}", "public void setCompanyLicenseUrl(String companyLicenseUrl)\n/* */ {\n/* 134 */ this.companyLicenseUrl = (companyLicenseUrl == null ? null : companyLicenseUrl.trim());\n/* */ }", "public String getcompanyURL() {\n return companyURL;\n }", "@Override\n public String getWeb() {\n return web;\n }", "public Builder setCompany(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n company_ = value;\n onChanged();\n return this;\n }", "public void setSite(Site aSite) {\n this.site = aSite;\n }", "public void setSite(String site) {\n\t\tthis.site = site.trim();\r\n\t}", "public void setSiteUrl(String siteUrl) {\n this.siteUrl = siteUrl == null ? null : siteUrl.trim();\n }", "public void setWallaAccount(EmailVendor wallaAccount) {\r\n WallaAccount = wallaAccount;\r\n }", "public GoldenContactBuilder company(String value) {\n company = value;\n return this;\n }", "public export.serializers.avro.DeviceInfo.Builder setSite(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.site = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "String getWebsite();", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "public String getWeb() {\n\t\treturn web;\n\t}", "public String getWebstoreUrl() {\n return webstoreUrl;\n }", "public void setSite(String site) {\r\n this.site = site == null ? null : site.trim();\r\n }", "public void setSite(String site) {\r\n this.site = site == null ? null : site.trim();\r\n }", "public void setCompany(String company) {\n this.company = company;\n }", "public void setSite(String site) {\n this.site = site == null ? null : site.trim();\n }", "public String getSiteUrl() {\n return siteUrl;\n }", "public void setSiteUrl(final java.lang.String siteurl) {\r\n this.siteurl = siteurl;\r\n this.values.put(UserInfoTable.SITEURL, siteurl);\r\n }", "public void setWebPageURL( String webPageURL )\n\t{\n\t\tthis.webPageURL\t= webPageURL;\n\t}", "public void setWebSiteId(String webSiteId) {\r\n\t\tthis.webSiteId = webSiteId;\r\n\t}", "public String getCompanyLicenseUrl()\n/* */ {\n/* 125 */ return this.companyLicenseUrl;\n/* */ }", "public void setUWCompany(entity.UWCompany value);", "public String getWebUrl() {\n return mWebUrl;\n }", "@ApiModelProperty(value = \"The name of the company that is the administrative authority for the space within this Service Site. (For example, the company leasing space in a multi-tenant building).\")\n\n\n public String getSiteCustomerName() {\n return siteCustomerName;\n }", "public String getAttractionWebsite() {\n return mAttractionWebsite;\n }", "public void testWebsite(String site) {\r\n\t\tdriver.findElement(website).sendKeys(site);\r\n\t\t\t\r\n\t\t}", "public void setSite(java.lang.CharSequence value) {\n this.site = value;\n }", "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "public void setSrcCompany(String value) {\r\n setAttributeInternal(SRCCOMPANY, value);\r\n }", "public Integer getWebsiteId() {\n return (Integer) get(\"website_id\");\n }", "public void setCompany(String company) {\n\t\tthis.company = StringUtils.trimString( company );\n\t}", "public void saveWebsite(Website website) throws StorageException, MalformedURLException, WebsiteAlreadyExistsException, MalformedURLException, DataOmittedException {\n\t\t\n\t\tif(website.getAddress().equals(\"\") || website.getAddress() == null || website.getName().equals(\"\") || website.getName() == null )\n\t\t\tthrow new DataOmittedException();\n\t\t\n\t\tURL url = new URL(website.getAddress());\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tgetWebsite(url.getHost());\n\t\t\t\n\t\t\t// Se il website è già esistente, solleva l'eccezione\n\t\t\tthrow new WebsiteAlreadyExistsException();\n\t\t\t\n\t\t// Se non è stato trovato nessun sito con lo stesso url\n\t\t} catch (WebsiteNotFoundException e) {\n\t\t\t\n\t\t\tMap<String, Object> data = new HashMap<String, Object>();\n\t\t\t\n\t\t\tdata.put(\"name\", website.getName());\n\t\t\tdata.put(\"address\", website.getAddress());\n\t\t\tdata.put(\"description\", website.getDescription());\n\t\t\t\n\t\t\tstorage.save(\"websites\", data);\n\t\t}\n\t\t\n\t}", "@ApiModelProperty(value = \"The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).\")\n\n\n public String getSiteCompanyName() {\n return siteCompanyName;\n }", "@Override\n\tpublic String getSiteUrl() {\n\t\treturn null;\n\t}", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "public Builder setCouponVendor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n couponVendor_ = value;\n onChanged();\n return this;\n }", "@ApiModelProperty(value = \"A textual description of the Service Site.\")\n\n\n public String getSiteDescription() {\n return siteDescription;\n }", "@ApiModelProperty(value = \"website or ecommerce URL\")\n @JsonProperty(\"url\")\n public String getUrl() {\n return url;\n }", "public String getWebSiteId() {\r\n\t\treturn webSiteId;\r\n\t}", "public void setWireTransfer(PaymentSourceWireTransfer wireTransfer) {\n this.wireTransfer = wireTransfer;\n }", "private void setPaymentUrl(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n paymentUrl_ = value;\n }", "public void setWebstoreLastUpdated(Timestamp webstoreLastUpdated) {\n this.webstoreLastUpdated = webstoreLastUpdated;\n }", "public String getSite() {\r\n return site;\r\n }", "public String getSite() {\r\n return site;\r\n }", "public String getSite() {\n return site;\n }", "public void setAddress(final URL value) {\n this.address = value;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\n return companyCode;\n }", "public static void setPaymentURL( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, PAYMENTURL, value);\r\n\t}", "public void setSite (jkt.hrms.masters.business.MstrSiteHeader site) {\n\t\tthis.site = site;\n\t}", "@java.lang.SuppressWarnings(\"all\")\n\[email protected](\"lombok\")\n\tpublic void setCoinbase(final String coinbase) {\n\t\tthis.coinbase = coinbase;\n\t}", "public void setServiceSite(String serviceSite) {\r\n\t\tthis.serviceSite = serviceSite;\r\n\t}", "public SiteBeanDao( AplosContextListener aplosContextListener, Website website,\n\t\t\tClass<? extends AplosSiteBean> beanClass) {\n\t\tsuper( beanClass );\n\t\tif( !aplosContextListener.isAplosSiteBeanDisabled( beanClass ) ) {\n\t\t\tif( website != null ) {\n\t\t\t\tthis.setWebsiteId(website.getId());\n\t\t\t}\n\t\t}\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public String getSiteUrl();", "public static void setPublishersWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, PUBLISHERSWEBPAGE, value);\r\n\t}", "public String getCompanyCity() {\n return companyCity;\n }", "public int getClientSite () {\n return clientSite;\n }", "public void setSiteStatus(SiteStatus value) { _siteStatus = value; }", "public VendorWebsiteBean getVendorWebsiteByVendorId(VendorWebsiteBean tmpVendorWebsiteBean) {\n VendorWebsiteBean vendorLandingPageBean = new VendorWebsiteBean();\n if(tmpVendorWebsiteBean!=null && !Utility.isNullOrEmpty(tmpVendorWebsiteBean.getVendorId())) {\n String sQuery = \"SELECT * FROM GTVENDORWEBSITE WHERE FK_VENDORID = ?\";\n ArrayList<Object> aParams = DBDAO.createConstraint(tmpVendorWebsiteBean.getVendorId());\n\n ArrayList<HashMap<String, String>> arrResult = DBDAO.getDBData(EVENTADMIN_DB, sQuery, aParams, false, \"AccessVendorWebsiteData.java\", \"getVendorWebsiteByVendorId()\");\n if(arrResult!=null) {\n for(HashMap<String, String> hmResult : arrResult ) {\n vendorLandingPageBean = new VendorWebsiteBean(hmResult);\n }\n }\n }\n return vendorLandingPageBean;\n }", "@ZAttr(id=649)\n public void setSkinLogoURL(String zimbraSkinLogoURL) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSkinLogoURL, zimbraSkinLogoURL);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setPublishersWebpage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PUBLISHERSWEBPAGE, value);\r\n\t}", "public void setAddressCity(String addressCity) {\n this.addressCity = addressCity;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public void setWallaMailAddress(String wallaMailAddress) {\r\n WallaMailAddress = wallaMailAddress;\r\n }", "public String getWebsite(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, WEBSITE);\n\t}", "public CimString getVendorUrl() {\n return vendorUrl;\n }", "public void setSourceSite(String newsource) {\n sourceSite=newsource;\n }", "public Builder setCompanyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n company_ = value;\n onChanged();\n return this;\n }", "@ZAttr(id=506)\n public void setWebClientLoginURL(String zimbraWebClientLoginURL) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraWebClientLoginURL, zimbraWebClientLoginURL);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public String getWebsite()\n\t{\n\t\treturn getWebsite( getSession().getSessionContext() );\n\t}", "public void setPaymentURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PAYMENTURL, value);\r\n\t}", "public void setMarket(WebMarket market) {\r\n this.market = market;\r\n }", "public static final String getCompany() { return company; }", "public void setWebPageShortUrl(String webPageShortUrl) {\n\t\tthis.webPageShortUrl = webPageShortUrl;\n\t}", "public void setSrcInformedOfWebsite(String value) {\r\n setAttributeInternal(SRCINFORMEDOFWEBSITE, value);\r\n }" ]
[ "0.73015296", "0.73015296", "0.6999944", "0.69428223", "0.64318216", "0.64318216", "0.6307364", "0.62911916", "0.6130053", "0.60677105", "0.6016949", "0.5989292", "0.5893896", "0.5835943", "0.57887", "0.5583122", "0.5406804", "0.5310212", "0.5205771", "0.5194148", "0.51871294", "0.51507294", "0.5145945", "0.51099175", "0.5098983", "0.5086415", "0.5084812", "0.50800544", "0.5073928", "0.50670356", "0.5057705", "0.50509", "0.50509", "0.503538", "0.5023443", "0.49951723", "0.49910665", "0.49827886", "0.49592662", "0.49519342", "0.4941738", "0.4933542", "0.4933", "0.49300128", "0.49179834", "0.49074316", "0.49051356", "0.48959", "0.4895752", "0.48761204", "0.4865001", "0.48547977", "0.48204848", "0.48070416", "0.48067823", "0.47932434", "0.47929716", "0.4783869", "0.4782863", "0.47740802", "0.47695336", "0.47686106", "0.47662592", "0.47662592", "0.47659805", "0.47488698", "0.47395408", "0.47395408", "0.47308585", "0.47236177", "0.4721429", "0.47166696", "0.47121793", "0.46906865", "0.46891582", "0.46871507", "0.46871507", "0.46858987", "0.46792737", "0.46751824", "0.4663759", "0.46627977", "0.46493474", "0.46473783", "0.46431863", "0.46414015", "0.46392918", "0.46392918", "0.46385908", "0.46207592", "0.4618943", "0.4615039", "0.4612938", "0.46088377", "0.46053284", "0.46010005", "0.460064", "0.45954835", "0.45923638", "0.45826504" ]
0.55636066
16
Generated method Setter of the BraintreeCustomerDetails.website attribute.
public void setWebsite(final String value) { setWebsite( getSession().getSessionContext(), value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWebsite(String website) {\n this.website = website;\n }", "public void setWebsite(String website) {\n this.website = website;\n }", "public void setWebsite (com.jspgou.core.entity.Website website) {\r\n\t\tthis.website = website;\r\n\t}", "public void setWebsite (java.lang.String website) {\n\t\tthis.website = website;\n\t}", "public String getWebsite() {\n return website;\n }", "public String getWebsite() {\n return website;\n }", "public String getWebsite() {\n return mWebsite;\n }", "public void setAmusementObjectWebsite(String website){\r\n amusementObjectWebsite = Uri.parse(website);\r\n }", "public com.jspgou.core.entity.Website getWebsite () {\r\n\t\treturn website;\r\n\t}", "@Override\n public void setWeb(String web) {\n this.web = web;\n }", "public static String getWebsite() {\n\t \treturn website;\n\t }", "public java.lang.String getWebsite () {\n\t\treturn website;\n\t}", "public void setWeb(String web) {\n\t\tthis.web = web;\n\t}", "@ApiModelProperty(value = \"The event website URL\")\n public String getWebsite() {\n return website;\n }", "public void setGameWebsite(String gameWebsite) {\n this.gameWebsite = gameWebsite == null ? null : gameWebsite.trim();\n }", "public void setWebsite(final SessionContext ctx, final String value)\n\t{\n\t\tsetProperty(ctx, WEBSITE,value);\n\t}", "public void setWebPage(String webPage) {\n\t\tthis.webPage = webPage;\n\t}", "public void setCompanyLicenseUrl(String companyLicenseUrl)\n/* */ {\n/* 134 */ this.companyLicenseUrl = (companyLicenseUrl == null ? null : companyLicenseUrl.trim());\n/* */ }", "public String getcompanyURL() {\n return companyURL;\n }", "@Override\n public String getWeb() {\n return web;\n }", "public Builder setCompany(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n company_ = value;\n onChanged();\n return this;\n }", "public void setSite(Site aSite) {\n this.site = aSite;\n }", "public void setSite(String site) {\n\t\tthis.site = site.trim();\r\n\t}", "public void setSiteUrl(String siteUrl) {\n this.siteUrl = siteUrl == null ? null : siteUrl.trim();\n }", "public void setWallaAccount(EmailVendor wallaAccount) {\r\n WallaAccount = wallaAccount;\r\n }", "public GoldenContactBuilder company(String value) {\n company = value;\n return this;\n }", "public export.serializers.avro.DeviceInfo.Builder setSite(java.lang.CharSequence value) {\n validate(fields()[0], value);\n this.site = value;\n fieldSetFlags()[0] = true;\n return this;\n }", "public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }", "String getWebsite();", "public String getWeb() {\n\t\treturn web;\n\t}", "public String getWebstoreUrl() {\n return webstoreUrl;\n }", "public void setSite(String site) {\r\n this.site = site == null ? null : site.trim();\r\n }", "public void setSite(String site) {\r\n this.site = site == null ? null : site.trim();\r\n }", "public void setCompany(String company) {\n this.company = company;\n }", "public void setSite(String site) {\n this.site = site == null ? null : site.trim();\n }", "public String getSiteUrl() {\n return siteUrl;\n }", "public void setSiteUrl(final java.lang.String siteurl) {\r\n this.siteurl = siteurl;\r\n this.values.put(UserInfoTable.SITEURL, siteurl);\r\n }", "public void setWebPageURL( String webPageURL )\n\t{\n\t\tthis.webPageURL\t= webPageURL;\n\t}", "public void setWebSiteId(String webSiteId) {\r\n\t\tthis.webSiteId = webSiteId;\r\n\t}", "public String getCompanyLicenseUrl()\n/* */ {\n/* 125 */ return this.companyLicenseUrl;\n/* */ }", "public void setUWCompany(entity.UWCompany value);", "@ApiModelProperty(value = \"The name of the company that is the administrative authority for the space within this Service Site. (For example, the company leasing space in a multi-tenant building).\")\n\n\n public String getSiteCustomerName() {\n return siteCustomerName;\n }", "public String getWebUrl() {\n return mWebUrl;\n }", "public String getAttractionWebsite() {\n return mAttractionWebsite;\n }", "public void testWebsite(String site) {\r\n\t\tdriver.findElement(website).sendKeys(site);\r\n\t\t\t\r\n\t\t}", "public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}", "public void setSite(java.lang.CharSequence value) {\n this.site = value;\n }", "public void setCompany(Company aCompany) {\n company = aCompany;\n }", "public void setSrcCompany(String value) {\r\n setAttributeInternal(SRCCOMPANY, value);\r\n }", "public Integer getWebsiteId() {\n return (Integer) get(\"website_id\");\n }", "public void setCompany(String company) {\n\t\tthis.company = StringUtils.trimString( company );\n\t}", "public void saveWebsite(Website website) throws StorageException, MalformedURLException, WebsiteAlreadyExistsException, MalformedURLException, DataOmittedException {\n\t\t\n\t\tif(website.getAddress().equals(\"\") || website.getAddress() == null || website.getName().equals(\"\") || website.getName() == null )\n\t\t\tthrow new DataOmittedException();\n\t\t\n\t\tURL url = new URL(website.getAddress());\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tgetWebsite(url.getHost());\n\t\t\t\n\t\t\t// Se il website è già esistente, solleva l'eccezione\n\t\t\tthrow new WebsiteAlreadyExistsException();\n\t\t\t\n\t\t// Se non è stato trovato nessun sito con lo stesso url\n\t\t} catch (WebsiteNotFoundException e) {\n\t\t\t\n\t\t\tMap<String, Object> data = new HashMap<String, Object>();\n\t\t\t\n\t\t\tdata.put(\"name\", website.getName());\n\t\t\tdata.put(\"address\", website.getAddress());\n\t\t\tdata.put(\"description\", website.getDescription());\n\t\t\t\n\t\t\tstorage.save(\"websites\", data);\n\t\t}\n\t\t\n\t}", "@ApiModelProperty(value = \"The name of the company that is the administrative authority (e.g. controls access) for this Service Site. (For example, the building owner).\")\n\n\n public String getSiteCompanyName() {\n return siteCompanyName;\n }", "public void setCompany(String company) {\n\t\tthis.company = company;\n\t}", "@Override\n\tpublic String getSiteUrl() {\n\t\treturn null;\n\t}", "public Builder setCouponVendor(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n couponVendor_ = value;\n onChanged();\n return this;\n }", "@ApiModelProperty(value = \"A textual description of the Service Site.\")\n\n\n public String getSiteDescription() {\n return siteDescription;\n }", "@ApiModelProperty(value = \"website or ecommerce URL\")\n @JsonProperty(\"url\")\n public String getUrl() {\n return url;\n }", "public String getWebSiteId() {\r\n\t\treturn webSiteId;\r\n\t}", "public void setWireTransfer(PaymentSourceWireTransfer wireTransfer) {\n this.wireTransfer = wireTransfer;\n }", "private void setPaymentUrl(\n java.lang.String value) {\n java.lang.Class<?> valueClass = value.getClass();\n bitField0_ |= 0x00000010;\n paymentUrl_ = value;\n }", "public void setWebstoreLastUpdated(Timestamp webstoreLastUpdated) {\n this.webstoreLastUpdated = webstoreLastUpdated;\n }", "public String getSite() {\r\n return site;\r\n }", "public String getSite() {\r\n return site;\r\n }", "public String getSite() {\n return site;\n }", "public void setAddress(final URL value) {\n this.address = value;\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\r\n return companyCode;\r\n }", "public String getCompanyCode() {\n return companyCode;\n }", "public static void setPaymentURL( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, PAYMENTURL, value);\r\n\t}", "@java.lang.SuppressWarnings(\"all\")\n\[email protected](\"lombok\")\n\tpublic void setCoinbase(final String coinbase) {\n\t\tthis.coinbase = coinbase;\n\t}", "public void setSite (jkt.hrms.masters.business.MstrSiteHeader site) {\n\t\tthis.site = site;\n\t}", "public void setServiceSite(String serviceSite) {\r\n\t\tthis.serviceSite = serviceSite;\r\n\t}", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public String getCompany() {\n return company;\n }", "public SiteBeanDao( AplosContextListener aplosContextListener, Website website,\n\t\t\tClass<? extends AplosSiteBean> beanClass) {\n\t\tsuper( beanClass );\n\t\tif( !aplosContextListener.isAplosSiteBeanDisabled( beanClass ) ) {\n\t\t\tif( website != null ) {\n\t\t\t\tthis.setWebsiteId(website.getId());\n\t\t\t}\n\t\t}\n\t}", "public String getSiteUrl();", "public String getCompanyCity() {\n return companyCity;\n }", "public static void setPublishersWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, PUBLISHERSWEBPAGE, value);\r\n\t}", "public void setSiteStatus(SiteStatus value) { _siteStatus = value; }", "public int getClientSite () {\n return clientSite;\n }", "@ZAttr(id=649)\n public void setSkinLogoURL(String zimbraSkinLogoURL) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSkinLogoURL, zimbraSkinLogoURL);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public VendorWebsiteBean getVendorWebsiteByVendorId(VendorWebsiteBean tmpVendorWebsiteBean) {\n VendorWebsiteBean vendorLandingPageBean = new VendorWebsiteBean();\n if(tmpVendorWebsiteBean!=null && !Utility.isNullOrEmpty(tmpVendorWebsiteBean.getVendorId())) {\n String sQuery = \"SELECT * FROM GTVENDORWEBSITE WHERE FK_VENDORID = ?\";\n ArrayList<Object> aParams = DBDAO.createConstraint(tmpVendorWebsiteBean.getVendorId());\n\n ArrayList<HashMap<String, String>> arrResult = DBDAO.getDBData(EVENTADMIN_DB, sQuery, aParams, false, \"AccessVendorWebsiteData.java\", \"getVendorWebsiteByVendorId()\");\n if(arrResult!=null) {\n for(HashMap<String, String> hmResult : arrResult ) {\n vendorLandingPageBean = new VendorWebsiteBean(hmResult);\n }\n }\n }\n return vendorLandingPageBean;\n }", "public void setAddressCity(String addressCity) {\n this.addressCity = addressCity;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public Builder setCompanyName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n companyName_ = value;\n onChanged();\n return this;\n }", "public void setPublishersWebpage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PUBLISHERSWEBPAGE, value);\r\n\t}", "public void setWallaMailAddress(String wallaMailAddress) {\r\n WallaMailAddress = wallaMailAddress;\r\n }", "public CimString getVendorUrl() {\n return vendorUrl;\n }", "public void setSourceSite(String newsource) {\n sourceSite=newsource;\n }", "public Builder setCompanyBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n company_ = value;\n onChanged();\n return this;\n }", "public String getWebsite(final SessionContext ctx)\n\t{\n\t\treturn (String)getProperty( ctx, WEBSITE);\n\t}", "@ZAttr(id=506)\n public void setWebClientLoginURL(String zimbraWebClientLoginURL) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraWebClientLoginURL, zimbraWebClientLoginURL);\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setPaymentURL( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), PAYMENTURL, value);\r\n\t}", "public void setMarket(WebMarket market) {\r\n this.market = market;\r\n }", "public String getWebsite()\n\t{\n\t\treturn getWebsite( getSession().getSessionContext() );\n\t}", "public static final String getCompany() { return company; }", "public void setWebPageShortUrl(String webPageShortUrl) {\n\t\tthis.webPageShortUrl = webPageShortUrl;\n\t}", "public void setSrcInformedOfWebsite(String value) {\r\n setAttributeInternal(SRCINFORMEDOFWEBSITE, value);\r\n }" ]
[ "0.729582", "0.729582", "0.6995333", "0.6937196", "0.6426231", "0.6426231", "0.63015985", "0.6289819", "0.6061775", "0.6017138", "0.5982642", "0.5887666", "0.583392", "0.5785301", "0.55791306", "0.5561861", "0.5407369", "0.5313907", "0.52049524", "0.51932317", "0.51908743", "0.51511955", "0.5143936", "0.5105845", "0.51027024", "0.50889957", "0.508524", "0.5078951", "0.5074036", "0.5064099", "0.50569814", "0.5048381", "0.5048381", "0.50384945", "0.5020761", "0.49911013", "0.49883747", "0.49831596", "0.49576062", "0.49553257", "0.4947335", "0.4933593", "0.49307472", "0.49259904", "0.4912483", "0.49076438", "0.49060112", "0.4901717", "0.48993304", "0.48727453", "0.4867934", "0.4848608", "0.4820044", "0.4809115", "0.48035058", "0.48002368", "0.47906682", "0.47813052", "0.47805032", "0.47797722", "0.47754452", "0.47704446", "0.47632146", "0.47632146", "0.47628975", "0.47510782", "0.474234", "0.474234", "0.47335848", "0.4726667", "0.4720666", "0.47202894", "0.47107145", "0.46901548", "0.4688678", "0.4688678", "0.4687834", "0.4680707", "0.46757644", "0.46756792", "0.4662522", "0.46605548", "0.46506223", "0.46475923", "0.4646274", "0.4643419", "0.4643419", "0.46404538", "0.46402246", "0.4623807", "0.46169558", "0.46158987", "0.46126476", "0.46086124", "0.46053153", "0.46029797", "0.4600447", "0.4595292", "0.4591711", "0.45826703" ]
0.61304677
8
Lista de todos os Locais
public List<Tipo> listaTipo() throws SQLException{ String sql= "SELECT * FROM aux_tipo_obra"; ResultSet rs = null ; try { PreparedStatement stmt = connection.prepareStatement(sql); rs=stmt.executeQuery(); List<Tipo> listaTipo = new ArrayList<>(); while(rs.next()){ Tipo tipo = new Tipo(); tipo.setId(rs.getInt("id_tipo")); tipo.setTipo(rs.getString("Tipo")); listaTipo.add(tipo); } return listaTipo; } catch (SQLException e) { throw new RuntimeException(e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> locations();", "Collection<L> getLocations ();", "@Test\n\tpublic void listLocations(){\n\t\tList<Location> lists = locationService.queryLoctionsByLat(29.8679775, 121.5450105);\n\t\t//System.out.println(lists.size()) ;\n\t\tfor(Location loc : lists){\n\t\t\tSystem.out.println(loc.getAddress_cn());\n\t\t}\n\t}", "public List<Location> listarPorAnunciante() throws SQLException {\r\n \r\n //OBJETO LISTA DE COMODOS\r\n List<Location> enderecos = new ArrayList<>(); \r\n \r\n //OBJETO DE CONEXÃO COM O BANCO\r\n Connection conn = ConnectionMVC.getConnection();\r\n \r\n //OBJETO DE INSTRUÇÃO SQL\r\n PreparedStatement pStatement = null;\r\n \r\n //OBJETO CONJUNTO DE RESULTADOS DA TABELA IMOVEL\r\n ResultSet rs = null;\r\n \r\n try {\r\n \r\n //INSTRUÇÃO SQL DE LISTAR IMÓVEIS\r\n pStatement = conn.prepareStatement(\"select * from pessoa inner join anuncio inner join imagem inner join imovel inner join location inner join comodo\");\r\n \r\n //OBJETO DE RESULTADO DA INSTRUÇÃO\r\n rs = pStatement.executeQuery();\r\n \r\n //PERCORRER OS DADOS DA INSTRUÇÃO\r\n while(rs.next()) {\r\n \r\n //OBJETO UTILIZADO PARA BUSCA\r\n Location endereco = new Location();\r\n \r\n //PARAMETROS DE LISTAGEM\r\n endereco.setCep(rs.getString(\"cep\"));\r\n endereco.setRua(rs.getString(\"rua\"));\r\n endereco.setNumero(rs.getInt(\"numero\"));\r\n endereco.setBairro(rs.getString(\"bairro\"));\r\n endereco.setCidade(rs.getString(\"cidade\"));\r\n endereco.setUf(rs.getString(\"uf\"));\r\n\r\n //OBJETO ADICIONADO A LISTA\r\n enderecos.add(endereco); \r\n }\r\n \r\n //MENSAGEM DE ERRO\r\n } catch (SQLException ErrorSql) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao listar do banco: \" +ErrorSql,\"erro\", JOptionPane.ERROR_MESSAGE);\r\n\r\n //FINALIZAR/FECHAR CONEXÃO\r\n }finally {\r\n ConnectionMVC.closeConnection(conn, pStatement, rs);\r\n } \r\n return enderecos;\r\n }", "java.util.List<phaseI.Hdfs.DataNodeLocation> \n getLocationsList();", "@Override\n\tpublic List<Localidad> listaLocalidades() {\n\t\treturn sesion.getCurrentSession().createCriteria(Localidad.class).list();\n\t}", "@Transactional\n\tpublic List<Location> listAllLocation() {\n\n\t\tCriteriaBuilder builder = getSession().getCriteriaBuilder();\n\t\tCriteriaQuery<Location> criteriaQuery = builder.createQuery(Location.class);\n\t\tRoot<Location> root = criteriaQuery.from(Location.class);\n\t\tcriteriaQuery.select(root);\n\t\tQuery<Location> query = getSession().createQuery(criteriaQuery);\n\n\t\t// query.setFirstResult((page - 1) * 5);\n\t\t// query.setMaxResults(5);\n\t\treturn query.getResultList();\n\t}", "public List<Area> listarAreas(){\r\n return cVista.listarAreas();\r\n }", "@Override\n public Iterable<Location> listLocations() {\n return ImmutableSet.<Location>of();\n }", "public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public List<LocalCentroComercial> consultarLocalesCentroComercialRegistrados();", "public List<Location> listarPorCliente() throws SQLException {\r\n \r\n //OBJETO LISTA DE COMODOS\r\n List<Location> enderecos = new ArrayList<>(); \r\n \r\n //OBJETO DE CONEXÃO COM O BANCO\r\n Connection conn = ConnectionMVC.getConnection();\r\n \r\n //OBJETO DE INSTRUÇÃO SQL\r\n PreparedStatement pStatement = null;\r\n \r\n //OBJETO CONJUNTO DE RESULTADOS DA TABELA IMOVEL\r\n ResultSet rs = null;\r\n \r\n try {\r\n \r\n //INSTRUÇÃO SQL DE LISTAR ENDEREÇO ATRAVES DE VIEW CRIADA NO JDBC\r\n pStatement = conn.prepareStatement(\"select * from dados_imovel_cliente;\");\r\n \r\n //OBJETO DE RESULTADO DA INSTRUÇÃO\r\n rs = pStatement.executeQuery();\r\n \r\n //PERCORRER OS DADOS DA INSTRUÇÃO\r\n while(rs.next()) {\r\n \r\n //OBJETO UTILIZADO PARA BUSCA\r\n Location endereco = new Location();\r\n \r\n //PARAMETROS DE LISTAGEM\r\n endereco.setCep(rs.getString(\"cep\"));\r\n endereco.setRua(rs.getString(\"rua\"));\r\n endereco.setNumero(rs.getInt(\"numero\"));\r\n endereco.setBairro(rs.getString(\"bairro\"));\r\n endereco.setCidade(rs.getString(\"cidade\"));\r\n endereco.setUf(rs.getString(\"uf\"));\r\n endereco.setAndar(rs.getInt(\"andar\"));\r\n endereco.setComplemento(rs.getString(\"complemento\"));\r\n \r\n //OBJETO ADICIONADO A LISTA\r\n enderecos.add(endereco); \r\n }\r\n \r\n //MENSAGEM DE ERRO\r\n } catch (SQLException ErrorSql) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao listar do banco: \" +ErrorSql,\"erro\", JOptionPane.ERROR_MESSAGE);\r\n\r\n //FINALIZAR/FECHAR CONEXÃO\r\n }finally {\r\n ConnectionMVC.closeConnection(conn, pStatement, rs);\r\n } \r\n return enderecos;\r\n }", "@Override\n public ArrayList<ICatLocDetail> getLocalities() {\n return localities;\n }", "ArrayList<Location> getMoveLocations();", "public List<LocationInfo> getAllLocation() {\n return allLocation;\n }", "public List<FavoriteLocation> queryAllLocations() {\n\t\tArrayList<FavoriteLocation> fls = new ArrayList<FavoriteLocation>(); \n\t\tCursor c = queryTheCursorLocation(); \n\t\twhile(c.moveToNext()){\n\t\t\tFavoriteLocation fl = new FavoriteLocation();\n\t\t\tfl._id = c.getInt(c.getColumnIndex(\"_id\"));\n\t\t\tfl.description = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_DES));\n\t\t\tfl.latitude = c.getDouble(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LAT));\n\t\t\tfl.longitude = c.getDouble(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_GEO_LON));\n\t\t\tfl.street_info = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_STREET));\n\t\t\tfl.type = c.getInt(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_CATEGORY));\n\t\t\tbyte[] image_byte = c.getBlob(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_PIC)); \n\t\t\tfl.image = BitmapArrayConverter.convertByteArrayToBitmap(image_byte);\n\t\t\tfl.title = c.getString(c.getColumnIndex(DBEntryContract.LocationEntry.COLUMN_NAME_TITLE));\n\t\t\tfls.add(fl);\n\t\t}\n\t\t// close the cursor\n\t\tc.close();\n\t\treturn fls;\n\t}", "public List listar() {\n Query query = Database.manager.createNamedQuery(\"StatussistemaDTO.findAll\");\n query.setHint(QueryHints.MAINTAIN_CACHE, HintValues.FALSE);// evita consulta em cache\n List lista = query.getResultList();\n return lista;\n }", "public static ArrayList<String> getLlistaNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"llista\");\n }", "public void listar() {\n\t\t\n\t}", "@RequestMapping(value=\"/locations\", method=RequestMethod.GET)\n\t@ResponseBody\n\tpublic Iterable<Location> getLocations(){\n\t\treturn lr.findAll();\n\t}", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "@GetMapping(\"/locations\")\n public List<Location> getLocations(){\n return service.getAll();\n }", "public abstract List<LocationDto> viewAll();", "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 ArrayList<String> showCity();", "public ArrayList getLocations()\r\n\t\t{\r\n\t\t\treturn locations;\r\n\t\t}", "public Locar() {\n \n initComponents();\n \n \n comboCliente.addItem(\"\");\n comboVeiculo.addItem(\"\");\n \n for (int i=0; i < LocadoraDados.getClientes().size(); i++) { \n comboCliente.addItem(LocadoraDados.getClientes().get(i).getNome()+ \" | \" + String.valueOf(LocadoraDados.getClientes().get(i).getID())); \n \n }\n \n for (int i=0; i < LocadoraDados.getVeiculos().size(); i++) { \n comboVeiculo.addItem(LocadoraDados.getVeiculos().get(i).getDescricao()+ \" | \" + String.valueOf(LocadoraDados.getVeiculos().get(i).getCodigoAuto())); \n \n }\n telaVeiculos = new Veiculos(-1);\n telaVeiculos.setVisible(false);\n \n listarLocacoes = new ListarLocacoes();\n listarLocacoes.setVisible(false);\n \n \n \n \n }", "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(key));\n\t\t\t}\n\t\n\t\t\treturn liste;\n\t\t\t\n\t\t}", "public Cursor getAllLocationsLoc(){\n if (mDB != null)\n return mDB.query(LOCNODE_TABLE, new String[] { FIELD_ROW_ID, FIELD_NAME, FIELD_ADDY, FIELD_LAT , FIELD_LNG, FIELD_TIMESVISITED }, null, null, null, null, null);\n Cursor c = null;\n return c;\n }", "public ArrayList<LocationDetail> getLocations() throws LocationException;", "private void getAllContainers() {\n AID ams = getAMS();\n QueryPlatformLocationsAction queryPlatformLocationsAction = new QueryPlatformLocationsAction();\n sendRequest(new Action(ams, queryPlatformLocationsAction));\n MessageTemplate mt = MessageTemplate.and(\n MessageTemplate.MatchSender(getAMS()),\n MessageTemplate.MatchPerformative(ACLMessage.INFORM));\n ACLMessage resp = blockingReceive(mt);\n ContentElement ce = null;\n try {\n ce = getContentManager().extractContent(resp);\n } catch (Codec.CodecException e) {\n e.printStackTrace();\n } catch (OntologyException e) {\n e.printStackTrace();\n }\n Result result = (Result) ce;\n jade.util.leap.Iterator it = result.getItems().iterator();\n while (it.hasNext()) {\n Location loc = (Location) it.next();\n containersOnPlatform.put(loc.getName(), loc);\n }\n }", "public List<String> locations() {\n return this.locations;\n }", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "public String[] getAllLocations() {\n // STUB: Return the list of source names\n return null;\n }", "LiveData<List<Location>> getAllLocations() {\n return mAllLocations;\n }", "public ArrayList<Location> getLocations() {\n return locations;\n }", "public String navigateAlunoTurmaList() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"AlunoTurma_items\", this.getSelected().getAlunoTurmaList());\n }\n return \"/pages/prime/alunoTurma/index\";\n }", "private void loadLocations()\n {\n locationsPopUpMenu.getMenu().clear();\n\n ArrayList<String> locations = new ArrayList<>(locationDBManager.findSavedLocations());\n for (int i=0; i < locations.size(); i++)\n {\n locationsPopUpMenu.getMenu().add(locations.get(i));\n }\n }", "@Override\n\tpublic List<CursoAsignatura> listar() {\n\t\treturn null;\n\t}", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "List<String> getFarzones();", "LocationsClient getLocations();", "public ArrayList<Item> getListItemFromLocationAll()\r\n\t{\r\n\t\tArrayList<Item> tempListItem = new ArrayList<Item>();\r\n\t\tfor(int i = 0; i < this.listLocation.size(); i++) \r\n\t\t{\r\n\t\t\tLocation tempLocation = this.listLocation.get(i);\r\n\t\t\ttempListItem.addAll(tempLocation.getListItem());\r\n\t\t}\r\n\t\treturn tempListItem;\r\n\t}", "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 List<Location> getLocations() {\n\t\treturn locations;\n\t}", "List<Travel> getAllTravel();", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "public ArrayList<Location> getDocks() {\n return locations.stream().filter(loc -> loc.getClass().getSimpleName().equals(\"Dock\")).collect(Collectors.toCollection(ArrayList::new));\n }", "@RequestMapping(value = \"/viewAllObjectLocationATM\", method = RequestMethod.GET)\n\tpublic List<ObjectLocationATM> viewAllObjectLocationATM() {\n\t\tAtmDAO ad = new AtmDAO();\n\t\tList<ObjectLocationATM> listObjLocationATM = ad.getAllObjectLocationATM();\n\t\treturn listObjLocationATM;\n\t}", "public List<GrauParentesco> getListTodos();", "public void criaListaArqLocal(String diretorio) {\r\n\t\tFile arquivo = new File(diretorio);\r\n\t\tFile[] aux = null;\r\n\t\taux = arquivo.listFiles();\r\n\t\tif ((this.aFilesNaPasta.size() == 0) && (this.aPastas.size() == 0)) {\r\n\t\t\tfor (int i = 0; i < aux.length; i++) {\r\n\t\t\t\tif (aux[i].isFile()) {\r\n\t\t\t\t\tthis.aFilesNaPasta.add(aux[i].getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.aPastas.add(aux[i].getName());\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.aFilesRemPasta.clear();\r\n\t\t\tthis.aPastasRemovidas.clear();\r\n\t\t} else {\r\n\t\t\taFilesRemPasta.addAll(aFilesNaPasta);\r\n\t\t\taFilesNaPasta.clear();\r\n\t\t\taPastasRemovidas.addAll(aPastas);\r\n\t\t\taPastas.clear();\r\n\t\t\tfor (int i = 0; i < aux.length; i++) {\r\n\t\t\t\tif (aux[i].isFile()) {\r\n\t\t\t\t\tthis.aFilesNaPasta.add(aux[i].getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.aPastas.add(aux[i].getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@RequestMapping(\"/viewAllLocs\")\n\tpublic String getAllLocs(ModelMap map){\n\t\tList<Location> locList=service.getAllLocations();\n\t\tmap.addAttribute(\"locListObj\", locList);\n\t\treturn \"LocationData\";\n\t}", "java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();", "@PostConstruct\r\n public void leerListaUsuarios() {\r\n listaUsuarios.addAll(usuarioFacadeLocal.findAll());\r\n }", "public Set<Location> get_all_locations() {\n Set<Location> locations = new HashSet<Location>();\n try {\n Object obj = JsonUtil.getInstance().getParser().parse(this.text);\n JSONObject jsonObject = (JSONObject) obj;\n JSONArray array = (JSONArray) jsonObject.get(\"pictures\");\n Iterator<String> iterator = array.iterator();\n while (iterator.hasNext()) {\n locations.add(new Location(iterator.next()));\n }\n return locations;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "@Override\n\tpublic List<SourceLocation> getLocations() {\n\t\treturn null;\n\t}", "@GetMapping(\"/localisations\")\n @Timed\n public List<Localisation> getAllLocalisations() {\n log.debug(\"REST request to get all Localisations\");\n return localisationService.findAll();\n }", "public java.util.List<phaseI.Hdfs.DataNodeLocation> getLocationsList() {\n if (locationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(locations_);\n } else {\n return locationsBuilder_.getMessageList();\n }\n }", "@Override\n public List<String> getCmsLocations() {\n return Collections.emptyList();\n }", "public Cursor getAllLocations()\n\t{\n\t\treturn db.query(DATABASE_TABLE, new String[] {\n\t\t\t\tKEY_DATE,KEY_LAT,KEY_LNG},\n\t\t\t\tnull,null,null,null,null);\n\t}", "private void getLocations() {\n TripSave tripSave = TripHelper.tripOngoing();\n if (tripSave != null) {\n for (LocationSave locationSave : tripSave.getLocations()) {\n if (locationSave != null) {\n tripTabFragment.drawPolyLine(new LatLng(locationSave.getLatitude(), locationSave.getLongitude()));\n }\n }\n }\n }", "public static void showAllVilla(){\n ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA);\n displayList(villaList);\n showServices();\n }", "private void listarDepartamentos() {\r\n\t\tdepartamentos = departamentoEJB.listarDepartamentos();\r\n\t}", "public List<String> getRouteList();", "public void guardaLlista() throws IOException {\n ctrl_Persistencia.guardaLlista(\"@../../Dades/\"+list.getNomLlista()+\".llista\",list);\n }", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "@RequestMapping(value = \"/current_location/all\", method = RequestMethod.GET)\n public ResponseEntity<List<CurrentLocation>> getAllFavoriteZones() {\n\n List<CurrentLocation> currentLocationList = currentLocationService.findAllCurrentLocation();\n\n if(currentLocationList.isEmpty()){\n return new ResponseEntity<List<CurrentLocation>>(HttpStatus.NO_CONTENT);\n }\n\n return new ResponseEntity<List<CurrentLocation>>(currentLocationList, HttpStatus.OK);\n }", "@Override\r\n\tpublic List<CatelistDto> Getcatesearch(LocationDto locadto) throws Exception {\n\t\treturn searchdao.Getcatesearch(locadto);\r\n\t}", "@Override\n public List<String> getCities() {\n\n List<Rout> routs = routDAO.getAll();\n HashSet<String> citiesSet = new HashSet<>();\n for (Rout r : routs) {\n citiesSet.add(r.getCity1());\n }\n List<String> cities = new ArrayList<>(citiesSet);\n\n return cities;\n }", "public ArrayList<Country> getCountryList() throws LocationException;", "public List<String> getLocationAndCity(){\n\t\treturn jtemp.queryForList(\"SELECT location_id||city FROM locations\", String.class);\n\t}", "public List<Veiculo> listarTodosVeiculos(){\n\t\tList<Veiculo> listar = null;\n\t\t\n\t\ttry{\n\t\t\tlistar = veiculoDAO.listarTodosVeiculos();\n\t\t}catch(Exception e){\n\t\t\te.getMessage();\n\t\t}\n\t\treturn listar;\n\t}", "public void loadAllLists(){\n }", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "@ResponseBody\n @RequestMapping(\n value = { \"/{municipio}/localidades\" },\n method = {RequestMethod.GET},\n produces = {\"application/json;charset=UTF-8\"})\n public List<Map<String, Object>> listLocalidades(@PathVariable(\"municipio\") Long idMunicipio) {\n return municipioService.listLocalidadesByMunicipio(idMunicipio);\n }", "public void listarMunicipios() {\r\n\t\tmunicipios = departamentoEJB.listarMunicipiosDepartamento(deptoSeleccionado);\r\n\t}", "public List<LocVo> selectLoc(String catname) {\n\t\treturn sqlSession.selectList(\"product.selectLoc\", catname);\n\t}", "public List<Tripulante> buscarTodosTripulantes();", "public abstract java.util.Set getLocations();", "java.util.List<org.landxml.schema.landXML11.LanesDocument.Lanes> getLanesList();", "public String listar() {\n DocumentoVinculadoDAO documentoVinculadoDAO = new DocumentoVinculadoDAO();\n lista = documentoVinculadoDAO.listarStatus(1);\n return \"listar\";\n\n }", "private void carregaLista() {\n listagem = (ListView) findViewById(R.id.lst_cadastrados);\n dbhelper = new DBHelper(this);\n UsuarioDAO dao = new UsuarioDAO(dbhelper);\n //Preenche a lista com os dados do banco\n List<Usuarios> usuarios = dao.buscaUsuarios();\n dbhelper.close();\n UsuarioAdapter adapter = new UsuarioAdapter(this, usuarios);\n listagem.setAdapter(adapter);\n }", "@RequestMapping(value = \"/viewAllObjectLocationGas\", method = RequestMethod.GET)\n\tpublic List<ObjectLocationGas> viewAllObjectLocationGas() {\n\t\tAndroidDAO ad = new AndroidDAO();\n\t\tList<ObjectLocationGas> listObjLocationGas = ad.getAllObjectLocationGas();\n\t\treturn listObjLocationGas;\n\t}", "public void consultarListaDeContatos() {\n\t\tfor (int i = 0; i < listaDeContatos.size(); i++) {\n\t\t\tSystem.out.printf(\"%d %s \\n\", i, listaDeContatos.get(i));\n\t\t}\n\t}", "public List<LocalCentroComercial> consultarLocalesCentroComercialPorParametro(Map<String, String> filtros);", "@Override\n\tpublic List<Veiculo> listar() {\n\t\treturn null;\n\t}", "public java.util.List<phaseI.Hdfs.DataNodeLocation> getLocationsList() {\n return locations_;\n }", "@Override\n\tpublic List<Estadoitem> listar() {\n\t\treturn estaitemdao.listar();\n\t}", "public ArrayList <String> ListDepartamentos() throws RemoteException;", "private static List<Element> getXMLLocations(Model model) {\n Set<Location> locations = new TreeSet<>(Comparators.objectsById());\n locations.addAll(model.getLocations(null));\n List<Element> result = new ArrayList<>();\n for (Location curLoc : locations) {\n Element locElement = new Element(\"location\");\n locElement.setAttribute(\"id\", String.valueOf(curLoc.getId()));\n locElement.setAttribute(\"name\", curLoc.getName());\n locElement.setAttribute(\"xPosition\",\n String.valueOf(curLoc.getPosition().getX()));\n locElement.setAttribute(\"yPosition\",\n String.valueOf(curLoc.getPosition().getY()));\n locElement.setAttribute(\"zPosition\",\n String.valueOf(curLoc.getPosition().getZ()));\n locElement.setAttribute(\"type\", curLoc.getType().getName());\n for (Location.Link curLink : curLoc.getAttachedLinks()) {\n Element linkElement = new Element(\"link\");\n linkElement.setAttribute(\"point\", curLink.getPoint().getName());\n for (String operation : curLink.getAllowedOperations()) {\n Element allowedOpElement = new Element(\"allowedOperation\");\n allowedOpElement.setAttribute(\"name\", operation);\n linkElement.addContent(allowedOpElement);\n }\n locElement.addContent(linkElement);\n }\n for (Map.Entry<String, String> curEntry\n : curLoc.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n locElement.addContent(propertyElement);\n }\n result.add(locElement);\n }\n return result;\n }", "public List<Lingua> creaListaLingue() {\n \n List<Lingua> list = linguaFacade.getLingue();\n return list;\n }", "List<Location> getLocations(String coverageType);", "public List<City> getAll() throws Exception;", "@GET\n\t@Path(\"/lstautos\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ArrayList<AutoDTO> listarLstAutos(){\n\t\tSystem.out.println(\"ini: listarLstAutos()\");\n\t\t\n\t\tAutoService autoService = new AutoService();\n\t\tArrayList<AutoDTO> lista = autoService.ListadoAuto();\n\t\t\n\t\tif (lista == null) {\n\t\t\tSystem.out.println(\"Listado Vacío\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Consulta Exitosa\");\n\t\t}\n\n\t\tSystem.out.println(\"fin: listarLstAutos()\");\n\t\t\n\t\treturn lista;\n\t}", "public static ArrayList<Location> GetAllLocations(){\n \n ArrayList<Location> Locations = new ArrayList<>();\n try ( \n Connection connection = DbConnector.connectToDb();\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM location\")){\n \n while(resultSet.next())\n {\n Location location = new Location();\n location.setCity(resultSet.getString(\"City\"));\n location.setCity(resultSet.getString(\"AirportCode\"));\n Locations.add(location);\n }\n \n \n }\n catch(SQLException sqle){\n System.out.println(sqle.toString());\n } \n \n return Locations;\n }", "public List<Lote> listarLotes() {\n List<Lote> listaLotes;\n listaLotes = jpaLote.findLoteEntities();\n List<Lote> listaFiltrada = new ArrayList<Lote>();\n for (Lote lote : listaLotes) {\n if (lote.getEstado() == true){\n listaFiltrada.add(lote);\n }\n }\n return listaFiltrada;\n }", "public static List<CentroDeCusto> readAllAtivos() {\n Query query = HibernateUtil.getSession().createQuery(\"FROM CentroDeCusto WHERE status = 'A'\");\n return query.list();\n }", "@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}", "@Override\n\tpublic List<Historic_siteVO> MainLocation() throws Exception {\n\t\treturn dao.MainLocation();\n\t}" ]
[ "0.74037796", "0.68990046", "0.66844827", "0.66237056", "0.65938663", "0.6564547", "0.6448821", "0.6361281", "0.63487655", "0.63029385", "0.6276357", "0.62665564", "0.62107414", "0.6197044", "0.61529887", "0.61171216", "0.6104236", "0.6065043", "0.60620975", "0.60612047", "0.60524625", "0.6051214", "0.6044366", "0.6027135", "0.6023574", "0.60042655", "0.60028315", "0.5988594", "0.59789264", "0.59646064", "0.5942626", "0.5942433", "0.5921944", "0.5911391", "0.5900895", "0.58991206", "0.5895378", "0.5895103", "0.58942914", "0.588338", "0.5882046", "0.5879716", "0.5871783", "0.5863983", "0.5862023", "0.58605796", "0.58569664", "0.58564776", "0.5854366", "0.5833605", "0.582872", "0.5801902", "0.57971835", "0.57969004", "0.5795755", "0.57859266", "0.57805324", "0.5773117", "0.57626396", "0.5758809", "0.5756372", "0.57528293", "0.5747609", "0.57415676", "0.5740809", "0.5729119", "0.5727446", "0.5720137", "0.57168895", "0.5712274", "0.5711115", "0.5703112", "0.56924134", "0.5690726", "0.56760156", "0.56744087", "0.5669739", "0.5663317", "0.56527317", "0.5645805", "0.56427455", "0.5625531", "0.5623862", "0.5606229", "0.5602029", "0.56018925", "0.5600087", "0.5593494", "0.5583279", "0.55812484", "0.5578204", "0.55759805", "0.5571143", "0.55691737", "0.55686635", "0.55679864", "0.5564158", "0.5561515", "0.5560375", "0.5545299", "0.55402" ]
0.0
-1
Created by Administrator on 2016/1/15.
public interface WrapperAdapter { RecyclerView.Adapter getWrappedAdapter(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo4359a() {\n }", "@Override\n public void memoria() {\n \n }", "public contrustor(){\r\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void initialize() {\n\n \n }", "Constructor() {\r\n\t\t \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 }", "Petunia() {\r\n\t\t}", "public void verarbeite() {\n\t\t\r\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private TMCourse() {\n\t}", "public void create() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "public void gored() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public Pitonyak_09_02() {\r\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void create() {\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 nadar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public void mo6081a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private static void oneUserExample()\t{\n\t}", "public void mo12930a() {\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void emprestimo() {\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\tprotected void initialize() {\n\n\t}", "protected Doodler() {\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "protected void aktualisieren() {\r\n\r\n\t}", "private UsineJoueur() {}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n void init() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private 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}" ]
[ "0.6262119", "0.60942644", "0.60161275", "0.5964295", "0.5928441", "0.59261245", "0.589816", "0.5840261", "0.58370626", "0.5815618", "0.5793048", "0.5793048", "0.57930243", "0.57930243", "0.574658", "0.5727309", "0.57239234", "0.57213885", "0.571949", "0.57167554", "0.56982434", "0.5664535", "0.56637394", "0.565882", "0.5653019", "0.56428033", "0.5641572", "0.5640539", "0.5633434", "0.56303364", "0.5626075", "0.56248987", "0.56151044", "0.560565", "0.560565", "0.560565", "0.560565", "0.560565", "0.560565", "0.560565", "0.5603663", "0.5592158", "0.5590613", "0.5587578", "0.5583202", "0.55617666", "0.55614483", "0.5558728", "0.5534028", "0.5529463", "0.55171835", "0.5508757", "0.5500733", "0.5495237", "0.54922664", "0.5487056", "0.5460253", "0.54563046", "0.54454327", "0.54453397", "0.54453397", "0.54453397", "0.54453397", "0.54453397", "0.54453397", "0.5437861", "0.54373276", "0.5431273", "0.5431273", "0.5420897", "0.5419547", "0.5415699", "0.5401657", "0.53988945", "0.5398088", "0.5392651", "0.5387664", "0.5384073", "0.5384073", "0.5384073", "0.5384073", "0.5384073", "0.53815097", "0.5379744", "0.5378588", "0.53765064", "0.53740215", "0.5370881", "0.5369622", "0.5367311", "0.5364039", "0.5348504", "0.53431803", "0.53431803", "0.53431803", "0.5342992", "0.5339171", "0.5338761", "0.53377134", "0.5337502", "0.5337502" ]
0.0
-1
Set up state for handling chat requests.
@Override public void init() throws ServletException { super.init(); setConversationStore(ConversationStore.getInstance()); setMessageStore(MessageStore.getInstance()); setUserStore(UserStore.getInstance()); setNotificationTokenStore(NotificationTokenStore.getInstance()); setSendNotification(new SendNotification()); setEmojiStore(EmojiStore.getInstance()); currentCustomEmoji = null; JSONParser parser = new JSONParser(); try{ File file = new File(getClass().getClassLoader().getResource("emoji/emojis.json").getFile()); Object obj = parser.parse(new FileReader(file)); JSONObject jsonObject = (JSONObject) obj; // loop array JSONArray emojis = (JSONArray) jsonObject.get("emojis"); Iterator<JSONObject> iterator = emojis.iterator(); while (iterator.hasNext()) { JSONObject emoji = iterator.next(); String shortname = (String) emoji.get("shortname"); String htmlCode = (String) emoji.get("html"); if (shortname != null && !shortname.isEmpty() && shortname.length() > 2){ validEmojis.put(shortname.substring(1, shortname.length()-1), htmlCode); } } } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } catch (ParseException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setChatState(final ChatState state)\n\t{\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tif(stateToMessageMap.containsKey(state.getUserStatus()))\n\t\t\t\t{\n\t\t\t\t\tprint(\"\\n\" + stateToMessageMap.get(state.getUserStatus()) + \"\\n\");\n\t\t\t\t}\n\t\t\t\tsetConnected(state.isLoggedIn());\n\t\t\t\tclearUserNames();\n\t\t\t\tif(state.isLoggedIn())\n\t\t\t\t{\n\t\t\t\t\taddUserNames(state.getLoggedInUserNames());\n\t\t\t\t\tfinal List<ChatMessage> messages = state.getChatMessages();\n\t\t\t\t\tCollections.sort(messages);\n\t\t\t\t\tfor (final ChatMessage message : messages)\n\t\t\t\t\t{\n\t\t\t\t\t\taddMessage(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tmainFrame.revalidate();\n\t\t \t\tmainFrame.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void setupChat() {\n Log.d(TAG, \"setupChat()\");\n\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n mConversationView.setAdapter(mConversationArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n\n // Initialize the send button with a listener that for click events\n\n // Initialize the BluetoothChatService to perform bluetooth connections\n mChatService = new BluetoothChatService(getActivity(), mhandler);\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n switchForFileSaved.setOnCheckedChangeListener(switchListener) ;\n }", "private void setupChat() {\n chatService = new BluetoothChatService(NavigationDrawerActivity.this, mHandler);\n\n }", "private void setupChat() {\n\n\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n mConversationView.setAdapter(mConversationArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n mOutEditText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n mSendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n // Send a message using content of the edit text widget\n View view = getView();\n if (null != view) {\n TextView textView = (TextView) view.findViewById(R.id.edit_text_out);\n String message = textView.getText().toString();\n Bundle bundle=new Bundle();\n bundle.putString(BluetoothChatFragment.EXTRAS_ADVERTISE_DATA, message);\n mCallback.onSendMessage(bundle);\n //對話框上顯示\n mConversationArrayAdapter.add(\"Me: \" + message);\n //設為不可發送 並清除訊息文字編輯區\n Send_btn=false;\n mSendButton.setEnabled(Send_btn);\n mOutStringBuffer.setLength(0);\n mOutEditText.setText(mOutStringBuffer);\n\n }\n }\n });\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n }", "public void init() {\r\n\t\ttry {\r\n\t\t\tmessages = new ConcurrentLinkedDeque<>();\r\n\t\t\tout = sock.getOutputStream();\r\n\t\t\tin = sock.getInputStream();\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstartMessageThread();\r\n\t}", "public ChatRequest()\r\n\t{\r\n\t}", "@Override\n protected void initChannel(SocketChannel ch){\n ch.pipeline().addLast(new IdleStateHandler(3,5,7, TimeUnit.SECONDS));\n ch.pipeline().addLast(new ServerHandler());\n }", "@Override\n\tprotected void start() {\n\t\tif (Cfg.DEBUG) {\n\t\t\tCheck.log(TAG + \" (actualStart)\");\n\t\t}\n\t\treadChatMessages();\n\t}", "private ChatAdministration(){\n\t\troomlist = new ChatRoomTableModel();\n\t\tfilelist = new ChatFileTableModel();\n\t\tchatConnection = ChatConnection.getInstance();\n\t\tconnectionconfig = loadConnectionConfiguration();\n\t}", "private void setupChat() {\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n //\n mFlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.FLASH,(byte)Constants.LED3);\n\n }\n }\n });\n mLightButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.FLASH,(byte)Constants.LED2);\n }\n }\n });\n mN1FlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.CLEARMEMORY,(byte)Constants.NODE1);\n }\n }\n });\n mN2FlashButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n sendMessage((byte)Constants.BUSSIGNAL,(byte)Constants.NODE2);\n }\n }\n });\n\n updateLightSensorValuesButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view) {\n updateLightSensorValues();\n }\n }\n });\n downloadDataButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n View view = getView();\n if (null != view)\n {\n sendMessage((byte)Constants.READMEMORY,(byte)0);\n dataStream.clear();\n }\n }\n });\n\n\n // Initialize the BluetoothChatService to perform bluetooth connections\n mChatService = new BluetoothChatService(getActivity(), mHandler);\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n }", "public void run()\n\t{\n\t\tint state = 1;\n\t\t\n\t\ttry \n\t\t{\n\t\t\t_socket = new Socket(_hostname, Integer.parseInt(_portnum));\n\t\t\t\t\t\t\n\t\t\t_sendBuf = new byte[_socket.getSendBufferSize()];\n\t\t\t_recBuf = new byte[_socket.getReceiveBufferSize()];\n\t\t\t\n\t\t\t_address = _socket.getInetAddress();\n\t\t\t_port = _socket.getPort();\n\t\t\t_user = new User(_myName, _address, _port);\n\t\t\t\n\t\t\t_sendBuf = toByteArray(_user);\n\t\t\t_socket.getOutputStream().write(Message.USER);\n\t\t\t_socket.getOutputStream().write(_sendBuf);\n\t\t\t_socket.getOutputStream().flush();\n\t\t\t\n\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\n\t\t\twhile (state == 200)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Username already is use!\");\n\t\t\t\tbuildRelog();\n\t\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\tSystem.out.println(state);\n\t\t\t\t_relogFrame.dispose();\n\t\t\t\t\n\t\t\t\tif (state != 200)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tClient._mainFrame.setTitle(\"Cr@p Talk: \" + _myName);\n\t\t\tClient._mainFrame.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tMessage rec = new Message();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tif (state == Message.HASHSET)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing hashset\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\tObject[] online = (Object[]) toObject(_recBuf);\n\t\t\t\t\t\tString[] onlineList = new String[online.length];\n\t\t\t\t\t\tfor (int i = 0; i < online.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tonlineList[i] = (String) online[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tClient._userList.setListData(onlineList);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.LOBBY)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing lobby\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(\"[\" + rec.getOrigin() +\"]: \" + rec.getMessage() + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.WHISPER)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing whisper\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(\"[\" + rec.getOrigin() +\"(whisp)]: \" + rec.getMessage() + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.SHARED)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing shared\");\n\t\t\t\t\t\tArrayList<String> files = new ArrayList<String>();\n\t\t\t\t\t\tScanner file = new Scanner(new File(\"shared.txt\"));\n\t\t\t\t\t\t\n\t\t\t\t while(file.hasNextLine()) \n\t\t\t\t {\n\t\t\t\t String line = file.nextLine();\n\t\t\t\t files.add(line);\n\t\t\t\t }\n\t\t\t\t _sendBuf = toByteArray(files.toArray());\n\t\t\t\t _socket.getOutputStream().write(Message.TEXT);\n\t\t\t\t _socket.getOutputStream().write(_sendBuf);\n\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\tSystem.out.println(\"sent data\");\n\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.RESULTS)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing results\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t \t\t\tObject[] lines = (Object[]) toObject(_recBuf);\n\t \t\t\t\n\t \t\t\tString[] mal = new String[lines.length];\n\t \t\t\t\n\t \t\t\tfor (int i = 0; i < lines.length; i++)\n\t \t\t\t{\n\t \t\t\t\tmal[i] = (String) lines[i];\n\t \t\t\t}\n\t \t\t\tbuildResultGUI(mal);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.TEST)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing test\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] data = rec.getMessage().split(\"\\\\&\\\\&\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t_person = data[0];\n\t\t\t\t\t\t_fileName = data[1];\n\t\t\t\t\t\t_filePath = data[2];\n\t\t\t\t\t\t_comPort = Integer.parseInt(data[3]);\n\t\t\t\t\t\tSystem.out.println(\"*******SENDER PORT: \" + _comPort);\n\t\t\t\t\t\t_fileKey = data[4];\n\n\t\t\t\t\t\tString prompt = \"Upload \" + _fileName + \" to \" + _person + \"?\";\n\t\t\t\t\t\tint reply = JOptionPane.showConfirmDialog(null, prompt, \"Upload confirmation\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t \n\t\t\t\t\t\tif (reply == JOptionPane.YES_OPTION)\n\t\t\t\t {\t\t\t\t \n\t\t\t\t\t\t\tFile file = new File(_filePath);\n\t\t\t\t\t\t\tlong fileSize = file.length();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<String> metaData = new ArrayList<String>();\n\t\t\t\t\t\t\tmetaData.add(\"\" + _comPort);\n\t\t\t\t\t\t\tmetaData.add(\"\" + fileSize);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t_sendBuf = toByteArray(metaData.toArray());\n\t\t\t\t\t\t\t\n\t\t\t\t \tSystem.out.println(\"accepted\");\n\t\t\t\t \t_socket.getOutputStream().write(Message.ACCEPT);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\t\t\n\t\t\t\t \t_socket.getOutputStream().write(_sendBuf);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tClient._sending = new SenderThread(_fileName, _filePath, _comPort, _fileKey);\n\t\t\t\t\t\t\tClient._sending.start();\n\t\t\t\t }\n\t\t\t\t else \n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"declined\");\n\t\t\t\t \t_socket.getOutputStream().write(Message.DECLINE);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.ACCEPT)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing accept\");\n\t\t\t\t\t\tlong fileSize = 0;\n\t\t\t\t\t\tint port = -1;\n\t\t\t\t\t\t\n\t\t\t\t\t\t_fileKey = Client._key;\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t \t\t\tObject[] data = (Object[]) toObject(_recBuf);\n\t \t\t\t\n\t \t\t\tport = Integer.parseInt((String) data[0]);\n\t \t\t\tfileSize = Long.parseLong((String) data[1]);\n\t \t\t\t\n\t \t\t\tSystem.out.println(\"*******RECV PORT: \" + port);\n\t \t\t\t\n\t \t\t\tClient._receiving = new ReceiverThread(_fileName, _hostname, port, _fileKey, fileSize);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(300);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tClient._receiving.start();\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.DECLINE)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing decline\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"File transfer denied.\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.DC)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing dc\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(rec.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.SERVERDOWN)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing serverdown\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Server has gone down...\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.ERROR)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing error\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"It's bad to talk to yourself...\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.REMOVED)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing doing removed\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (SocketException e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"Server is not responding\");\n\t\t\tSystem.exit(0);\n\t\t} \n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (ClassNotFoundException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "private void init() {\n\t\tname = getIntent().getStringExtra(\"name\");\n\t\tnameID = getIntent().getStringExtra(\"id\");\n\n\t\tsetSupportActionBar(mToolbar);\n\t\tsetSupportActionBar(mToolbar);\n\t\tgetSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\t\tgetSupportActionBar().setDisplayShowHomeEnabled(true);\n\t\tmToolbar.setTitle(name);\n\t\tmToolbar.setNavigationOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\n\t\tmBtnSendText.setEnabled(false);\n\t\tchatViewModel = ViewModelProviders.of(this).get(ChatViewModel.class);\n\t\tchatAdapter = new ChatAdapter(this, this);\n\n\t\tLinearLayoutManager linearLayoutManager = new LinearLayoutManager(getApplicationContext(), RecyclerView.VERTICAL, false);\n\t\tlinearLayoutManager.setStackFromEnd(true);\n\t\tmChatList.setLayoutManager(linearLayoutManager);\n\t\tmChatList.setAdapter(chatAdapter);\n\n\t\t// Send Button click listener.\n\t\tmBtnSendText.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tcheckConnection();\n\t\t\t}\n\t\t});\n\n\t\t// Chat Box text change listener.\n\t\tmChatBox.addTextChangedListener(new TextWatcher() {\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n\t\t\t\tif (charSequence.length() == 0)\n\t\t\t\t\tmBtnSendText.setEnabled(false);\n\t\t\t\telse\n\t\t\t\t\tmBtnSendText.setEnabled(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable editable) {\n\n\t\t\t}\n\t\t});\n\t}", "private SimpleChatUI() {\n initComponents();\n convo = null;\n setConnStatus(false);\n jMessageEntry.addActionListener(new java.awt.event.ActionListener() {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jSendButtonActionPerformed(evt);\n }\n });\n }", "public void updateConversationState() {\n Conversation.State state = this.anonymousConversation.getState();\n conversationStateTextView.setText(state.toString());\n switch (state) {\n case ESTABLISHED:\n this.meetingJoined = true;\n break;\n case IDLE:\n conversationStateTextView.setText(\"\");\n this.meetingJoined = false;\n if (this.anonymousConversation != null) {\n this.anonymousConversation.removeOnPropertyChangedCallback(this.conversationPropertyChangeListener);\n this.anonymousConversation = null;\n }\n break;\n default:\n }\n\n // Refresh the UI\n this.updateUiState();\n\n if (meetingJoined) {\n this.navigateToConversationsActivity();\n }\n }", "private void setupChat() {\n chatArrayAdapter = new ArrayAdapter<String>(MainActivity.this, R.layout.message);\n\n listView.setAdapter(chatArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n editText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n sendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n String message = editText.getText().toString();\n if(!message.equals(\"\")) {\n sendMessage(message);\n }\n }\n });\n\n }", "protected void setState(IMAP.IMAPState state)\n {\n __state = state;\n }", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case Constants.MESSAGE_STATE_CHANGE:\n\n break;\n\n }\n }", "public ChatClient() {\n\n }", "public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}", "@Override\r\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(\"tcpDecoder\", new MessageDecoder());\r\n\t\tch.pipeline().addLast(\"tcpHandler\", new TcpServerHandler(ac)); \r\n\t\t\r\n\t}", "public static void start() {\n enableIncomingMessages(true);\n }", "@Override\n\tprotected void initChannel(SocketChannel ch) throws Exception {\n\t\tch.pipeline().addLast(\"tcpDecoder\", new MessageDecoder());\n\t\tch.pipeline().addLast(\"tcpHandler\", new TcpServerHandler(ac)); \n\t\t\n\t}", "public void receive()\n {\n //Client receives a message: it finds out which type of message is and so it behaves differently\n //CHAT message: prints the message in the area\n //CONNECT message: client can't receive a connect message from the server once it's connected properly\n //DISCONNECT message: client can't receive a disconnect message from the server\n //USER_LIST message: it shows the list of connected users\n try\n {\n String json = inputStream.readLine();\n\n switch (gson.fromJson(json, Message.class).getType())\n {\n case Message.CHAT:\n ChatMessage cmsg = gson.fromJson(json, ChatMessage.class);\n\n if(cmsg.getReceiverClient() == null)\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO ALL): \" + cmsg.getText() + \"\\n\");\n else\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO YOU): \" + cmsg.getText() + \"\\n\");\n break;\n case Message.CONNECT:\n //Send login nickname and wait for permission to join\n //if message code is 1, nickname is a duplicate and must be changed, then login again\n //(send call is inside button event)\n ConnectMessage comsg = gson.fromJson(json, ConnectMessage.class);\n\n if(comsg.getCode() == 1)\n {\n //Show error\n ChatGUI.getInstance().getLoginErrorLabel().setVisible(true);\n }\n else\n {\n //Save nickname\n nickname = ChatGUI.getInstance().getLoginField().getText();\n\n //Hide this panel and show main panel\n ChatGUI.getInstance().getLoginPanel().setVisible(false);\n ChatGUI.getInstance().getMainPanel().setVisible(true);\n }\n break;\n case Message.USER_LIST:\n UserListMessage umsg2 = gson.fromJson(json, UserListMessage.class);\n fillUserList(umsg2);\n break;\n }\n } \n catch (JsonSyntaxException | IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}", "public TCommChatPanel() {\r\n\t\tinitialize();\r\n\t}", "public void run() {\n SimpleChatUI firstWin = new SimpleChatUI();\n windows.add(firstWin);\n firstWin.setVisible(true);\n hub = new HubSession(new LoginCredentials(new ChatKeyManager(CHAT_USER)));\n\n firstWin.setStatus(\"No active chat\");\n }", "private void initializeChannelize() {\n ChannelizeConfig channelizeConfig = new ChannelizeConfig.Builder(this)\n .setAPIKey(Config.API_KEY)\n .setLoggingEnabled(true).build();\n Channelize.initialize(channelizeConfig);\n Channelize.getInstance().setCurrentUserId(ChannelizePreferences.getCurrentUserId(getContext()));\n if (Channelize.getInstance().getCurrentUserId() != null\n && !Channelize.getInstance().getCurrentUserId().isEmpty()) {\n Channelize.connect();\n }\n\n ChannelizeUIConfig channelizeUIConfig = new ChannelizeUIConfig.Builder()\n .enableCall(true)\n .build();\n ChannelizeUI.initialize(channelizeUIConfig);\n channelize = Channelize.getInstance();\n\n ChannelizeUtils channelizeUtils = ChannelizeUtils.getInstance();\n channelizeUtils.setOnConversationClickListener(this);\n }", "Conversation(String user) {\n\t\t\tuser = this.user;\n\t\t\tstate = \"main\";\n\t\t}", "public TCPMessengerServer() {\n initComponents();\n customInitComponents();\n listenForClient(); \n }", "@Override\n\tpublic void onChatReceived(ChatEvent arg0) {\n\t\t\n\t}", "public void receiveChatRequest() {\n\t\t\r\n\t\tString message = \"Chat request details\";\r\n\t\t\r\n\t\t//Notify the chat request details to the GUI\r\n\t\tthis.observable.notifyObservers(message);\r\n\t}", "public Chat(){ }", "public GlobalChat() {\r\n // Required empty public constructor\r\n }", "public Chat() {\n }", "public void enableChat();", "private void setupChatRoom() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(settingsBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "public void ChatGUI() {\n try {\n\n DataOutputStream out = new DataOutputStream(socket.getOutputStream());\n DataInputStream in = new DataInputStream(socket.getInputStream());\n out.writeUTF(\"Connmain\");\n String message = in.readUTF();\n if (message.equals(\"Conf\")) {\n ObjectInputStream inOb = new ObjectInputStream(socket.getInputStream());\n ArrayList<String> chatlog = (ArrayList<String>) inOb.readObject();\n\n new ChatGUI().start(stage, this, socket, chatlog);\n }\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Override\n\t\tpublic void handleMessage(Message msg)\n\t\t{\n\t\t\tsuper.handleMessage(msg);\n\t\t\tif (msg.what == INIT_OK)\n\t\t\t{\n\t\t\t\tThinksns app = (Thinksns) LauncherActivity.this.getApplicationContext();\n\t\t\t\tapp.initApi();\n\t\t\t\tIntent intent;\n\t\t\t\tif (app.HasLoginUser())\n\t\t\t\t{\n\t\t\t\t\tintent = new Intent(LauncherActivity.this, HomeActivity.class);\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tBundle data = new Bundle();\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tApi.Status status = app.initOauth();\n\t\t\t\t\t\tif (status == Api.Status.RESULT_ERROR)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdata.putBoolean(\"status\", false);\n\t\t\t\t\t\t\tdata.putString(\"message\",\n\t\t\t\t\t\t\t\t\tLauncherActivity.this.getResources().getString(R.string.request_key_error));\n\t\t\t\t\t\t}else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdata.putBoolean(\"status\", true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch (ApiException e1)\n\t\t\t\t\t{\n\t\t\t\t\t\tdata.putBoolean(\"status\", false);\n\t\t\t\t\t\tdata.putString(\"message\", e1.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\tintent = new Intent(LauncherActivity.this, LoginActivity.class);\n\t\t\t\t\tintent.putExtras(data);\n\t\t\t\t}\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t\t\t\tLauncherActivity.this.startActivity(intent);\n initThread.quit();\n\t\t\t\tAnim.in(LauncherActivity.this);\n LauncherActivity.this.finish();\n\t\t\t}\n\t\t}", "@Override\r\n public void setListener() {\n input.setInputListener(this);\r\n\r\n //bind load more listener, it will track scroll up\r\n messagesAdapter.setLoadMoreListener(this);\r\n\r\n //bind on message long click\r\n messagesAdapter.setOnMessageLongClickListener(this);\r\n\r\n //get called when a incoming message come..\r\n socketManager.getSocket().on(\"updateChat\", new Emitter.Listener() {\r\n @Override\r\n public void call(Object... args) {\r\n String messageData = (String) args[0];\r\n Gson gson = new Gson();\r\n _Message message = gson.fromJson(messageData, _Message.class);\r\n\r\n //double check for valid room\r\n if (me.isValidRoomForUser(message.getRoomName())) {\r\n\r\n //sometime nodejs can broadcast own message so check and message should be view immediately\r\n\r\n if(!message.getUser().getId().equals(me.getId())) {\r\n //save new incoming message to realm\r\n saveOrUpdateNewMessageRealm(message);\r\n\r\n //check and save validity of room incoming user\r\n runOnUiThread(() -> {\r\n\r\n messagesAdapter.addToStart(message, true);\r\n });\r\n }\r\n\r\n }\r\n }\r\n });\r\n }", "private void initialize(){\n\t\ttry\n\t\t{\n\t\t\tString[] packet = setPacket();\n\t\t\tif (validatePacket(packet))\n\t\t\t{\n\t\t\t\tsend(packet);\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\tSystem.out.println(\"Something went wrong...\");\n\t\t\tresetClient();\n\t\t}\n\t}", "public Server () {\n\t\t\n\t\tsuper(\"The best messager ever! \");\n\t\t//This sets the title. (Super - JFrame).\n\t\t\n\t\tuserText = new JTextField();\n\t\tuserText.setEditable(false);\n\t\tuserText.addActionListener(\n\t\t\t\tnew ActionListener() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tsendMessage(event.getActionCommand());\n\t\t\t\t\t\t//This returns whatever event was performed in the text field i.e the text typed in.\n\t\t\t\t\t\tuserText.setText(\"\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t);\n\t\t\n\t\tadd(userText,BorderLayout.NORTH);\n\t\tchatWindow = new JTextArea();\n\t\tadd(new JScrollPane (chatWindow));\n\t\tsetSize(800,600);\n\t\tsetVisible(true);\n\t\t\n\t\t\n\t\n\t\n\t}", "public void Configure()\n\t\t{\n\t\t/*--- Instantiate the message buffer ----*/\n\t\tmessagesin = abstract_robot.getReceiveChannel();//COMMUNICATION\n\t\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_inbox);\n\t\tToolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n\t\tsetSupportActionBar(toolbar);\n\t\tif (getSupportActionBar() != null) {\n\t\t\tgetSupportActionBar().setTitle(\"Inbox\");\n\t\t}\n\n\t\trequester = new RequestHandler(this); // GET RID OF THIS SOON!!!\n\t\tChatIntent = new Intent(Constants.CHAT_INTENT);\n\t\tExchangeIntent = new Intent(Constants.KEY_EXCHANGE_INTENT);\n\n\t\t//FAB to create new conversation with a user\n\t\tFloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\n\t\tfab.setOnClickListener(new View.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tfinal AlertDialog.Builder builder = new AlertDialog.Builder(InboxActivity.this);\n\t\t\t\tbuilder.setTitle(\"Start new Conversation with: \");\n\n\t\t\t\t//text field that takes in the friend's name you want to start a new converastion with\n\t\t\t\tfinal EditText newChatInput = new EditText(InboxActivity.this);\n\t\t\t\tbuilder.setView(newChatInput);\n\n\t\t\t\t//button to start a new conversation\n\t\t\t\tbuilder.setPositiveButton(\"Go\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (!newChatInput.getText().toString().equals(\"\")) {\n\t\t\t\t\t\t\tfriend = newChatInput.getText().toString();\n\n\t\t\t\t\t\t\t//TODO Send conversation, instead of username and friend\n\t\t\t\t\t\t\tChatIntent.putExtra(\"username\", username);\n\t\t\t\t\t\t\tChatIntent.putExtra(\"friend\", friend);\n\t\t\t\t\t\t\tChatIntent.putExtra(\"jwt\", jwt);\n\t\t\t\t\t\t\tstartActivity(ChatIntent);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tToast.makeText(InboxActivity.this, \"You need to enter a username.\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t//button sends you to activity that exchanges keys\n\t\t\t\tbuilder.setNegativeButton(\"Exchange Keys\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tExchangeIntent.putExtra(\"username\", username);\n\t\t\t\t\t\tstartActivity(ExchangeIntent);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tbuilder.show();\n\t\t\t}\n\t\t});\n\n\t\t//ONLY CALL THIS IF RECEIVED JWT (I.E. Login successful)\n\t\tBundle extras = getIntent().getExtras();\n\t\tif (extras != null) {\n\n\t\t\t//gets token and username from previous activity\n\t\t\tjwt = extras.getString(\"jwt\");\n\t\t\tusername = extras.getString(\"username\");\n\t\t\tlv = (ListView) findViewById(R.id.list);\n\t\t\tconversations = new ArrayList<>();\n\n //look for inbox file for the given user\n File inboxFile = new File(InboxActivity.this.getFilesDir().getPath() + username + \"_\" + Constants.INBOX_FILENAME);\n if (inboxFile.exists()) {\n try {\n //read the inbox from the file\n ObjectInputStream inputStream = new ObjectInputStream(new FileInputStream(inboxFile));\n Object inboxObj = inputStream.readObject();\n if (inboxObj instanceof Inbox) {\n inbox = (Inbox) inboxObj;\n }\n }\n catch (Exception e) {\n Log.w(\"Error Reading Inbox: \", e.getMessage());\n }\n }\n else {\n //if the file doesn't exist, create a new inbox\n inbox = new Inbox(username);\n }\n\n //TODO then pull any new messages from the server. Should this be a thread that polls the server every so often?\n inbox.updateInbox(username, InboxActivity.this);\n\t\t\t//Get messages when screen loads\n\t\t\trequester.getConversations(username, lv, conversations, InboxActivity.this); //THIS SHOULD BE GONE SOON!\n\n\t\t\t//swipe down to refresh, I.E. get messages from the server.\n\t\t\tfinal SwipeRefreshLayout swipeRefreshLayout = (SwipeRefreshLayout) findViewById(R.id.swiperefresh);\n\t\t\tswipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onRefresh() {\n\n\t\t\t\t\trequester.getConversations(username, lv, conversations, InboxActivity.this);\n Log.w(\"GetConversations Object\", requester.getGETresponse().toString());\n\n\t\t\t\t\tswipeRefreshLayout.setRefreshing(false);\n\t\t\t\t}\n\t\t\t});\n\n\n\t\t\t//Add on click listener to list view to get desired conversation\n\t\t\tlv.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n\n\t\t\t\t\t//get name of friend from the list\n\t\t\t\t\tfriend = (String) lv.getItemAtPosition(i);\n\n //TODO pass conversation object to chat activity\n\t\t\t\t\t//fill intent Extras, and start new activity\n\t\t\t\t\tChatIntent.putExtra(\"username\", username);\n\t\t\t\t\tChatIntent.putExtra(\"friend\", friend);\n\t\t\t\t\tChatIntent.putExtra(\"jwt\", jwt);\n\t\t\t\t\tstartActivity(ChatIntent);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "private SocketMessage() {\n initFields();\n }", "@Override\r\n\t\t\t\tpublic synchronized void handleMessage(Message msg) {\n\t\t\t\t\tswitch(msg.what){\r\n\t\t\t\t\t//--------------通用消息-------------------------//\r\n\t\t\t\t\tcase TEACHEREXIST:// 教师端存在,如果没有被初始化,向教师端请求信息\r\n\t\t\t\t\t\t//设置连接状态\r\n\t\t\t\t\t\tif(!initialed){//未初始化,请求初始化信息\r\n\t\t\t\t\t\t\t\t//设置教师端IP\r\n\t\t\t\t\t\t\t\tif(ServerIP == null){\r\n\t\t\t\t\t\t\t\t\tServerIP = msg.getData().getString(\"ServerIP\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tus.SetIP(ServerIP);\r\n\t\t\t\t\t\t\t\t//发送学生信息请求\r\n\t\t\t\t\t\t\t\ttagCommandCode tcmd = new tagCommandCode(\" \",\" \",\" \");//否则为null!!!\r\n\t\t\t\t\t\t\t\ttcmd.SetCmdID(GETSTUINFO);\r\n\t\t\t\t\t\t\t\tus.SendMsg(tcmd.toByteArray());\r\n\t\t\t\t\t\t\t\tLog.i(\"ActivityInfo---Login===>\", \"GETSTUINFO\");\r\n\t\t\t\t\t\t\t\ttcmd.SetCmdID(LOGIN);// 在线ID\r\n\t\t\t\t\t\t\t\tus.SendMsg(tcmd.toByteArray());// 发送消息\r\n\t\t\t\t\t\t\t\tLog.i(\"ActivityInfo---Login===>\", \"Not Initialed\");\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tif(!connected){//发生改变时才操作\r\n\t\t\t\t\t\t\t\tconnected = true;\r\n\t\t\t\t\t\t\t\tpbLandlight.setImageResource(R.drawable.green);//设置为在线\r\n\t\t\t\t\t\t\t\tLog.i(\"LandLight========>\",\"Online!!!\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(ServerIP == null){\r\n\t\t\t\t\t\t\t\tServerIP = msg.getData().getString(\"ServerIP\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcmd.SetCmdID(GETSTUINFO);\r\n\t\t\t\t\t\t\tus.SendMsg(cmd.toByteArray());\r\n\t\t\t\t\t\t\tLog.i(\"ActivityInfo---Login===>\", \"GETSTUINFO\");\r\n\t\t\t\t\t\t\tus.SetIP(ServerIP);\r\n\t\t\t\t\t\t\tcmd.SetCmdID(LOGIN);// 在线ID\r\n\t\t\t\t\t\t\tus.SendMsg(cmd.toByteArray());// 发送消息\r\n\t\t\t\t\t\t\tLog.i(\"ActivityInfo---Login===>\", \"Connected & Initialed\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase ACCEPT://与教师端连接,初始化系统参数\r\n\t\t\t\t\tcase GETSTUINFO_RETURN://获得学生信息\r\n\t\t\t\t\t\tLog.i(\"ActivityInfo---ACCEPT===>\", \"Initialed!\");\r\n\t\t\t\t\t\t//初始化命令\r\n\t\t\t\t\t\ttagCommandCode tcmd = new tagCommandCode(msg.getData().getByteArray(\"data\"));\r\n\t\t\t\t\t\t//初始化信息\r\n\t\t\t\t\t\tString StrLocalIP = getLocalIpAddress();//本地IP\r\n\t\t\t\t\t\tString subIP = StrLocalIP.substring(0, StrLocalIP.lastIndexOf(\".\")+1);//网段\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tString StrName; \r\n\t\t\t\t\t\tif(tcmd.strName!= null){\r\n\t\t\t\t\t\t\tStrName = tcmd.strName;//学生姓名\r\n\t\t\t\t\t\t}else StrName =\"STU\"+StrLocalIP.substring(StrLocalIP.lastIndexOf(\".\"),StrLocalIP.length());\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(ServerIP==null){\r\n\t\t\t\t\t\t\tServerIP = msg.getData().getString(\"ServerIP\");\r\n\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\ttvIP.setText(StrLocalIP);\r\n\t\t\t\t\t\ttvName.setText(StrName);\r\n\t\t\t\t\t\tString strSeat = \"A1\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//写入\r\n\t\t\t\t\t\tif(cmd == null){\r\n\t\t\t\t\t\t\tcmd = new tagCommandCode(StrLocalIP,strSeat,StrName,subIP);//座位号!!!\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tcmd.strIP = StrLocalIP;\r\n\t\t\t\t\t\t\tcmd.strName = StrName;\r\n\t\t\t\t\t\t\tcmd.subIP = subIP;\r\n\t\t\t\t\t\t\tcmd.strSeat = strSeat;\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tUserInfo mycmd = ((UserInfo) getApplicationContext());\r\n\t\t\t\t\t\tmycmd.getInstant(cmd);\r\n\t\t\t\t\t\tmycmd.setIP(ServerIP);\r\n\t\t\t\t\t\t//标记位\r\n\t\t\t\t\t\tinitialed = true;\r\n\t\t\t\t\t\tconnected = true;\r\n\t\t\t\t\t\tpbLandlight.setImageResource(R.drawable.green);//设置为在线\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase TIMEOUTCONNECTION://掉线\r\n//\t\t\t\t\t\t//设置连接显示\r\n\t\t\t\t\t\tif (!initialed || connected) {\r\n\t\t\t\t\t\t\tunconnected();\r\n\t\t\t\t\t\t\tconnected = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase CLEARRAISEHAND:\r\n\t\t\t\t\t\tHand.setImageResource(R.drawable.hand_on);\r\n\t\t\t\t\t\tbHandup = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase ENABLERAISEHAND:\r\n\t\t\t\t\t\tHand.setEnabled(true);\r\n\t\t\t\t\t\tHand.setImageResource(R.drawable.hand_on);\r\n\t\t\t\t\t\tbHandup = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase DISRAISEHAND:\r\n\t\t\t\t\t\tHand.setEnabled(false);\r\n\t\t\t\t\t\tHand.setImageResource(R.drawable.hand_disable);\r\n\t\t\t\t\t\tbHandup = false;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase SETVOLUME://老师调节音量\r\n\t\t\t\t\t\ttagCommandCode t = new tagCommandCode(msg.getData().getByteArray(\"data\"));\r\n\t\t\t\t\t\tseekBar.setProgress(t.iReserver[0]);\r\n\t\t\t\t\t\taudioManager.setStreamVolume(AudioManager.STREAM_MUSIC,t.iReserver[0], 0);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase NOTIFY:\r\n\t\t\t\t\t\t byte[] Note = new byte[480];\r\n\t\t\t\t\t\t System.arraycopy(msg.getData().getByteArray(\"data\"), DATALONG-480, Note, 0, 480);\r\n\t\t\t\t\t\tAlertDialog.Builder NotifyDialog= new AlertDialog.Builder(PlayerActivityfullscreen.this);\r\n\t\t\t\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tNotifyDialog.setTitle(\"通知\").setMessage(new String(Note,\"GBK\"))\r\n\t\t\t\t\t\t\t.setCancelable(false)\r\n\t\t\t\t\t\t\t.setNegativeButton(\"关闭\", new DialogInterface.OnClickListener() { \r\n\t\t\t\t\t\t\t public void onClick(DialogInterface dialog, int id) { \r\n\t\t\t\t\t\t\t dialog.cancel(); \r\n\t\t\t\t\t\t\t } \r\n\t\t\t\t\t\t\t }).create().show();\r\n\t\t\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t break;\r\n\t\t\t\t\tcase CLASSRESUME://上课--跟读可用,录音等待命令,默认不允许,上课置灰\r\n\t\t\t\t\tcase SELFSTUDYOFF://取消自助学习-同上课\r\n\t\t\t\t\t\tIntent intent = new Intent().setClass(PlayerActivityfullscreen.this,\r\n\t\t\t\t\t\t\t\tClassTeachActivity.class);\r\n\t\t\t\t\t\tintent.setData(Uri.parse(\"0\"));\r\n\t\t\t\t\t\tPlayerActivityfullscreen.this.startActivity(intent);\r\n\t\t\t\t\t\tbreak;\r\n\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}", "private void handleStateReq(StateHeader hdr) {\r\n Address sender=hdr.sender;\r\n if(sender == null) {\r\n if(log.isErrorEnabled())\r\n log.error(\"sender is null !\");\r\n return;\r\n }\r\n\r\n String id=hdr.state_id; // id could be null, which means get the entire state\r\n synchronized(state_requesters) {\r\n boolean empty=state_requesters.isEmpty();\r\n Set<Address> requesters=state_requesters.get(id);\r\n if(requesters == null) {\r\n requesters=new HashSet<Address>();\r\n state_requesters.put(id, requesters);\r\n }\r\n requesters.add(sender);\r\n\r\n if(!isDigestNeeded()) { // state transfer is in progress, digest was already requested\r\n requestApplicationStates(sender, null, false);\r\n }\r\n else if(empty) {\r\n if(!flushProtocolInStack) {\r\n down_prot.down(new Event(Event.CLOSE_BARRIER));\r\n }\r\n Digest digest=(Digest)down_prot.down(new Event(Event.GET_DIGEST));\r\n if(log.isDebugEnabled())\r\n log.debug(\"digest is \" + digest + \", getting application state\");\r\n try {\r\n requestApplicationStates(sender, digest, !flushProtocolInStack);\r\n }\r\n catch(Throwable t) {\r\n if(log.isErrorEnabled())\r\n log.error(\"failed getting state from application\", t);\r\n if(!flushProtocolInStack) {\r\n down_prot.down(new Event(Event.OPEN_BARRIER));\r\n }\r\n }\r\n }\r\n }\r\n }", "private void start() {\n windowForCommunication.append(\"Awaiting client connection...\" + \"\\n\");\n\n //check if client is connected, if yes, add the following text to the chat window, then enable communication\n if (clientSocket.isConnected()) {\n windowForCommunication.append(\"Connection is established. Type 'stopconnection' to stop connection\" + \"\\n\");\n textField.setEditable(true);\n }\n\n //Begin communication, end if \"stopconnection\" is typed by Server/Client. If it is, call closeStreams method.\n try {\n String userInput;\n\n while((userInput = input.readLine()) != null) {\n if(userInput.contains(\"stopconnection\")){\n closeStreams();\n break;\n }\n\n displayMessage(userInput + \"\\n\");\n\n }\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }", "private void start(Outgoing incoming){\n log.info(\"{} start with incoming data: {}\", sb.id, incoming);\n\n peerSources = incoming.sources; // deepCopy\n peerId = incoming.id;\n\n if(!streamOptions.isReadable()){\n shakeHands(new Update[0]);\n return;\n }\n\n if( AsyncScuttlebutt.class.isAssignableFrom(sb.getClass())){\n AsyncScuttlebutt asyncSb = (AsyncScuttlebutt) sb;\n asyncSb.reentrantLock(() -> { // 读取history,和监听sb上的update必须是原子性的,否则可能漏消息\n Update[] history = sb.history(peerSources);\n shakeHands(history);\n });\n }else{\n Update[] history = sb.history(peerSources);\n shakeHands(history);\n }\n\n }", "public void start()\n\t{\n\t\tChatbotPanel myAppPanel = (ChatbotPanel) baseFrame.getContentPane();\n\t\tmyAppPanel.displayTextToUser(startMessage);\n\t\t\n\t\t\n//\t\tString result = applicationView.showChatbot(startMessage);\n\t\t\t\n//\t\twhile(!mySillyChatbot.quitChecker(result))\n//\t\t{\n//\t\t\tresult = mySillyChatbot.processText(result);\n//\t\t\tresult = applicationView.showChatbot(result);\n//\t\t}\n//\t\tquit();\n\t}", "@Override\n public MessageWrapper[] onMsgReceive(MSGGameStatus msg, Player sender) {\n Lobby lobby = playerLobbyMap.get(sender);\n if (lobby != null && lobby.getOwner().equals(sender)) {\n lobby.prepareGame();\n\n Message sendMsg = new MSGGameStatus(\n MSGGameStatus.GameStatus.STARTED,\n lobby.getGameSession());\n\n // send back the clients the initial game state\n return MessageWrapper.prepWraps(\n new MessageWrapper(sendMsg,\n playerLobbyMap.get(sender).getPlayers()));\n }\n\n return null;\n }", "private void setChatRequestAlert()\r\n\t{\r\n\t\t// Set a listener to the server's chatRequestedProperty to pop an alert\r\n\t\t// when it is changed to true\r\n\t\tserver.getChatRequestedBooleanProperty().addListener(\r\n\t\t\t\tnew ChangeListener<Object>()\r\n\t\t\t\t{\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void changed(ObservableValue<?> observable,\r\n\t\t\t\t\t\t\tObject oldValue, Object newValue)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (server.getChatRequestedBooleanProperty().getValue())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Set the chatRequested property back to false\r\n\t\t\t\t\t\t\tserver.getChatRequestedBooleanProperty().setValue(\r\n\t\t\t\t\t\t\t\t\tfalse);\r\n\r\n\t\t\t\t\t\t\t// Pop an alert asking this server's user if he\r\n\t\t\t\t\t\t\t// wants to accept the chat request\r\n\t\t\t\t\t\t\tPlatform.runLater(new Runnable()\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run()\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tAlert alert = new Alert(\r\n\t\t\t\t\t\t\t\t\t\t\tAlertType.INFORMATION);\r\n\t\t\t\t\t\t\t\t\talert.setTitle(\"Chat request\");\r\n\t\t\t\t\t\t\t\t\talert.setHeaderText(null);\r\n\t\t\t\t\t\t\t\t\talert.setContentText(server\r\n\t\t\t\t\t\t\t\t\t\t\t.getChatRequestApplicantUsername()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \" veux chatter avec vous!\\n Vous avez 10 secondes pour répondre...\");\r\n\r\n\t\t\t\t\t\t\t\t\tButtonType buttonTypeAccepter = new ButtonType(\r\n\t\t\t\t\t\t\t\t\t\t\t\"Accepter\");\r\n\t\t\t\t\t\t\t\t\tButtonType buttonTypeRefuser = new ButtonType(\r\n\t\t\t\t\t\t\t\t\t\t\t\"Refuser\");\r\n\r\n\t\t\t\t\t\t\t\t\talert.getButtonTypes().setAll(\r\n\t\t\t\t\t\t\t\t\t\t\tbuttonTypeAccepter,\r\n\t\t\t\t\t\t\t\t\t\t\tbuttonTypeRefuser);\r\n\r\n\t\t\t\t\t\t\t\t\tTimeline idlestage = new Timeline(\r\n\t\t\t\t\t\t\t\t\t\t\tnew KeyFrame(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tDuration.seconds(10),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnew EventHandler<ActionEvent>()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void handle(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tActionEvent event)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talert.setResult(buttonTypeRefuser);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\talert.close();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}));\r\n\t\t\t\t\t\t\t\t\tidlestage.setCycleCount(1);\r\n\t\t\t\t\t\t\t\t\tidlestage.play();\r\n\t\t\t\t\t\t\t\t\tOptional<ButtonType> choix = alert\r\n\t\t\t\t\t\t\t\t\t\t\t.showAndWait();\r\n\r\n\t\t\t\t\t\t\t\t\tif (choix.get() == buttonTypeAccepter)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tclient.openClientSocket(server\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getChatRequestApplicantIp());\r\n\t\t\t\t\t\t\t\t\t\tchatModel.setRemoteUsername(server\r\n\t\t\t\t\t\t\t\t\t\t\t\t.getChatRequestApplicantUsername());\r\n\t\t\t\t\t\t\t\t\t\tserver.setChatRequestAccepted(true);\r\n\t\t\t\t\t\t\t\t\t\tenableChat();\r\n\t\t\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\t\t\t\tserver.setChatRequestAccepted(false);\r\n\t\t\t\t\t\t\t\t\tsynchronized (server\r\n\t\t\t\t\t\t\t\t\t\t\t.getReceiveMessageThreadLock())\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tserver.getReceiveMessageThreadLock()\r\n\t\t\t\t\t\t\t\t\t\t\t\t.notify();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t}", "public ClientStateManager(final Activity owner) {\r\n\tif (owner instanceof ActivityChat) {\r\n\t this.initActivityChat(owner);\r\n\t}\r\n\tif (owner instanceof ActivityLobby) {\r\n\t this.initActivityLobby(owner);\r\n\t}\r\n }", "public DoorsStateMessage() {\n super();\n }", "private void initGUI() {\n\t JPanel optionsPane = initOptionsPane();\n\n\t // Set up the chat pane\n\t JPanel chatPane = new JPanel(new BorderLayout());\n\t chatText = new JTextPane();\n\t chatText.setEditable(false);\n\t chatText.setBorder(BorderFactory.createLineBorder(Color.DARK_GRAY));\n\t chatText.setMargin(new Insets(5, 5, 5, 5));\n\t JScrollPane jsp = new JScrollPane(chatText);\n\t \n\t chatLine = new JTextField();\n\t chatLine.setEnabled(false);\n\t chatLine.addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent e) {\n\t String s = chatLine.getText();\n\t chatLine.setText(\"\");\n\t MessageColor c = (MessageColor)colorCombo.getSelectedItem();\n\t support.firePropertyChange(\"UI\", \"message\", new Message(username, MessageType.MESSAGE, c, s));\n\t }\n\t });\n\t chatPane.add(chatLine, BorderLayout.SOUTH);\n\t chatPane.add(jsp, BorderLayout.CENTER);\n\n\t colorCombo = new JComboBox<MessageColor>(MessageColor.values());\n\t chatPane.add(colorCombo, BorderLayout.NORTH);\n\t \n\t chatPane.setPreferredSize(new Dimension(500, 200));\n\n\t // Set up the main pane\n\t JPanel mainPane = new JPanel(new BorderLayout());\n\t mainPane.add(optionsPane, BorderLayout.WEST);\n\t mainPane.add(chatPane, BorderLayout.CENTER);\n\n\t // Set up the main frame\n\t mainFrame = new JFrame(\"SPL Chat\");\n\t mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t mainFrame.setContentPane(mainPane);\n\t mainFrame.setSize(mainFrame.getPreferredSize());\n\t mainFrame.setLocation(200, 200);\n\t mainFrame.pack();\n\t mainFrame.setVisible(true);\n\t }", "public void setChatSession(IoSession s) {\n\t\tm_chatSession = s;\n\t}", "public ChatActivity() {\n }", "public ChatServer(){\r\n\t\tblnKeepRunning = true;\r\n\t\ttry{\r\n\t\t\tss = new ServerSocket(SERVER_PORT);\t\r\n\t\t\tThread t = new Thread(new Listener(), \"Chat Server Main Thread\"); //Run the service in its own thread\r\n\t\t\tt.start(); //The Hollywood Principle - \"Don't Call Us, We'll Call You.\". Threads are based on the Template Pattern\r\n\t\t}catch(Exception e){\t\t\t\r\n\t\t\te.printStackTrace();\t\r\n\t\t}\r\n\t}", "public void init() {\r\n window = new Frame(title);\r\n window.setLayout(new BorderLayout());\r\n chat = new TextArea();\r\n chat.setEditable(false);\r\n chat.setFont(new Font(police, Font.PLAIN, size));\r\n message = \"Chat room opened !\";\r\n window.add(BorderLayout.NORTH, chat);\r\n pan.add(logInButton = new Button(\"Enter\"));\r\n logInButton.setEnabled(true);\r\n logInButton.requestFocus();\r\n logInButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n login();\r\n logInButton.setEnabled(false);\r\n logOutButton.setEnabled(true);\r\n myText.requestFocus();\r\n }\r\n });\r\n pan.add(logOutButton = new Button(\"Exit\"));\r\n logOutButton.setEnabled(false);\r\n logOutButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n logout();\r\n logInButton.setEnabled(true);\r\n logOutButton.setEnabled(false);\r\n logInButton.requestFocus();\r\n }\r\n });\r\n pan.add(new Label(\"Your message:\"));\r\n myText = new TextField(myTextDimension);\r\n myText.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n if (connected) {\r\n writer.println(myText.getText());\r\n myText.setText(\"\");\r\n }\r\n }\r\n });\r\n pan.add(myText);\r\n window.add(BorderLayout.SOUTH, pan);\r\n window.addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n ForumClient.this.window.setVisible(false);\r\n ForumClient.this.window.dispose();\r\n logout();\r\n }\r\n });\r\n window.pack();\t\t\t\t\t\t\t\t\t// Causes window to be sized to fit\r\n // the preferred size and layouts of its subcomponents\r\n\r\n // Let's place the chatting framework at the center of the screen\r\n screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n frameSize = window.getSize();\r\n int X = (screenSize.width - frameSize.width) / 2;\r\n int Y = (screenSize.height - frameSize.height) / 2;\r\n window.setLocation(X, Y);\r\n\r\n window.setVisible(true);\r\n repaint();\r\n }", "private ChatUI()\n\t{\n\t}", "ClientMessageSender() {\n\n\t}", "private void initialize() {\n chatLayoutManager = new LinearLayoutManager(this);\n chatView.setLayoutManager(chatLayoutManager);\n for (int i = 0; i < chatMessages.size() - 1; i++) {\n Message currentMsg = chatMessages.get(i);\n Message nextMsg = chatMessages.get(i + 1);\n nextMsg.showMessageTime = nextMsg.getTimestamp() - currentMsg.getTimestamp() >= Message.GROUP_TIME_THRESHOLD;\n nextMsg.showMessageSender = nextMsg.showMessageTime || !nextMsg.getSenderId().equals(currentMsg.getSenderId());\n }\n chatRoomAdapter = new ChatRoomAdapter(this, myId, chatMessages);\n chatView.setAdapter(chatRoomAdapter);\n\n //check if user self has been dropped from chat\n if (!chat.getAttendeeIdList().contains(myId)) {\n Toast.makeText(this, R.string.dropped_from_chat, Toast.LENGTH_LONG).show();\n }\n updateChatAttendeeIdList = new ArrayList<>();\n\n //set up listener for attendee list check boxes\n checkedChangeListener = new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton checkBox, boolean isChecked) {\n String id = (String) checkBox.getTag();\n if (isChecked) {\n if (!updateChatAttendeeIdList.contains(id))\n updateChatAttendeeIdList.add(id);\n } else {\n updateChatAttendeeIdList.remove(id);\n }\n }\n };\n\n //set up contact input and contact picker\n View contactPicker = findViewById(R.id.contact_picker);\n contactPicker.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ChatRoomActivity.this, ContactsActivity.class);\n intent.putExtra(ContactsActivity.EXTRA_MODE, ContactsActivity.MODE_PICKER);\n startActivityForResult(intent, EventDetailsActivity.REQUEST_CONTACT_PICKER);\n }\n });\n\n //\n final LinearLayout messagesLayout = (LinearLayout) findViewById(R.id.all_messages_linearlayout);\n if (messagesLayout != null) {\n messagesLayout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n messagesLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n\n int size = chatMessages.size();\n if (chatLayoutManager.findLastCompletelyVisibleItemPosition() < size-1) {\n chatLayoutManager.scrollToPosition(size - 1);\n }\n }\n });\n }\n\n conversationManager.addBroadcastListner(this);\n }", "private void sendCurrentState() {\n\ttry {\n\t channel.sendObject(getState());\n\t} catch (IOException e) {\n\t Log.e(\"423-client\", e.toString());\n\t}\n }", "@Override\n\tpublic void teleopInit() {\n\t\tbeenEnabled = true;\n\t\tif(!socket){\n\t\t\tlogger.startSocket(); socket = true;\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tprivate void initComponents() {\n\t\t//System.out.println(\"----------------------------Welcome Sip client---------------------------------------------\");\n\t\tiniStack();\n\t\t//onInvite(sendTo,message);\n//\t\tonRegisterStateless();\n\n\t}", "@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n //4. Add ChannelHandler to intercept events and allow to react on them\n ch.pipeline().addLast(new ChannelHandlerAdapter() {\n @Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n //5. Write message to client and add ChannelFutureListener to close connection once message written\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }\n });\n }", "private void initialize() {\n\t\n\t\t\n\t\tSam Sam = new Sam();\n\t\tSarah Sarah = new Sarah();\n\t\tSophia Sophia = new Sophia();\n\t\t\n\t\n\t \tUser[] Users = new User[3];\n\t\tRandom rand = new Random();\n\t\t\n\t\tStack<String> incidents = new Stack<String>();\n\t\tStack<String> incidentsOrder = new Stack<String>();\n\t\t\n\t\t//Stacks to show incidents\n\t\t\n\t\n\t\t\n\t\tfrmChatlog = new JFrame();\n\t\tfrmChatlog.getContentPane().setForeground(UIManager.getColor(\"Button.disabledText\"));\n\t\tfrmChatlog.setTitle(\"chatLog\");\n\t\tfrmChatlog.setBounds(100, 100, 1066, 701);\n\t\tfrmChatlog.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\n\t\t\n\t\tJLabel lblWelcomeToThe = new JLabel(\"WELCOME TO THE CHATLOG CENSORSHIP\");\n\t\tlblWelcomeToThe.setBounds(290, 16, 497, 47);\n\t\tlblWelcomeToThe.setFont(new Font(\"Tahoma\", Font.BOLD, 22));\n\t\t\n\t\tComponent horizontalStrut = Box.createHorizontalStrut(20);\n\t\thorizontalStrut.setBounds(6, 75, 1060, 30);\n\t\t\n\t\tJLabel lblUserCensoredChat = new JLabel(\"BANNED USERS\");\n\t\tlblUserCensoredChat.setBounds(875, 117, 154, 30);\n\t\tlblUserCensoredChat.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\n\t\t\n\t\tJButton btnExit = new JButton(\"EXIT\");\n\t\tbtnExit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t System.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnExit.setBounds(949, 6, 117, 29);\n\t\tfrmChatlog.getContentPane().setLayout(null);\n\t\tfrmChatlog.getContentPane().add(lblWelcomeToThe);\n\t\tfrmChatlog.getContentPane().add(horizontalStrut);\n\t\tfrmChatlog.getContentPane().add(lblUserCensoredChat);\n\t\tfrmChatlog.getContentPane().add(btnExit);\n\t\t\n\t\tComponent horizontalStrut_1 = Box.createHorizontalStrut(20);\n\t\thorizontalStrut_1.setBounds(6, 639, 1054, 15);\n\t\tfrmChatlog.getContentPane().add(horizontalStrut_1);\n\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"GENERATE CHAT LOGS\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\n\t\tlblNewLabel.setBounds(256, 105, 265, 55);\n\t\tfrmChatlog.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJTextArea txtChat = new JTextArea();\n\t\ttxtChat.setForeground(new Color(153, 51, 51));\n\t\ttxtChat.setRows(1);\n\t\ttxtChat.setBounds(16, 184, 738, 220);\n\t\tfrmChatlog.getContentPane().add(txtChat);\n\t\t\n\t\tJTextArea txtBanned = new JTextArea();\n\t\ttxtBanned.setBounds(785, 184, 258, 220);\n\t\tfrmChatlog.getContentPane().add(txtBanned);\n\t\t\n\t\tJTextArea txtIncident = new JTextArea();\n\t\ttxtIncident.setBounds(16, 436, 1027, 190);\n\t\tfrmChatlog.getContentPane().add(txtIncident);\n\t\t\n\t\tJButton btnGenerate_1 = new JButton(\"GENERATE\");\n\t\tbtnGenerate_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tSam Sam = new Sam();\n\t\t\t\tSarah Sarah = new Sarah();\n\t\t\t\tSophia Sophia = new Sophia();\n\t\t\t\tUser[] Users = new User[3];\n\t\t\t\tRandom rand = new Random();\n\t\t\t\t//Stacks to show incidents\n\t\t\t\tStack<String> incidents = new Stack<String>();\n\t\t\t\t\n\t\t\t\tStack<String> incidentsOrder = new Stack<String>();\n\t\t\n\t\t\t\t\n\t\t\t\t//Populating the array of users\n\t\t\t\tUsers[0] = Sam;\n\t\t\t\tUsers[1] = Sarah;\n\t\t\t\tUsers[2] = Sophia;\n\t\t\t\n\t\t\t\tString nameChe, cenS = null;\n\t\t\t\n\t\t\t \tfor (int i = 0; i < Users.length; i++) {\n\t\t\t\t\t\t\t\tUsers[i].chatStart();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor (int i = 0; i < 12; i++) {\n\t\t\t\t\t\t\t\tint u = rand.nextInt(3);\n\t\t\t\t\t\t\t\tUsers[u].generateMessage();\n\t\t\t\t\t\t\t\tUsers[u].check();\n\t\t\t\t\t\t\t\tUsers[u].separate();\n\t\t\t\t\t\t\t\tUsers[u].censor(incidents);\n\t\t\t\t\t\t\t\tnameChe = (Users[u].nameCheck());\n\t\t\t\t\t\t\t\tcenS= (Users[u].censoredChat());\n\t\t\t\t\t\t\t\ttxtChat.append(nameChe + \" : \" + cenS + \"\\n\");\n\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//txtChat.append(inci.toString());\n\t\t\t\t\t\t\t\tUsers[u].clear();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twhile(!incidents.isEmpty()) {\n\t\t\t\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\t\t\t\tincidentsOrder.push(incidents.pop());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tString result=\"\";\n\t\t\t\t\t\t\t\t\twhile (!incidentsOrder.isEmpty()) {\n\t\t\t\t\t\t\t\t\t\tresult += incidentsOrder.pop() +\"\\n\";\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//System.out.println(\"This is the result: \"+ result);\n\t\t\t\t\t\t\t\t\ttxtIncident.setText(\"\\n\"+ result);\n\t\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\t\n\t\t\t\t\t\t\t//txtIncident.setText(displayincidents.pop().toString() + \"\\n\" + displayincidents.pop().toString());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//\ttxtIncident.append(incidents.toString()+ \"\\n\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\tfor (int i=0; i < Users.length; i++) {\n\t\t\t\ttxtBanned.append(Users[i].nameCheck() + \"\\t \" + Users[i].banCheck() + \" \\t\" + Users[i].counterCheck() + \" \" + \"\\n\");\n\t\t\t\ttxtBanned.append(\"\");\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnGenerate_1.setBounds(6, 147, 117, 29);\n\t\tfrmChatlog.getContentPane().add(btnGenerate_1);\n\t\t\n\t\t \n\t\n\t\t\n\t\tJButton btnReset = new JButton(\"CLEAR\");\n\t\tbtnReset.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttxtChat.setText(\"\");\n\t\t\t\ttxtIncident.setText(\"\");\n\t\t\t\ttxtBanned.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tbtnReset.setBounds(122, 147, 81, 29);\n\t\tfrmChatlog.getContentPane().add(btnReset);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\\tUSER\\t|| STATUS || \\t OFFENCES\");\n\t\tlblNewLabel_1.setFont(new Font(\"Lucida Grande\", Font.BOLD, 15));\n\t\tlblNewLabel_1.setBounds(775, 151, 268, 16);\n\t\tfrmChatlog.getContentPane().add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"\");\n\t\t\n\t\tImage img = new ImageIcon(this.getClass().getResource(\"/backGround.jpg\")).getImage();\n\t\tlblNewLabel_2.setIcon(new ImageIcon(img));\n\t\t\n\t\tlblNewLabel_2.setBounds(6, 6, 1060, 702);\n\t\tfrmChatlog.getContentPane().add(lblNewLabel_2);\n\t\t\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n JMessageClient.registerEventReceiver(this);\n setContentView(R.layout.activity_chat);\n mChatView = (ChatView) findViewById(R.id.chat_view);\n mChatView.initModule(mDensity, mDensityDpi);\n mChatController = new ChatController(mChatView, this);\n mChatView.setListeners(mChatController);\n mChatView.setOnTouchListener(mChatController);\n mChatView.setOnSizeChangedListener(mChatController);\n mChatView.setOnKbdStateListener(mChatController);\n initReceiver();\n\n }", "private void init() {\n\t\tsendPacket(new Packet01Login(\"[you have connected to \"+UPnPGateway.getMappedAddress()+\"]\", null));\n\t}", "public void setState(server.SayHello.shandong.State state) {\n this.state = state;\n }", "public void setupTask() {\n\t\tif (!hasInternetConnection()) {\n\t\t\tdlgNoInet.show();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tsetupMessageHandler();\n\t\t\n\t\t// Activate text box if user is logged in.\n\t\tString userid = checkLogin();\n\t\tLog.d(\"TIMER\", \"User logged in: \" + userid);\n\t\tif (userid != null && userid.length() > 0 && etMessage != null) {\n\t\t\tsetupSendMessageListener();\n\t\t\tetMessage.setEnabled(true);\n\t\t\thideVirtualKeyboard();\n\t\t}\n\t\t\n\t\t// Setup the message cursor object.\n\t\tsetupMessageCursor();\n\n\t\t// Start message listener if base url is set.\n\t\tstartMessageListener();\n\t}", "private HeartBeatMessage() {\n initFields();\n }", "@Override\n\tpublic void globalState(LinphoneCore lc, GlobalState state, String message) {\n\t\t\n\t}", "public void start() {\n this.messenger.start();\n }", "private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\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}", "public static void main(String[] args) {\n ChatHandler.setRepository(repository);\n webSocket(\"/chat\", ChatHandler.class);\n\n // this is only necessary for cross site development\n options(\"/*\", ((request, response) -> allowCrossOriginRequests(response)));\n\n // get all known chat rooms\n get(\"/chatRoom\", ((request, response) -> {\n List<ChatRoom> chatRooms = repository.getChatRooms();\n Either<Exception, String> jsonChatRooms = dataToJson(chatRooms);\n return createResponse(response, jsonChatRooms);\n }));\n\n // get chat history for a chat room\n get(\"/chatRoom/:chatRoomId\", ((request, response) -> {\n String id = getParameter(request, \":chatRoomId\");\n Optional<ChatRoom> chatRoom = findChatRoom(id);\n Optional<MessageLog> messageLog = chatRoom.map(cr -> repository.getMessageLog(cr));\n Either<Exception, Optional<String>> jsonMessageLog = dataToJson(messageLog);\n return createOptionalResponse(response, jsonMessageLog);\n }));\n\n // delete chat room including history\n delete(\"/chatRoom/:chatRoomId\", ((request, response) -> {\n String id = getParameter(request, \":chatRoomId\");\n Optional<ChatRoom> chatRoom = findChatRoom(id);\n chatRoom.ifPresent(cr -> repository.deleteChatRoom(cr));\n Either<Exception, Optional<String>> result = Either.right(chatRoom.map(x -> \"\"));\n return createOptionalResponse(response, result);\n }));\n\n // make a participant known to the system and return its id back to the caller\n post(\"/participant\", ((request, response) -> {\n Either<Exception, Participant> participant = jsonToData(request.body(), Participant.class);\n if (participant.isRight()) {\n String id = repository.addParticipant(participant.get());\n Either<Exception, String> jsonId = participant.map(p -> '\"' + id + '\"');\n return createResponse(response, jsonId);\n }\n else {\n return createResponse(response, participant.map(p -> \"\"));\n }\n }));\n\n // gets the Id of an existing participant. A poor mans login.\n get(\"/participant/:participantName\", ((request, response) -> {\n String participantName = getParameter(request, \":participantName\");\n Optional<Participant> knownParticipant = repository.login(participantName);\n Either<Exception, Optional<String>> result = dataToJson(knownParticipant);\n return createOptionalResponse(response, result);\n }));\n\n // make a chat room known to the system and return its id back to the caller\n post(\"/chatRoom\", ((request, response) -> {\n Either<Exception, ChatRoom> chatRoom = jsonToData(request.body(), ChatRoom.class);\n if (chatRoom.isRight()) {\n String id = repository.addChatRoom(chatRoom.get());\n Either<Exception, String> jsonId = chatRoom.map(c -> '\"' + id + '\"');\n return createResponse(response, jsonId);\n }\n else {\n return createResponse(response, chatRoom.map(c -> \"\"));\n }\n }));\n }", "private SyncState() {}", "@ReactMethod\n public void start() {\n ChirpError error = chirpConnect.start();\n if (error.getCode() > 0) {\n onError(context, error.getMessage());\n } else {\n isStarted = true;\n }\n }", "private void setupConnStateBroadcastReceiver() {\n connStateBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.CONNECTION_STATE_CHANGED\".equals(intent.getAction())) {\n connected = intent.getBooleanExtra(\"com.example.loravisual.CONNECTION_STATE\", false);\n if (connected) {\n if (!connToastsDeactivated)\n Toast.makeText(context, \"connected to device\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.connected));\n } else {\n ready = false;\n if (!connToastsDeactivated)\n Toast.makeText(context, \"disconnected\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.disconnected));\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.CONNECTION_STATE_CHANGED\");\n registerReceiver(connStateBroadcastReceiver, filter);\n }", "public void setUsernameState(String usernameState) {\r\n\t\tthis.usernameState = usernameState;\r\n\t}", "public void toggleChat() {\n chatVisible = !chatVisible;\n }", "public ChatFrame() {\n initComponents();\n }", "public void handleConnectingState() {\n\n setProgressBarVisible(true);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Connecting to \" + tallyDeviceName);\n\n }", "public void readTheMenu(){\n Student s = (Student) Thread.currentThread();\n\n \tCommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n \tObject[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n \tstate_fields[0] = s.getID();\n \tstate_fields[1] = s.getStudentState();\n \t\n Message m_toServer = new Message(12, params, 0, state_fields, 2, null); \n Message m_fromServer; \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n \n s.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }", "public void start() {\n\t\tconnection.start((sender, message) -> message.accept(new Visitor(sender)));\n\t\tloadData();\n\t}", "public synchronized UIMessageReply init() {\n final UIMessageRequest req = UIMessageRequest.newBuilder()\n .setCode(UIMessageRequestCode.REQ_INITIALIZE)\n .setSleeptime(this.sleepTime)\n .build();\n\n return ss.sendRecv(req);\n }", "public ChatGUI() {\r\n\r\n String propertiesPath = \"kchat.properties\";\r\n try {\r\n Configuration.getInstance().setFile(propertiesPath);\r\n sock = new ChatSocket(new UdpMulticast(Configuration.getInstance().getValueAsString(\"udp.iface\"),\r\n Configuration.getInstance().getValueAsString(\"udp.host\"), Configuration.getInstance()\r\n .getValueAsInt(\"udp.port\")), this);\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(null, \"Cannot Open Socket\", \"alert\", JOptionPane.ERROR_MESSAGE);\r\n // Exit the application if socket is not established\r\n // print stack trace to terminal\r\n e.printStackTrace();\r\n System.exit(0);\r\n }\r\n\r\n // exit the frame on closure of the frame\r\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n // set the bounds of the frame\r\n setBounds(100, 100, 450, 300);\r\n\r\n // Initialize the content pane\r\n contentPane = new JPanel();\r\n\r\n // set the borders of the content pane\r\n contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\r\n // set the layout of the content pane\r\n contentPane.setLayout(new BorderLayout(0, 0));\r\n\r\n // add content pane to frame\r\n setContentPane(contentPane);\r\n\r\n // create panel and layout for input, button and field at top of content\r\n // pane\r\n JPanel panel = new JPanel();\r\n panel.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));\r\n contentPane.add(panel, BorderLayout.NORTH);\r\n\r\n // create the username lael\r\n JLabel lblNewLabel = new JLabel(\"Username\");\r\n panel.add(lblNewLabel);\r\n\r\n // create the field for the Username to input text\r\n textField = new JTextField();\r\n panel.add(textField);\r\n // set column length of the field\r\n textField.setColumns(10);\r\n\r\n // get rooms from the socket return array of long\r\n LongInteger[] rooms = sock.getPresenceManager().getRooms();\r\n // initialize field to store room names\r\n String[] roomNames = new String[rooms.length];\r\n // using for loop convert long to string and store in room name array\r\n for (int i = 0; i < rooms.length; i++) {\r\n roomNames[i] = rooms[i].toString();\r\n }\r\n\r\n // create the combo box\r\n final JComboBox comboBox = new JComboBox(roomNames);\r\n\r\n // refresh the rooms on button press\r\n final JButton btnNewButton = new JButton(\"Refresh Rooms\");\r\n // the action listener for button press\r\n btnNewButton.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n comboBox.removeAllItems();\r\n // get rooms from the socket\r\n LongInteger[] rooms = sock.getPresenceManager().getRooms();\r\n // initialize field to store room names\r\n String[] roomNames = new String[rooms.length];\r\n // using for loop convert long to string and store in room name\r\n // array\r\n for (int i = 0; i < rooms.length; i++) {\r\n comboBox.addItem(roomNames);\r\n roomNames[i] = rooms[i].toString();\r\n }\r\n }\r\n });\r\n\r\n // add the label for joins\r\n JLabel lblJoin = new JLabel(\" [--- joins \");\r\n panel.add(lblJoin);\r\n\r\n // add the textfield for user input for user to user connection\r\n textField_3 = new JTextField();\r\n\r\n // create a checkbox for when you which to select drop down or input\r\n // user\r\n final JCheckBox chckbxNewCheckBox = new JCheckBox(\"\");\r\n chckbxNewCheckBox.setSelected(true);\r\n final JCheckBox chckbxNewCheckBox_1 = new JCheckBox(\"\");\r\n\r\n // add action listener to checkbox for drop down\r\n chckbxNewCheckBox.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n // if checkbox is checked\r\n if (chckbxNewCheckBox.isSelected() == true) {\r\n // set the other checkbox to unchecked\r\n chckbxNewCheckBox_1.setSelected(false);\r\n // enable the combox box drop down\r\n comboBox.setEnabled(true);\r\n // disable the textfield for the user input\r\n textField_3.setEnabled(false);\r\n textField_3.setText(\"\");\r\n // enable the refresh rooms button\r\n btnNewButton.setEnabled(true);\r\n }\r\n }\r\n });\r\n panel.add(chckbxNewCheckBox);\r\n\r\n // add the drop down to the contentpane\r\n panel.add(comboBox);\r\n\r\n // additional labels are added to the content pane\r\n JLabel lblOrChatWith = new JLabel(\" OR chat with user\");\r\n panel.add(lblOrChatWith);\r\n\r\n // add action listener to checkbox for user input\r\n chckbxNewCheckBox_1.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent arg0) {\r\n // if checkbox is checked\r\n if (chckbxNewCheckBox_1.isSelected() == true) {\r\n // set the other checkbox to unchecked\r\n chckbxNewCheckBox.setSelected(false);\r\n // disable the combox box drop down\r\n comboBox.setEnabled(false);\r\n // enable the textfield for the user input\r\n textField_3.setEnabled(true);\r\n textField_3.setText(\"\");\r\n // disable the refresh rooms button\r\n btnNewButton.setEnabled(false);\r\n }\r\n }\r\n });\r\n panel.add(chckbxNewCheckBox_1);\r\n\r\n // set the textfield for user to user input to false by default and add\r\n // to contentpane panel\r\n textField_3.setEnabled(false);\r\n panel.add(textField_3);\r\n textField_3.setColumns(10);\r\n\r\n // the label is added to the content pane panel\r\n JLabel label = new JLabel(\" ---] \");\r\n panel.add(label);\r\n\r\n // the refresh rooms button is added to content pane panel\r\n panel.add(btnNewButton);\r\n\r\n // the connection button is created\r\n JButton btnNewButton_1 = new JButton(\"Connect\");\r\n // action listener is added to button to take action on key press\r\n btnNewButton_1.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent e) {\r\n // if no input or only spaces is put in text field it counts as\r\n // invalid entry\r\n if (textField.getText().trim().equals(\"\")) {\r\n // prompt to user and do nothing\r\n JOptionPane.showMessageDialog(null, \"Please input a valid username\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n textField.setText(\"\");\r\n } else {\r\n // if checkbox for room drop down is selected meaning we are\r\n // connecting to a room\r\n if (chckbxNewCheckBox.isSelected() == true) {\r\n\r\n // if no tab exist with a chosen room name continue\r\n if (tabbedPane.indexOfTab(comboBox.getSelectedItem().toString()) == -1) {\r\n\r\n // get the room members\r\n Set<LongInteger> roomMembers = sock.getPresenceManager().membersOf(\r\n new LongInteger(comboBox.getSelectedItem().toString()));\r\n // initialize field to store room member names\r\n String[] roomMemberNames = new String[roomMembers.size()];\r\n // using for loop convert long to string and store\r\n // in room member name array\r\n int i = 0;\r\n for (LongInteger member : roomMembers) {\r\n roomMemberNames[i] = member.toString();\r\n i++;\r\n }\r\n\r\n // connect to room below and based on return type\r\n // add tab\r\n try {\r\n sock.executeCommand(new PresenceCommand(new LongInteger(comboBox.getSelectedItem()\r\n .toString()), true));\r\n } catch (InvalidCommandException ex) {\r\n JOptionPane.showMessageDialog(null, \"Unable to join room.\", \"alert\",\r\n JOptionPane.ERROR_MESSAGE);\r\n }\r\n // add tab based on return type above\r\n // once you connect successfully disable the\r\n // username textfield\r\n textField.setEnabled(false);\r\n // add tab for Room to user chat\r\n addTab(comboBox.getSelectedItem().toString(), roomMemberNames, 1);\r\n } else {\r\n // prompt user and ensures that one does not open\r\n // multiple tabs to the same room\r\n JOptionPane.showMessageDialog(null, \"You are already connected to \"\r\n + comboBox.getSelectedItem().toString(), \"alert\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n // if checkbox for user is selected meaning we are\r\n // connecting to a user\r\n else if (chckbxNewCheckBox_1.isSelected() == true) {\r\n\r\n if (tabbedPane.indexOfTab(\"Chat with \" + textField_3.getText()) == -1) {\r\n // one does not connect to a user so the tab is\r\n // automatically created\r\n // once you connect successfully disable the\r\n // username textfield\r\n // disable the textfield for usernname\r\n textField.setEnabled(false);\r\n // add tab for User to user chat\r\n addTab(\"Chat with \" + textField_3.getText(), new String[] { textField_3.getText() }, 2);\r\n } else {\r\n // prompt user and ensures that one does not open\r\n // multiple tabs to the same user\r\n JOptionPane.showMessageDialog(null, \"You are already connected to \" + \"Chat with \"\r\n + textField_3.getText(), \"alert\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n }\r\n }\r\n });\r\n panel.add(btnNewButton_1);\r\n\r\n // set the tabbed pane to top\r\n tabbedPane = new JTabbedPane(SwingConstants.TOP);\r\n\r\n // add tabbed pane to center of content pane\r\n contentPane.add(tabbedPane, BorderLayout.CENTER);\r\n }", "public boolean chatEnabled();", "public void setState(State state)\n\t{\n\t\tsetState(conferenceInfo, state);\n\t}", "public DCCChatSession(Socket socket, boolean initiatedByUs) throws IOException {\n super(socket, initiatedByUs ? TYPE_CHATSEND : TYPE_CHATRECEIVE);\n this.chatListeners = new Vector();\n this.out = new PrintStream(socket.getOutputStream());\n this.in = new Scanner(socket.getInputStream());\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 600, 600);\n\t\tframe.setTitle(\"WSChat Client\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJPanel mainPanel = new JPanel();\n\t\tframe.getContentPane().add(mainPanel);\n\t\tmainPanel.setLayout(null);\n\n\t\tJLabel setNameLabel = new JLabel();\n\t\tsetNameLabel.setText(\"Nickname: \");\n\t\tmainPanel.add(setNameLabel);\n\t\tsetNameLabel.setBounds(168, 10, 80, 30);\n\t\tnameField = new JTextField();\n\t\tnameField.setBounds(247, 10, 100, 30);\n\t\tsendName = new JButton(\"Set Name\");\n\t\tsendName.setBounds(359, 11, 120, 30);\n\t\tnameField.setColumns(10);\n\t\tmainPanel.add(nameField);\n\t\tmainPanel.add(sendName);\n\t\tsendName.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tWSChatApplication.this.send(\"/nick \" + nameField.getText());\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane msg_pane = new JScrollPane();\n\t\tmsg_area = new JTextArea();\n\t\tmsg_area.setEditable(false);\n\t\tmsg_area.setLineWrap(true);\n\t\tmsg_area.setWrapStyleWord(true);\n\t\tmsg_pane.setViewportView(msg_area);\n\t\tmsg_pane.setBounds(10, 45, 450, 450);\n\t\tmainPanel.add(msg_pane);\n\n\t\tJScrollPane list_pane = new JScrollPane();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tcurrentTarget = list.getSelectedValue();\n\t\t\t}\n\t\t});\n\n\t\tJTextPane textPane = new JTextPane();\n\t\ttextPane.setBounds(0, 0, 1, 16);\n\t\tmainPanel.add(textPane);\n\t\tlist_pane.setViewportView(list);\n\t\tlist_pane.setBounds(470, 45, 120, 450);\n\t\tmainPanel.add(list_pane);\n\n\t\tJScrollPane in_pane = new JScrollPane();\n\t\tfinal JTextArea in_area = new JTextArea();\n\t\tin_area.setLineWrap(true);\n\t\tin_area.setWrapStyleWord(true);\n\t\tin_pane.setViewportView(in_area);\n\t\tJButton sendBut = new JButton(\"Send\");\n\t\tsendBut.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (list.getSelectedIndex() == 0)\n\t\t\t\t\tWSChatApplication.this.send(in_area.getText());\n\t\t\t\telse\n\t\t\t\t\tWSChatApplication.this.send(\"/to \" + currentTarget + \" \"\n\t\t\t\t\t\t\t+ in_area.getText());\n\t\t\t\tin_area.setText(\"\");\n\t\t\t}\n\t\t});\n\t\tmainPanel.add(sendBut);\n\t\tsendBut.setBounds(470, 500, 120, 70);\n\t\tmainPanel.add(in_pane);\n\t\tin_pane.setBounds(10, 500, 450, 70);\n\t}", "public void beforeSendingeGainChatRequest();", "@Override\n public boolean handleMessage(Message msg) {\n switch (msg.what){\n case 1:{\n initData();\n break;\n }\n default:\n break;\n }\n return false;\n }", "private Client() {\n solution_set = new HashSet<>();\n contentsMap = new HashMap<>();\n current_state = new HashSet<>();\n next_state = new HashSet<>();\n }", "public ChatRequest(String message)\r\n\t{\r\n\t\tthis.message = message;\r\n\t}", "public Session(boolean isgroupchat){\n\t\tthis.isGroupChat = isgroupchat;\n\t\tthis.receivedText=\"Chat log \\n\";\n\t\tthis.sessionID = getNextSessionID();\n\t\tthis.userList = new ArrayList<User>();\n\t\tSystem.out.println(\"SESSION: Session created. Session ID: \"+this.sessionID);\n\t}", "public void setSenderState(java.lang.String senderState) {\r\n this.senderState = senderState;\r\n }", "private void initMsgs() {\n }", "private void initMsgs() {\n }", "private Conversation()\n {\n }", "public JokeState(){\n\t\tsuper();\n\t}" ]
[ "0.68529886", "0.6747045", "0.65575916", "0.60308474", "0.5868176", "0.58284813", "0.58242184", "0.5813195", "0.57699794", "0.5768657", "0.57235265", "0.5719647", "0.5708284", "0.5703405", "0.5616754", "0.5605578", "0.5599566", "0.5557993", "0.55560637", "0.55482465", "0.55466145", "0.5535713", "0.55264103", "0.5511896", "0.5502432", "0.54912615", "0.547691", "0.5474266", "0.54605305", "0.5460166", "0.54545105", "0.54469377", "0.5446831", "0.54349005", "0.5422919", "0.5422391", "0.54223514", "0.5406979", "0.5400854", "0.5394844", "0.53945386", "0.53940564", "0.53940374", "0.5391337", "0.53545976", "0.5349949", "0.53306687", "0.5315744", "0.53044397", "0.52950805", "0.52943027", "0.52788234", "0.52698934", "0.52680653", "0.52585864", "0.5256839", "0.5249877", "0.52396166", "0.52316517", "0.5229419", "0.52292925", "0.5228899", "0.52253026", "0.52238333", "0.5217979", "0.52038544", "0.5203784", "0.5195201", "0.5193688", "0.51838636", "0.51800376", "0.5178446", "0.51727766", "0.5162522", "0.51625067", "0.5159949", "0.5154851", "0.5137776", "0.5136335", "0.51311207", "0.5125169", "0.5124643", "0.5123436", "0.5121948", "0.51218766", "0.51172197", "0.51079524", "0.50946987", "0.50937235", "0.5092042", "0.5091387", "0.50902784", "0.50893646", "0.50860953", "0.5084721", "0.50837356", "0.50833285", "0.5082154", "0.5082154", "0.50812346", "0.5077994" ]
0.0
-1
Sets the ConversationStore used by this servlet. This function provides a common setup method for use by the test framework or the servlet's init() function.
void setConversationStore(ConversationStore conversationStore) { this.conversationStore = conversationStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "@Before\n public void setUp()\n {\n m_instance = ConversationRepository.getInstance();\n m_fileSystem = FileSystem.getInstance();\n }", "private void initializeStore()\r\n {\r\n log.debug(\"initializing MongoStore\");\r\n try (InputStream is = getClass().getClassLoader().getResourceAsStream(\"visualharvester.properties\"))\r\n {\r\n final Properties properties = new Properties();\r\n properties.load(is);\r\n\r\n host = properties.get(\"mongo.host\").toString();\r\n final String portString = properties.get(\"mongo.port\").toString();\r\n port = Integer.valueOf(portString).intValue();\r\n database = properties.get(\"mongo.database\").toString();\r\n collection = properties.get(\"mongo.collection\").toString();\r\n\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"Could not open properties file, using defaults\", e);\r\n host = \"localhost\";\r\n port = 27017;\r\n database = \"visualdb\";\r\n collection = \"visualcollection\";\r\n }\r\n\r\n store = new MongoStorage(host, port, database, collection);\r\n\r\n }", "protected void setUp() {\n\t\tif (!Message.configure(\"wordsweeper.xsd\")) {\r\n\t\t\tfail (\"unable to configure protocol\");\r\n\t\t}\r\n\t\t\r\n\t\t// prepare client and connect to server.\r\n\t\tmodel = new Model();\r\n\t\t\r\n\t\t\r\n\t\tclient = new Application (model);\r\n\t\tclient.setVisible(true);\r\n\t\t\r\n\t\t// Create mockServer to simulate server, and install 'obvious' handler\r\n\t\t// that simply dumps to the screen the responses.\r\n\t\tmockServer = new MockServerAccess(\"localhost\");\r\n\t\t\r\n\t\t// as far as the client is concerned, it gets a real object with which\r\n\t\t// to communicate.\r\n\t\tclient.setServerAccess(mockServer);\r\n\t}", "@Before\r\n\tpublic void set()\r\n\t{\n\t\tif (!Message.configure(\"wordsweeper.xsd\")) {\r\n\t\t\tfail (\"unable to configure protocol\");\r\n\t\t}\r\n\t\tModel.serverAccess = mockServer;\r\n\t\tModel.gameLayout = gameLayout;\r\n\t\tModel.GAME = game;\r\n\t\tModel.PLAYER = player;\r\n\t\tModel.BOARD = board;\r\n\t\tModel.gameLayout.setLayout();\r\n\t\tModel.gameLayout.addListener();\r\n\t}", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "@Before\r\n public void setup() {\r\n dbwMock.userId = \"testUser\";\r\n dbw = new DatabaseWrapper(dbwMock);\r\n\r\n context = ApplicationProvider.getApplicationContext();\r\n\r\n book = new Book();\r\n\r\n requester = new Profile();\r\n }", "void setMessageStore(MessageStore messageStore) {\n this.messageStore = messageStore;\n }", "void setMessageStore(MessageStore messageStore) {\n this.messageStore = messageStore;\n }", "public void setContext(ConversationContext context) {\n\t\tthis.context = context;\n\t}", "@Autowired\r\n\tpublic void setDataStore(TrPortfolioContestDAO dataStore) {\r\n\t\tthis.dataStore = dataStore;\r\n\t}", "@Before\n\tpublic void init() {\n\t\tmongoClient = new MongoClient(MongoActions.props.getHost(), MongoActions.props.getPort());\n\t\tclearCollection();\n\t}", "@Before\n public void setup() {\n PowerMockito.mockStatic(FacesContext.class);\n when(FacesContext.getCurrentInstance()).thenReturn(fc);\n\n PowerMockito.mockStatic(ExternalContext.class);\n when(fc.getExternalContext()).thenReturn(ec);\n\n navigationBean = new NavigationBean();\n\n sessionUser = new SessionUserBean();\n sessionUser.setUserID(SAMPLE_ID);\n sessionUser.setLanguage(SAMPLE_LANGUAGE);\n navigationBean.setSessionUser(sessionUser);\n }", "@BeforeTest()\n\tpublic void initializemanager() {\n\t\tsetDriver(\"chrome\");\n\t\tdriver.get(getApplicationUrl(\"salesforce\"));\n\t\tdriver.manage().window().maximize();\n\t\tWebpageFactory.initializePageObjects(driver);\n\t\tDBUtil.createConnection();\n\t}", "void setActivityStore(ActivityStore activityStore) {\n this.activityStore = activityStore;\n }", "@Override\r\n\tprotected void initLogic(ServletContext context) {\n\t\tthis.postsDB = this.dbManager.getDB(PostsDBImpl.class);\r\n\t\tthis.userDB = this.dbManager.getDB(UserDBImpl.class);\r\n\t\tthis.setProperty(\"POSTS_PAGE_SIZE\", 10);\r\n\t\tthis.setProperty(\"MAX_VIEW_NO\", 10000);\r\n\t\tthis.setProperty(\"HOT_POST_NO\", 100);\r\n\t\tthis.setProperty(\"COMMENTS_PAGE_SIZE\", 3);\r\n\t}", "public static void setupContext(ServletContext context) {\n \t//I don't need this dropdown list. bguo.\n// ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);\n// LookupManager mgr = (LookupManager) ctx.getBean(\"lookupManager\");\n//\n// // get list of possible roles\n// context.setAttribute(RoleConstants.AVAILABLE_ROLES, mgr.getAllRoles());\n// log.debug(\"Drop-down initialization complete [OK]\");\n }", "public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}", "private synchronized void initAtomStore() {\n if (atomStore != null) {\n return;\n }\n\n atomStore = new PersistedAtomStore(this);\n }", "private void createStore() {\n\n try {\n\n MailboxProtocolEnum curMbPrtcl = this.loginData.getMailboxProtocol();\n\n // Get a Properties and Session object\n Properties props = JavamailUtils.getProperties();\n\n // Trustmanager needed?\n if(curMbPrtcl.isUseOfSsl()) {\n\n MailSSLSocketFactory socketFactory = new MailSSLSocketFactory();\n socketFactory.setTrustManagers(new TrustManager[]\n { this.trustManager });\n\n props.put((\"mail.\" + curMbPrtcl.getProtocolId() + \".ssl.socketFactory\"),\n socketFactory);\n }\n\n Session session = Session.getInstance(props, null);\n session.setDebug(false);\n\n this.store = session.getStore(curMbPrtcl.getProtocolId());\n }\n catch(NoSuchProviderException e) {\n\n throw(new RuntimeException((\"Unknown Protocol: \" +\n this.loginData.getMailboxProtocol()), e));\n }\n catch(GeneralSecurityException gse) {\n\n throw(new RuntimeException((\"Security-problem: \" + gse.getMessage()),\n gse));\n }\n }", "@Before\n \tpublic void init() throws SimpleDBException {\n assertNotNull(applicationContext);\n handlerAdapter = applicationContext.getBean(\"handlerAdapter\", HandlerAdapter.class);\n this.testClient = this.createTestClient();\n \t\trefreshRequestAndResponse();\n \t}", "private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "@Required\n\tpublic void setStoreSessionFacade(final StoreSessionFacade storeSessionFacade)\n\t{\n\t\tthis.storeSessionFacade = storeSessionFacade;\n\t}", "public void init() {\n LOG.info(\"Initializing side input stores.\");\n\n initializeStoreDirectories();\n }", "@Override\n public void init() throws ServletException {\n this.manager = (DBManager)super.getServletContext().getAttribute(\"dbmanager\");\n }", "protected void setUpExternalContext() throws Exception\n {\n externalContext = new MockExternalContext(servletContext, request, response);\n }", "public void initialize() {\n setCommitteeHelper(getNewCommitteeHelperInstanceHook(this));\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "private void initialize() {\n\t\tservice = KCSClient.getInstance(this.getApplicationContext(), new KinveySettings(APP_KEY, APP_SECRET));\n\n BaseKinveyDataSource.setKinveyClient(service);\n }", "@Override\n public void init() {\n ServletContext context = getServletContext();\n KeyLoader loader = new KeyLoader();\n\n context.setAttribute(\"translateKey\", loader.getKey(TRANSLATE));\n context.setAttribute(\"authKey\", loader.getKeyBytes(AUTH));\n context.setAttribute(\"servletRoles\", getServletRoles());\n }", "@Before\n\tpublic void initialize() {\n\t\tCategory category= new Category();// = SAMPLE_CATEGORY1;\n\t\tcategory.setCategoryName(SAMPLE_CATEGORY1.getCategoryName());\n\t\tcategory.setCompanyReferenceNumber(SAMPLE_COMPANY.getCompanyReferenceNumber());\n\t\tcomServ.saveOrUpdate(SAMPLE_COMPANY);\n\t\tcatServ.saveOrUpdate(category);\n\t\tappServ.saveOrUpdate(SAMPLE_APPLICATION1);\n\t\t\n\t}", "@BeforeClass\n public static void beforeAll() {\n // The logger is shared by everything so this is the right place for it.\n TestSupportLogger.initLogger();\n\n /**\n * The context represents the application environment - should be fine to set up once here.\n * It includes creation and adding (as attributes) other one off objects such as:\n * - SessionFactory\n * - Configuration\n * - GalleryManager\n */\n context = new MockServletContext(TestSupportConstants.contextBaseDirPrefix + TestSupportConstants.contextBaseDir, null);\n String realPath = context.getRealPath(\"/\");\n assertEquals(TestSupportConstants.contextBaseDir, realPath);\n\n factory = TestSupportSessionFactory.getSessionFactory();\n\n context.setAttribute(\"sessionFactory\", factory);\n assertSame(factory, context.getAttribute(\"sessionFactory\"));\n\n configurationManager = new Configuration(factory);\n // Test one configuration value to check this has worked.\n assertTrue(((BlogEnabled) (configurationManager.getConfigurationItem(\"blogEnabled\"))).get());\n\n context.setAttribute(\"configuration\", configurationManager);\n assertSame(configurationManager, context.getAttribute(\"configuration\"));\n\n galleryManager = gallerySetup();\n context.setAttribute(\"Galleries\",galleryManager);\n assertSame(galleryManager, context.getAttribute(\"Galleries\"));\n }", "public void setEventStore(EventStore eventStore) {\n this.eventStore = eventStore;\n }", "protected void setUpServletObjects() throws Exception\n {\n servletContext = new MockServletContext();\n config = new MockServletConfig(servletContext);\n session = new MockHttpSession();\n session.setServletContext(servletContext);\n request = new MockHttpServletRequest(session);\n request.setServletContext(servletContext);\n response = new MockHttpServletResponse();\n }", "@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}", "private OpenIDAssociationDAO(String storeType) {\n associationStore = storeType;\n }", "protected void setStore(String store) {\n this.store = store;\n }", "@Override\r\n\tpublic void setContext(Context context) {\n\t\thost = context.getString(MongoWriteConstants.MONGO_HOST);\r\n\t\tport = context.getInteger(MongoWriteConstants.MONGO_PORT, MongoWriteConstants.DEFAULT_MONGO_PORT);\r\n\t\tuser = context.getString(MongoWriteConstants.MONGO_USER);\r\n\t\tpassword = context.getString(MongoWriteConstants.MONGO_PASSWORD);\r\n\t\tdatabase = context.getString(MongoWriteConstants.MONGO_DATABASE);\r\n\t\tcollection = context.getString(MongoWriteConstants.MONGO_COLLECTION);\r\n\t}", "@Before\n public void init() {\n theaterChainRepository.getMongoTemplate().save(savedTheaterChain);\n }", "@BeforeClass\n\tpublic static void init() {\n\t\tcontext = new AnnotationConfigApplicationContext();\n\t\tcontext.scan(\"com.shuler.shoppingbackend\");\n\t\tcontext.refresh();\n\t\tcategoryDAO = (CategoryDAO) context.getBean(\"categoryDAO\");\n\t}", "public void init() throws ServletException{\n\t\tmongo = new MongoClient(\"localhost\", 27017);\n\t}", "@Override\n\tpublic void init() throws ServletException\n\t{\n\t\tsuper.init();\n\t\t\n\t\tActiveUsers = (HashMap<String, User>) getServletContext().getAttribute(\"ActiveUsers\");\n\t\tMessages = (ArrayList<Message>) getServletContext().getAttribute(\"Messages\");\n\t\t\n\t\tif(ActiveUsers == null)\n\t\t{\n\t\t\tActiveUsers = new HashMap<String, User>();\n\t\t\tgetServletContext().setAttribute(\"ActiveUsers\", ActiveUsers);\n\t\t}\n\t\t\n\t\tif(Messages == null)\n\t\t{\n\t\t\tMessages = new ArrayList<Message>();\n\t\t\tgetServletContext().setAttribute(\"Messages\", Messages);\n\t\t}\n\t}", "public void init() throws ServletException {\n\t\tModel model = new Model(getServletConfig());\r\n\t\tAction.add(new LoginAction(model));\r\n\t\tAction.add(new ManageTweet(model));\r\n\t}", "public TeamServiceTest() {\r\n\t\tsetupRequestContext();\r\n\t}", "public void init() throws ServletException {\n courseDAO = new CourseDAO();\n teacherDAO = new TeacherDAO();\n }", "public void setupContext(ServletContext context) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\tmap.put(\"CURRENT_THEME\", Constants.CURRENT_THEME);\r\n\t\tmap.put(\"LOGGED_USER\", Constants.LOGGED_USER);\r\n\t\tmap.put(\"YES\", Constants.YES);\r\n\t\tmap.put(\"NO\", Constants.NO);\r\n\t\tmap.put(\"ACTION\", Constants.ACTION);\r\n\t\tmap.put(\"ACTION_ADD\", Constants.ACTION_ADD);\r\n\t\tmap.put(\"SECURE_FIELD\", Constants.SECURE_FIELD);\r\n\t\tmap.put(\"DEBUG_MODE\", Constants.isDebugMode());\r\n\t\tmap.put(\"SHOW_FLAT_COMMISSIONS\", \"false\");\r\n\r\n\t\tcontext.setAttribute(\"Constants\", map);\r\n\r\n\t}", "@Override\n public void contextInitialized(ServletContextEvent sce) {\n // Setup Hibernate ORM Connector\n DB.setup();\n\n // Create Default User\n createInitialUser();\n\n // Set Defaults in Preferences table in DB\n try {\n setPreferenceDefaults();\n } catch (IOException e) {\n log.error(\"Problem Updating Preferences Table via Defaults\", e);\n }\n\n // Setup Sync Jobs\n startSyncAgents();\n }", "@Before\n\tpublic void init()\n\t{\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"persistenceUnit\");\n\t\tEntityManager entityManager = entityManagerFactory.createEntityManager();\n\t\tcacheManager = new CacheManagerDefaultImpl();\n\t\t((CacheManagerDefaultImpl) cacheManager).setEntityManager(entityManager);\n\t}", "@Override\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(new SLCodec());\n\t\tgetContentManager().registerOntology(MobilityOntology.getInstance());\n\t\tthis.addBehaviour(new ReceiveMessage());\n\t}", "@Before\n public void setUp() throws Exception {\n this.setServer(new JaxWsServer());\n this.getServer().setServerInfo(\n new ServerInfo(MovieService.class, new MovieServiceImpl(),\n \"http://localhost:9002/Movie\", false, true));\n super.setUp();\n }", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tfactory = Persistence.createEntityManagerFactory(\"Test\");\n\t\tServletContext sc = arg0.getServletContext();\n\t\tsc.setAttribute(EntityManagerFactory.class.getName(), factory);\n\t}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "@PostConstruct\n public void setup() {\n this.mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();\n }", "public TalkSystem(){\n this.talkManager = new TalkManager();\n this.messagingSystem = new MessagingSystem();\n this.scheduleSystem = new ScheduleSystem(talkManager);\n this.signUpMap = talkManager.getSignUpMap();\n }", "protected void setUpJSFObjects() throws Exception\n {\n setUpExternalContext();\n setUpLifecycle();\n setUpFacesContext();\n setUpView();\n setUpApplication();\n setUpRenderKit();\n }", "protected void setup(Context context) {}", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "private TwitterStore(){\n\t\tTwittUser tu = new TwittUser(\"1\", \"Admin\", \"Admin\", \"AAU\", \"The Admin\");\n\t\ttuProvider.put(tu.getId(), tu);\n\t\tTwittStatus st = new TwittStatus(\"1\", \"1\", \"Test status\", \"2014-01-01T00:00:00Z\");\n\t\tstProvider.put(st.getId(), st);\n\t}", "@Before\n public void setUp() {\n dialog = new File(\"unittests/rc/mock.vxml\").toURI();\n voice = new Voice();\n final GenericClient client = voice.getClient();\n client.setSecurityPolicy(\"unittests/etc/jvoicexml.policy\");\n client.loadConfiguration(\"unittests/etc/jndi.properties\");\n }", "@Before\n public void setUpContextManagerBeforeTest() throws Exception{\n workerI = new ContextManager.ContextManagerWorkerI();\n\n// //Create the communicator of context manager\n// ContextManager.communicator = com.zeroc.Ice.Util.initialize(new String[] {\"[Ljava.lang.String;@2530c12\"});\n//\n// //Get the preference\n// ContextManager.iniPreferenceWorker();\n//\n// //Get the locationWorker\n// ContextManager.iniLocationMapper();\n\n //Get the cityinfo of the context manager\n ContextManager.cityInfo = ContextManager.readCityInfo();\n\n //CurrentWeather set to 0\n ContextManager.currentWeather = 0;\n\n //Create sensor data and user to add in the users list\n mockSensor = new SensorData(\"David\", \"D\", 30, 100);\n mockUser = new User(3, new int[]{27, 30},90, 45, mockSensor, 0, false,false);\n ContextManager.users.put(\"David\", mockUser);\n\n }", "@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}", "@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "public void setUp() {\n entity = new Entity(BaseCareerSet.FIGHTER);\n }", "private void initSharedPreference(){\n mSharedPreferences = Configuration.getContext().getSharedPreferences(\"SessionManager\", Context.MODE_PRIVATE) ;\n }", "@BeforeClass\n public static void setUpBeforeClass() {\n TestNetworkClient.reset();\n context = ApplicationProvider.getApplicationContext();\n dataStorage = TestDataStorage.getInstance(context);\n ApplicationSessionManager.getInstance().startSession();\n }", "@Autowired\n\tpublic void setContext(ApplicationContext context) {\n\t\tthis.context = context;\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\n\t}", "@BeforeTest\n public void setUp() {\n UrlaubrWsUtils.migrateDatabase(TravelServiceImpl.DEFAULT_URL, TravelServiceImpl.DEFAULT_USER, TravelServiceImpl.DEFAULT_PASSWORD);\n\n service = new TravelServiceImpl();\n }", "private void init() {\r\n final List<VCSystem> vcs = datastore.createQuery(VCSystem.class)\r\n .field(\"url\").equal(Parameter.getInstance().getUrl())\r\n .asList();\r\n if (vcs.size() != 1) {\r\n logger.error(\"Found: \" + vcs.size() + \" instances of VCSystem. Expected 1 instance.\");\r\n System.exit(-1);\r\n }\r\n vcSystem = vcs.get(0);\r\n\r\n project = datastore.getByKey(Project.class, new Key<Project>(Project.class, \"project\", vcSystem.getProjectId()));\r\n\r\n }", "@Before\r\n\tpublic void init() {\r\n\t\tMockitoAnnotations.initMocks(this);\r\n\t\tmockMvc = MockMvcBuilders.standaloneSetup(tokenController).build();\r\n\r\n\t\t// mockMvc = MockMvcBuilders.webAppContextSetup(context).build();\r\n\t}", "@Override\r\n\tpublic void init(ServletConfig config) throws ServletException {\n\t\tbookService = new BookService();\r\n\t}", "void setup( File storeDir, Consumer<GraphDatabaseService> create );", "@Before\n\tpublic void setUp() throws Exception {\n\t\t/*\n\t\t * AbstractApplicationContext root = new ClassPathXmlApplicationContext(\n\t\t * \"classpath*:stc/protocol/mixedCodec.xml\"); tlvBeanDecoder =\n\t\t * (BeanMixedTLVDecoder) root.getBean(\"tlvBeanDecoder\"); tlvBeanEncoder\n\t\t * = (BeanMixedTLVEncoder) root.getBean(\"tlvBeanEncoder\");\n\t\t */\n\n\t}", "protected void setUpFacesContext() throws Exception\n {\n facesContextFactory = (FacesContextFactory) FactoryFinder\n .getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);\n facesContext = facesContextFactory.getFacesContext(\n servletContext, request, response, lifecycle);\n if (facesContext.getExternalContext() != null)\n {\n externalContext = facesContext.getExternalContext();\n }\n }", "public ApplicationContext() {\n FileInputStream in;\n props = new Properties();\n try {\n in = new FileInputStream(\"gamesettings.properties\");\n props.load(in);\n } catch (FileNotFoundException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n \n } catch (IOException ex) {\n props.setProperty(\"name\", \"Player\");\n props.setProperty(\"url\", \"0.0.0.0\");\n }\n }", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "protected void initToolbox(ServletContext servletContext) {\n if (StringUtils.isBlank(toolBoxLocation)) {\n LOG.debug(\"Skipping ToolManager initialisation, [{}] was not defined\", StrutsConstants.STRUTS_VELOCITY_TOOLBOXLOCATION);\n return;\n }\n LOG.debug(\"Configuring Velocity ToolManager with {}\", toolBoxLocation);\n toolboxManager = new ToolManager();\n toolboxManager.configure(toolBoxLocation);\n }", "@Before\n public void init() throws Exception {\n TestObjectGraphSingleton.init();\n TestObjectGraphSingleton.getInstance().inject(this);\n\n mockWebServer.start();\n }", "void initialize(Datastore datastore) throws InvalidDatastoreException;", "public void init( ServletConfig cfg ) throws ServletException {\r\n\tm_config = cfg;\r\n\tm_ctx = cfg.getServletContext();\r\n\tconfigure();\r\n }", "public CommunicationController() {\r\n _context = new Context(\"MyContext\");\r\n _app = UiApplication.getUiApplication();\r\n try {\r\n // Read settings from config.xml\r\n ECHO_SERVER_URI = Utils.getEchoServerUri();\r\n TIMEOUT = Utils.getTimeout();\r\n } catch (final Exception e) {\r\n alertDialog(e.toString());\r\n }\r\n }", "private final void doSetup() {\r\n \tsetEnvironmentVariables();\r\n \t\r\n \tcreateAppWindows();\r\n \t\r\n \tcreateAppPages();\r\n\r\n \t//Set the default resource bundle. This necessary even for non-L10N tests, because even they\r\n \t// need to call localizeFieldLocators()\r\n\t\tsetResourceBundle(DDConstants.DEFAULT_L10N_BUNDLE);\r\n\t\t\r\n\t\t//MUST be called after super.setup!!!\r\n \t//NOTE that ddUser is the equivalent of a user that is found in the setup screen.\r\n \t// The user that logs in to the app is known as the auto user. Until we figure out\r\n \t// whether that model applies, don't call this.\r\n \t//setDDUser();\r\n }", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "public DocumentServiceImpl() {\n this.store = new AuthenticationTokenStore();\n }", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "@Before\n public void init(){\n this.wpp = new Whatsapp();\n Twilio.init(ACCOUNT_SID,AUTH_TOKEN);\n\n }", "@Override\n\tpublic void contextInitialized(ServletContextEvent ctx) {\n\t\tDBConnectionPool.init();\n//\t\tConfig.loadConfig();\n\t}", "public UserManager() {\n\n this.userStore = new UserSet();\n this.communityStore = new CommunitySet();\n\n }", "public GameServiceTest() {\r\n\t\tsetupRequestContext();\r\n\t}", "@Before\n public void setup() {\n // appContext = new AnnotationConfigApplicationContext(LibraryConfig.class);\n // subject = appContext.getBean(RemoveBookServiceValidator.class);\n // database = appContext.getBean(BookRepository.class);\n getBooks();\n }", "private void setupRequestContext() {\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\n\t\tRequestContextHolder.setRequestAttributes(attributes);\n\t}", "@Override\r\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\r\n\t}", "@Override\r\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\r\n\t}", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "protected void setUp() throws Exception {\r\n beanUnderTest = new ContestManagerBean();\r\n\r\n context = new MockSessionContext();\r\n\r\n Field field = beanUnderTest.getClass().getDeclaredField(\"sessionContext\");\r\n field.setAccessible(true);\r\n field.set(beanUnderTest, context);\r\n\r\n entityManager = new MockEntityManager();\r\n DBUtil.clearDatabase();\r\n DBUtil.initDatabase();\r\n }" ]
[ "0.7021374", "0.6208752", "0.58720654", "0.56648827", "0.55957603", "0.54632664", "0.5409388", "0.5408388", "0.5408388", "0.53540206", "0.5350752", "0.53459704", "0.5201132", "0.51884687", "0.51835185", "0.51760286", "0.51712483", "0.51702976", "0.51541305", "0.5146577", "0.51462954", "0.51413894", "0.51326096", "0.51299435", "0.51271504", "0.51163924", "0.51117635", "0.5096528", "0.50874853", "0.50874853", "0.5082768", "0.50535357", "0.50497067", "0.50405025", "0.5036237", "0.5023514", "0.50111", "0.5008834", "0.50074047", "0.5006848", "0.5006159", "0.50043434", "0.49819005", "0.4980178", "0.497128", "0.49691892", "0.49592003", "0.49573702", "0.49518135", "0.49514169", "0.49478728", "0.4946905", "0.49237815", "0.49147683", "0.4912853", "0.49108315", "0.49095505", "0.49091735", "0.4900171", "0.48883128", "0.48844048", "0.4881192", "0.4879689", "0.4879689", "0.4877911", "0.4877911", "0.48751864", "0.48726374", "0.48719484", "0.4871422", "0.486856", "0.4864977", "0.48636356", "0.48617178", "0.4850108", "0.48480678", "0.48439273", "0.4842989", "0.48417363", "0.483572", "0.48309937", "0.48300064", "0.48256093", "0.48083708", "0.47997427", "0.47906405", "0.478889", "0.47862267", "0.47857344", "0.47854084", "0.47834188", "0.47831002", "0.47818723", "0.47792578", "0.47760734", "0.47735268", "0.47735268", "0.47729868", "0.47705936" ]
0.7313731
1
Sets the MessageStore used by this servlet. This function provides a common setup method for use by the test framework or the servlet's init() function.
void setMessageStore(MessageStore messageStore) { this.messageStore = messageStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "void setConversationStore(ConversationStore conversationStore) {\n this.conversationStore = conversationStore;\n }", "void setConversationStore(ConversationStore conversationStore) {\n this.conversationStore = conversationStore;\n }", "public void setEventStore(EventStore eventStore) {\n this.eventStore = eventStore;\n }", "private void createStore() {\n\n try {\n\n MailboxProtocolEnum curMbPrtcl = this.loginData.getMailboxProtocol();\n\n // Get a Properties and Session object\n Properties props = JavamailUtils.getProperties();\n\n // Trustmanager needed?\n if(curMbPrtcl.isUseOfSsl()) {\n\n MailSSLSocketFactory socketFactory = new MailSSLSocketFactory();\n socketFactory.setTrustManagers(new TrustManager[]\n { this.trustManager });\n\n props.put((\"mail.\" + curMbPrtcl.getProtocolId() + \".ssl.socketFactory\"),\n socketFactory);\n }\n\n Session session = Session.getInstance(props, null);\n session.setDebug(false);\n\n this.store = session.getStore(curMbPrtcl.getProtocolId());\n }\n catch(NoSuchProviderException e) {\n\n throw(new RuntimeException((\"Unknown Protocol: \" +\n this.loginData.getMailboxProtocol()), e));\n }\n catch(GeneralSecurityException gse) {\n\n throw(new RuntimeException((\"Security-problem: \" + gse.getMessage()),\n gse));\n }\n }", "public void setUp() {\n instance = new LogMessage(type, id, operator, message, error);\n }", "protected void setUp() {\n\t\tif (!Message.configure(\"wordsweeper.xsd\")) {\r\n\t\t\tfail (\"unable to configure protocol\");\r\n\t\t}\r\n\t\t\r\n\t\t// prepare client and connect to server.\r\n\t\tmodel = new Model();\r\n\t\t\r\n\t\t\r\n\t\tclient = new Application (model);\r\n\t\tclient.setVisible(true);\r\n\t\t\r\n\t\t// Create mockServer to simulate server, and install 'obvious' handler\r\n\t\t// that simply dumps to the screen the responses.\r\n\t\tmockServer = new MockServerAccess(\"localhost\");\r\n\t\t\r\n\t\t// as far as the client is concerned, it gets a real object with which\r\n\t\t// to communicate.\r\n\t\tclient.setServerAccess(mockServer);\r\n\t}", "private void initializeStore()\r\n {\r\n log.debug(\"initializing MongoStore\");\r\n try (InputStream is = getClass().getClassLoader().getResourceAsStream(\"visualharvester.properties\"))\r\n {\r\n final Properties properties = new Properties();\r\n properties.load(is);\r\n\r\n host = properties.get(\"mongo.host\").toString();\r\n final String portString = properties.get(\"mongo.port\").toString();\r\n port = Integer.valueOf(portString).intValue();\r\n database = properties.get(\"mongo.database\").toString();\r\n collection = properties.get(\"mongo.collection\").toString();\r\n\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"Could not open properties file, using defaults\", e);\r\n host = \"localhost\";\r\n port = 27017;\r\n database = \"visualdb\";\r\n collection = \"visualcollection\";\r\n }\r\n\r\n store = new MongoStorage(host, port, database, collection);\r\n\r\n }", "public void init() throws MessageBoxException {\n try {\n UserRegistry userRegistry = Utils.getUserRegistry();\n\n //create the topic storage path if it does not exists\n if (!userRegistry.resourceExists(MessageBoxConstants.MB_QUEUE_STORAGE_PATH)) {\n userRegistry.put(MessageBoxConstants.MB_QUEUE_STORAGE_PATH, userRegistry.newCollection());\n }\n\n } catch (RegistryException e) {\n throw new MessageBoxException(\"Can not access the registry\", e);\n }\n }", "@Before\n public void setUp()\n {\n m_instance = ConversationRepository.getInstance();\n m_fileSystem = FileSystem.getInstance();\n }", "@Override\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(new SLCodec());\n\t\tgetContentManager().registerOntology(MobilityOntology.getInstance());\n\t\tthis.addBehaviour(new ReceiveMessage());\n\t}", "@Before\r\n\tpublic void set()\r\n\t{\n\t\tif (!Message.configure(\"wordsweeper.xsd\")) {\r\n\t\t\tfail (\"unable to configure protocol\");\r\n\t\t}\r\n\t\tModel.serverAccess = mockServer;\r\n\t\tModel.gameLayout = gameLayout;\r\n\t\tModel.GAME = game;\r\n\t\tModel.PLAYER = player;\r\n\t\tModel.BOARD = board;\r\n\t\tModel.gameLayout.setLayout();\r\n\t\tModel.gameLayout.addListener();\r\n\t}", "public void setMessages() {\n try {\n __logger.info(\"Getting store...\");\n Store store = session.getStore(\"imaps\");\n store.connect(this.imapHost, this.username, this.password);\n\n __logger.info(\"Getting inbox...\");\n IMAPFolder folder = (IMAPFolder) store.getFolder(\"inbox\");\n\n if (!folder.isOpen()) {\n folder.open(Folder.READ_WRITE);\n }\n\n this.messages = folder.getMessages();\n\n __logger.info(\"Set messages\");\n } catch (MessagingException e) {\n __logger.error(\"Couldn't get messages\", e);\n }\n }", "@Override\n\tpublic void init() throws ServletException\n\t{\n\t\tsuper.init();\n\t\t\n\t\tActiveUsers = (HashMap<String, User>) getServletContext().getAttribute(\"ActiveUsers\");\n\t\tMessages = (ArrayList<Message>) getServletContext().getAttribute(\"Messages\");\n\t\t\n\t\tif(ActiveUsers == null)\n\t\t{\n\t\t\tActiveUsers = new HashMap<String, User>();\n\t\t\tgetServletContext().setAttribute(\"ActiveUsers\", ActiveUsers);\n\t\t}\n\t\t\n\t\tif(Messages == null)\n\t\t{\n\t\t\tMessages = new ArrayList<Message>();\n\t\t\tgetServletContext().setAttribute(\"Messages\", Messages);\n\t\t}\n\t}", "@Before\n public void setUp() throws Exception {\n this.setServer(new JaxWsServer());\n this.getServer().setServerInfo(\n new ServerInfo(MovieService.class, new MovieServiceImpl(),\n \"http://localhost:9002/Movie\", false, true));\n super.setUp();\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "private Store getStore() throws MessagingException {\n\t\t// create properties field\n\t\tProperties properties = getProtocolProporties(PROTOCOL_RECEIVE);\n\t\tSession emailSession = Session.getDefaultInstance(properties);\n\t\treturn connectSessionStore(emailSession);\n\t}", "public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}", "public SimpleDataStore () {\n\t\tmessageMap = new HashMap<String , List<Message>>() ;\n\t}", "public void init() {\n ContainerProperties containerProperties = buildContainerProperties();\n this.messageListenerContainer = buildMessageListenerContainer( consumerFactory, containerProperties );\n }", "public MessageManager() {\n this.messageList = new HashMap<>();\n }", "private void init(Bundle savedInstanceState) {\n messageManager = new MessageManager();\n }", "protected void setStore(String store) {\n this.store = store;\n }", "@Before\n public void setup() {\n PowerMockito.mockStatic(FacesContext.class);\n when(FacesContext.getCurrentInstance()).thenReturn(fc);\n\n PowerMockito.mockStatic(ExternalContext.class);\n when(fc.getExternalContext()).thenReturn(ec);\n\n navigationBean = new NavigationBean();\n\n sessionUser = new SessionUserBean();\n sessionUser.setUserID(SAMPLE_ID);\n sessionUser.setLanguage(SAMPLE_LANGUAGE);\n navigationBean.setSessionUser(sessionUser);\n }", "@Required\n\tpublic void setStoreSessionFacade(final StoreSessionFacade storeSessionFacade)\n\t{\n\t\tthis.storeSessionFacade = storeSessionFacade;\n\t}", "@BeforeEach\n public void setUp() {\n messageBus = MessageBusImpl.getInstance();\n broadcastReceiver = new MSreceiver(\"broadcastReceiver\", true);\n broadcastSender = new MSsender(\"broadcastSender\", new String[]{\"broadcast\"});\n eventReceiver1 = new MSreceiver(\"eventReceiver1\", false);\n eventReceiver2 = new MSreceiver(\"eventReceiver2\", false);\n eventSender = new MSsender(\"eventSender\", new String[]{\"event\"});\n broadcastSender.initialize();\n broadcastReceiver.initialize();\n eventSender.initialize();\n eventReceiver1.initialize();\n eventReceiver2.initialize();\n\n }", "@Override\n public void init() {\n ServletContext context = getServletContext();\n KeyLoader loader = new KeyLoader();\n\n context.setAttribute(\"translateKey\", loader.getKey(TRANSLATE));\n context.setAttribute(\"authKey\", loader.getKeyBytes(AUTH));\n context.setAttribute(\"servletRoles\", getServletRoles());\n }", "public void setTokenStore(TokenStore tokenStore) {\n this.tokenStore = tokenStore;\n }", "public void init() {\n LOG.info(\"Initializing side input stores.\");\n\n initializeStoreDirectories();\n }", "protected void setUpExternalContext() throws Exception\n {\n externalContext = new MockExternalContext(servletContext, request, response);\n }", "public void setMessageContexts(java.lang.String[] param){\n \n validateMessageContexts(param);\n\n localMessageContextsTracker = true;\n \n this.localMessageContexts=param;\n }", "private Session setUpEmailSession() throws MessagingException {\n Authenticator auth = new SimpleAuthenticator(mailUsername, mailPassword);\r\n Properties props = System.getProperties();\r\n props.put(\"mail.smtp.host\", mailHost);\r\n Session session = Session.getDefaultInstance(props, auth);\r\n Store store = session.getStore(\"pop3\");\r\n store.connect(mailHost, mailUsername, mailPassword); \r\n return session;\r\n }", "protected void setUp() throws Exception {\n handler = new ChangePropertyHandler(MAINFRAME);\n }", "protected void setUpServletObjects() throws Exception\n {\n servletContext = new MockServletContext();\n config = new MockServletConfig(servletContext);\n session = new MockHttpSession();\n session.setServletContext(servletContext);\n request = new MockHttpServletRequest(session);\n request.setServletContext(servletContext);\n response = new MockHttpServletResponse();\n }", "private static void initializeMessages() {\n messages = ResourceBundle.getBundle(\"org.apache.ws.commons.tcpmon.tcpmon\");\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tif (broker == null) {\r\n\t\t\tbroker = new PSBrokerBuilder().build();\r\n\t\t\tintSub = new IntegerSubscriber();\r\n\t\t\tunreadSub = new UnreadMessageSubscriber();\r\n\t\t\tpIntSub = new PredicatedIntegerSubscriber();\r\n\t\t}\r\n\t}", "private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }", "private Store openStore() throws MessagingException {\n\t\tStore store = getStore();\n\t\tstore.connect(host, port, name, password);\n\t\treturn store;\n\t}", "@PostConstruct\n public void setup() {\n this.mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();\n }", "@Before\n \tpublic void init() throws SimpleDBException {\n assertNotNull(applicationContext);\n handlerAdapter = applicationContext.getBean(\"handlerAdapter\", HandlerAdapter.class);\n this.testClient = this.createTestClient();\n \t\trefreshRequestAndResponse();\n \t}", "@Override\n protected void setUp() throws Exception {\n brokerService = new BrokerService();\n LevelDBStore adaptor = new LevelDBStore();\n brokerService.setPersistenceAdapter(adaptor);\n brokerService.deleteAllMessages();\n\n // A small max page size makes this issue occur faster.\n PolicyMap policyMap = new PolicyMap();\n PolicyEntry pe = new PolicyEntry();\n pe.setMaxPageSize(1);\n policyMap.put(new ActiveMQQueue(\">\"), pe);\n brokerService.setDestinationPolicy(policyMap);\n\n brokerService.addConnector(ACTIVEMQ_BROKER_BIND);\n brokerService.start();\n\n ACTIVEMQ_BROKER_URI = brokerService.getTransportConnectors().get(0).getPublishableConnectString();\n destination = new ActiveMQQueue(getName());\n }", "protected void setUpJSFObjects() throws Exception\n {\n setUpExternalContext();\n setUpLifecycle();\n setUpFacesContext();\n setUpView();\n setUpApplication();\n setUpRenderKit();\n }", "@Before\n public void setup() {\n mServerContext = mock(ServerContext.class);\n mServerRouter = mock(IServerRouter.class);\n mChannelHandlerContext = mock(ChannelHandlerContext.class);\n mBatchProcessor = mock(BatchProcessor.class);\n mStreamLog = mock(StreamLog.class);\n mCache = mock(LogUnitServerCache.class);\n\n // Initialize with newDirectExecutorService to execute the server RPC\n // handler methods on the calling thread.\n when(mServerContext.getExecutorService(anyInt(), anyString()))\n .thenReturn(MoreExecutors.newDirectExecutorService());\n\n // Initialize basic LogUnit server parameters.\n when(mServerContext.getServerConfig())\n .thenReturn(ImmutableMap.of(\n \"--cache-heap-ratio\", \"0.5\",\n \"--memory\", false,\n \"--no-sync\", false));\n\n // Prepare the LogUnitServerInitializer.\n LogUnitServer.LogUnitServerInitializer mLUSI = mock(LogUnitServer.LogUnitServerInitializer.class);\n when(mLUSI.buildStreamLog(\n any(LogUnitServerConfig.class),\n eq(mServerContext),\n any(BatchProcessorContext.class)\n )).thenReturn(mStreamLog);\n\n when(mLUSI.buildLogUnitServerCache(any(LogUnitServerConfig.class), eq(mStreamLog))).thenReturn(mCache);\n when(mLUSI.buildStreamLogCompaction(mStreamLog)).thenReturn(mock(StreamLogCompaction.class));\n when(mLUSI.buildBatchProcessor(\n any(LogUnitServerConfig.class),\n eq(mStreamLog),\n eq(mServerContext),\n any(BatchProcessorContext.class)\n )).thenReturn(mBatchProcessor);\n\n logUnitServer = new LogUnitServer(mServerContext, mLUSI);\n }", "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "private synchronized void initAtomStore() {\n if (atomStore != null) {\n return;\n }\n\n atomStore = new PersistedAtomStore(this);\n }", "public LocalOrpheusMessageDataStore(String namespace) throws InstantiationException {\n super(namespace);\n\n messageEJB = ObjectFactoryHelpers.resolveLocalEjbReference(namespace);\n }", "void setupExternalMessages();", "protected void setUp() throws Exception {\r\n // used by KeyConstants and UserProfile\r\n TestsHelper.loadConfig(TestsHelper.CONFIG_FILE);\r\n\r\n actionContext = new ActionContext(request, response);\r\n handler =\r\n new BidUpdateHandler(TestsHelper.createHandlerElement(\r\n \"BidUpdateHandler\", new String[] {\"auction_id_param_key\",\r\n \"max_amount_param_key\",\r\n \"bid_id_param_key\"}, new String[] {\"auction\", \"amount\", \"bid\"}));\r\n\r\n auctionManager = new MockAuctionManager();\r\n auctionPersistence = new MockAuctionPersistence();\r\n\r\n // initialize profile manager\r\n profileManager = new MockUserProfileManager();\r\n\r\n // initialize login handler\r\n Map attrs = new HashMap();\r\n attrs.put(\"profile_manager\", profileManager);\r\n attrs.put(\"request_param_keys\", new String[] {\"firstName\", \"lastName\", \"e-mail\"});\r\n attrs.put(\"search_profile_keys\", new String[] {\"first_name\", \"last_name\"});\r\n attrs.put(\"credential_profile_keys\", new String[] {\"email_address\"});\r\n attrs.put(\"no_such_profile_result_name\", \"no_such_profile_result_name\");\r\n attrs.put(\"incorrect_credential_result_name\", \"incorrect_credential_result_name\");\r\n loginHandler = new LoginHandler(attrs);\r\n\r\n // remove attribute from the servlet context if it exists\r\n request.getSession().getServletContext().removeAttribute(KeyConstants.AUCTION_MANAGER_KEY);\r\n }", "@PostConstruct\n private void init() {\n if(properties != null && properties.getOverride()) {\n LOGGER.info(\"############# Override Rabbit MQ Settings #############\");\n\n amqpAdmin.deleteExchange(DIRECT_EXCHANGE);\n amqpAdmin.declareExchange(\n new DirectExchange(DIRECT_EXCHANGE, true, false));\n\n bindingQueue(DIRECT_EXCHANGE, REGISTER_QUEUE,\n DIRECT_REGISTER_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SEND_TEMPLATE_EMAIL_QUEUE,\n SEND_TEMPLATE_EMAIL_QUEUE_ROUTER_KEY);\n bindingQueue(DIRECT_EXCHANGE, SUBJECT_REQUEST_VOTE_QUEUE,\n SUBJECT_REQUEST_VOTE_QUEUE_ROUTER_KEY);\n }\n }", "public void initWithCachedInAppMessages() {\n }", "public MessageManage(AppContext appContext) {\n\t\tsuper(appContext);\n\t}", "@Override\n\tpublic void doSetUp() throws Exception {\n\t\tsuper.doSetUp();\n\t\t\n\t\tif (smtpServer == null){\n\t\t\tsmtpServer = new Wiser(); \n\t\t\tsmtpServer.setPort(18089);\n\t\t\tsmtpServer.start();\n\t\t\t\n\t\t}\n\t\t// zorg ervoor dat mule blijft draaien en niet bij elke methode opnieuw\n\t\t// opstart\n\t\tsetDisposeManagerPerSuite(true);\n\t\tsetFailOnTimeout(false);\n\t\t\n\t\tMuleClient client;\n\t\ttry {\n\t\t\t// Zorg dat alle TAGs voor de terugmelding test beschikbaar zijn\n\t\t\tclient = new MuleClient();\n\t\t\tclient.send(\"vm://guc/rtmfguc/stelselBevragenService\",\n\t\t\t\t\trequestBasisregistratie, null);\n\t\t\tclient.send(\"vm://guc/rtmfguc/stelselBevragenService\", String\n\t\t\t\t\t.format(requestObjectTypeList, \"TMF-REG1\"), null);\n\t\t\tclient.send(\"vm://guc/rtmfguc/stelselBevragenService\", String\n\t\t\t\t\t.format(requestObjectTypeList, \"TMF-REG2\"), null);\n\t\t\tclient\n\t\t\t\t\t.send(\"vm://guc/rtmfguc/stelselBevragenService\", String\n\t\t\t\t\t\t\t.format(requestObjectInfo, \"TMF-REG1\",\n\t\t\t\t\t\t\t\t\t\"TMF-PERSOON\"), null);\n\t\t\tclient.send(\"vm://guc/rtmfguc/stelselBevragenService\", String\n\t\t\t\t\t.format(requestObjectTypeList, \"GM-REG2\"), null);\n\t\t} catch (MuleException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\t}", "private Globals(){\n store = null;\n service = null;\n filters = new EmailFilters();\n\n //notification types:\n keywordsNotification = 1;\n flagNotification = 0;\n }", "public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "@Override\n public void init() throws ServletException {\n this.manager = (DBManager)super.getServletContext().getAttribute(\"dbmanager\");\n }", "public MessagingSystem()\r\n\t{ \r\n\t\ttopics= new HashMap <String, Topic>(); //the name of the user is the key and the mailbox is its value\r\n\t\tusers= new HashMap <String, User>(); \r\n\t\ttopics.put(\"Commits\", new Topic(\"Commits\"));\r\n\t\ttopics.put(\"Issues\", new Topic(\"Issues\"));\r\n\t\ttopics.put(\"Discussion\", new Topic(\"Discussion\"));\r\n\t\ttopics.put(\"Tasks\", new Topic(\"Tasks\"));\r\n\t\t\r\n\t}", "public void setUp() {\n _notifier = new EventNotifier();\n _doc = new DefinitionsDocument(_notifier);\n }", "@Override\n public void init() throws LifecycleException {\n logger.info(\"Start to parse and config Web Server ...\");\n configParse();\n\n // TODO web server 是否应该关心 database 的状态? 当 database 连接断开后,相关接口返回 HTTP-Internal Server Error 是不是更合理一些\n // step 2: check database state\n\n // 注册为EventBus的订阅者\n Segads.register(this);\n }", "@BeforeClass\r\n public static void setupStatic() throws Exception {\n\tActiveMqBroker = new BrokerService();\r\n\tActiveMqBroker.setPersistent(false);\r\n\tActiveMqBroker.start();\r\n\r\n\t// Producer\r\n\tproducer = new JmsProducer(new RuntimeContext<Producer>(JMS_CONFIG_PRODUCER_KEY, Producer.class));\r\n\r\n\t// Consumer which will do the assertions\r\n\tconsumer = new JmsConsumer(new RuntimeContext<Consumer>(JMS_CONFIG_CONSUMER_KEY, Consumer.class));\r\n\tconsumer.addMessageHandler(new MessageHandler() {\r\n\r\n\t @Override\r\n\t public boolean onReceive(Message message) throws MessageException {\r\n\t\tRECEIVED_MESSAGES.put(uniqueMessageId(message.getProviderId()), message);\r\n\t\treturn true;\r\n\t }\r\n\r\n\t @Override\r\n\t public void onError(Message message, Throwable th) {\r\n\t\tth.printStackTrace();\r\n\t }\r\n\t});\r\n\r\n\tconsumer.start();\r\n }", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }", "@Inject\n\tpublic StoreManagement(Store store) {\n\t\tsuper(store.shardId(), store.indexSettings());\n\t\tthis.store = store;\n\t}", "@Autowired(required = true)\n public void setMessageSource(MessageSource messageSource) {\n MessageUtils.messageSource = messageSource;\n }", "@Override\n public void contextInitialized( ServletContextEvent sce ) {\n LOG.debug( \"Initializing EMF\" );\n EMFactory.initializeEMF();\n LOG.debug( \"EMF initialized\" );\n }", "protected Store getStore() throws MessagingException {\n\t\tSession session = EmailUtil.createSession(protocol, timeoutMs);\n\t\treturn session.getStore();\n\t}", "public void setMessageDrivenContext(MessageDrivenContext context) {\n\t\tthis.sessionContext = context;\n\t}", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "private void setSysProperties() {\n Properties sysProperties = System.getProperties();\n\n // SMTP properties\n sysProperties.put(\"mail.smtp.auth\", \"true\");\n sysProperties.put(\"mail.smtp.starttls.enable\", \"true\");\n sysProperties.put(\"mail.smtp.host\", smtpHost);\n sysProperties.put(\"mail.smtp.port\", \"587\");\n\n //IMAP properties\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n\n // Credentials\n sysProperties.put(\"mail.user\", username);\n sysProperties.put(\"mail.password\", password);\n\n __logger.info(\"Set system properties\");\n }", "@BeforeEach\n\tpublic void setup() throws Exception {\n\t\tGDACoreActivator activator = new GDACoreActivator(); // Make an instance to call method that sets static field!\n\t\tactivator.start(mockContext); // Inject the mock\n\n\t\tosgiServiceBeanHandler = new OsgiServiceBeanHandler();\n\t}", "public MessageManager() {\n }", "protected abstract void doInitialize() throws JMSException;", "public void initialize() {\n setCommitteeHelper(getNewCommitteeHelperInstanceHook(this));\n }", "@Autowired\r\n\tpublic void setDataStore(TrPortfolioContestDAO dataStore) {\r\n\t\tthis.dataStore = dataStore;\r\n\t}", "private SingletonApp( Context context ) {\n mMB = MessageBroker.getInstance( context );\n }", "protected void initToolbox(ServletContext servletContext) {\n if (StringUtils.isBlank(toolBoxLocation)) {\n LOG.debug(\"Skipping ToolManager initialisation, [{}] was not defined\", StrutsConstants.STRUTS_VELOCITY_TOOLBOXLOCATION);\n return;\n }\n LOG.debug(\"Configuring Velocity ToolManager with {}\", toolBoxLocation);\n toolboxManager = new ToolManager();\n toolboxManager.configure(toolBoxLocation);\n }", "@Override\n\tpublic void setLogServer(emLogServerSettings logServer) throws emException,\n\t\t\tTException {\n\n\t}", "static public void setContext(final Context context) {\n // once setContext is called, we can set up the uncaught exception handler since\n // it will force logging to the file\n if (null == LogPersister.context) {\n\n // set a custom JUL Handler so we can capture third-party and internal java.util.logging.Logger API calls\n LogManager.getLogManager().getLogger(\"\").addHandler(julHandler);\n java.util.logging.Logger.getLogger(\"\").setLevel(Level.ALL);\n\n LogPersister.context = context;\n\n // now that we have a context, let's set the fileLoggerInstance properly unless it was already set by tests\n if (fileLoggerInstance == null || fileLoggerInstance instanceof FileLogger) {\n FileLogger.setContext(context);\n fileLoggerInstance = FileLogger.getInstance();\n }\n\n SharedPreferences prefs = LogPersister.context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n\n // level\n if (null != level) { // someone called setLevel method before setContext\n setLevelSync(level); // seems redundant, but we do this to save to SharedPrefs now that we have Context\n } else { // set it to the SharedPrefs value, or DEFAULT if no value in SharedPrefs yet\n setLevelSync(Logger.LEVEL.fromString(prefs.getString(SHARED_PREF_KEY_level, getLevelDefault().toString())));\n }\n\n // logFileMaxSize\n if (null != logFileMaxSize) { // someone called setMaxStoreSize method before setContext\n setMaxLogStoreSize(logFileMaxSize); // seems redundant, but we do this to save to SharedPrefs now that we have Context\n } else { // set it to the SharedPrefs value, or DEFAULT if no value in SharedPrefs yet\n setMaxLogStoreSize(prefs.getInt(SHARED_PREF_KEY_logFileMaxSize, DEFAULT_logFileMaxSize));\n }\n\n // capture\n if (null != capture) { // someone called setCapture method before setContext\n setCaptureSync(capture); // seems redundant, but we do this to save to SharedPrefs now that we have Context\n } else { // set it to the SharedPrefs value, or DEFAULT if no value in SharedPrefs yet\n setCaptureSync(prefs.getBoolean (SHARED_PREF_KEY_logPersistence, DEFAULT_capture));\n }\n\n uncaughtExceptionHandler = new UncaughtExceptionHandler ();\n Thread.setDefaultUncaughtExceptionHandler (uncaughtExceptionHandler);\n }\n }", "public void setStoreId(String storeId) {\n\t doSetStoreId(storeId);\n\t return;\n\t }", "public GlobalSetup(){\n\t\t\n\t\tpropertyData = new Properties();\n\t\t\n\t\ttry{\n\t\t\tInputStream propertyPath = new FileInputStream(\"src/test/resources/properties/categoriesData.properties\");\n\t\t\tpropertyData.load(propertyPath);\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t}", "@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }", "@Before\n public void setUp() throws Exception {\n localServer = new KVServer(\"test\", \"localhost\", 2181);\n localServer.initKVServer(1234, 11, IKVServer.CacheStrategy.LFU.getValue());\n localServerThread = new Thread(localServer);\n localServerThread.start();\n\n KVClient client = new KVClient();\n localKvClient = new KVStore(client, \"localhost\", 1234);\n localKvClient.connect();\n\n // setting up ecs\n client = new KVClient();\n ecsKvClient = new KVStore(client, \"localhost\", 50000);\n ecsKvClient.connect();\n\n }", "public void onStoreReady() {\n mMxEventDispatcher.dispatchOnStoreReady();\n }", "@Override\n @Before\n public void setUp() throws Exception {\n System.setProperty(\"org.apache.activemq.transport.AbstractInactivityMonitor.keepAliveTime\", \"2\");\n this.realStore = true;\n super.setUp();\n }", "@BeforeTest()\n\tpublic void initializemanager() {\n\t\tsetDriver(\"chrome\");\n\t\tdriver.get(getApplicationUrl(\"salesforce\"));\n\t\tdriver.manage().window().maximize();\n\t\tWebpageFactory.initializePageObjects(driver);\n\t\tDBUtil.createConnection();\n\t}", "@Before\n public void init() throws Exception {\n TestObjectGraphSingleton.init();\n TestObjectGraphSingleton.getInstance().inject(this);\n\n mockWebServer.start();\n }", "@Before\n public void initBeans() throws Exception {\n MockitoAnnotations.initMocks(this);\n doReturn(aweElements).when(context).getBean(any(Class.class));\n emailService.setApplicationContext(context);\n emailBuilder.setApplicationContext(context);\n when(aweElements.getLocaleWithLanguage(anyString(), any())).thenReturn(\"\");\n }", "public void initialize() {\r\n\r\n\t\t/** URL of the ActiveMQ broker, prepended by transport protocol **/\r\n\t\tString brokerUrl = config.getConfig().getString(\"broker_url\");\r\n\r\n\t\t/** Topic to subscribe to for receiving access to all notifications **/\r\n\t\tString topicName = config.getConfig().getString(\"topic\");\r\n\r\n\t\t/** Username for authenticating with the ActiveMQ broker **/\r\n\t\tString userName = config.getConfig().getString(\"user\");\r\n\r\n\t\t/** The password corresponding to the username **/\r\n\t\tString password = config.getConfig().getString(\"password\");\r\n\r\n\t\t// Creates a connection\r\n\t\tActiveMQSslConnectionFactory connectionFactory = new ActiveMQSslConnectionFactory(\r\n\t\t\t\tbrokerUrl);\r\n\r\n\t\t// Setting the trust manager to the connection factory\r\n\t\tconnectionFactory.setKeyAndTrustManagers(null, trustedCerts,\r\n\t\t\t\tnew SecureRandom());\r\n\t\tconnectionFactory.setWatchTopicAdvisories(false);\r\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (logger.isDebugEnabled()){\r\n\t\t\t\tlogger.debug(\"creating connection to \" + brokerUrl);\r\n\t\t\t}\r\n\t\t\t// Connect to the broker\r\n\t\t\tConnection connection = connectionFactory.createConnection(\r\n\t\t\t\t\tuserName, password);\r\n\r\n\t\t\t// Creating session for sending messages\r\n\t\t\tsession = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\r\n\t\t\tconnection.start();\r\n\r\n\t\t\t// Creating the topic (i.e. creating a link to the already existing\r\n\t\t\t// one on the broker)\r\n\t\t\tTopic topic = session.createTopic(topicName);\r\n\r\n\t\t\t// MessageConsumer is used for receiving (consuming) messages from\r\n\t\t\t// the topic (above given threshold)\r\n\t\t\tMessageConsumer consumer = session.createConsumer(topic);\r\n\t\t\tconsumer.setMessageListener(this);\r\n\r\n\t\t\tif (logger.isDebugEnabled()) {\r\n\t\t\t\tlogger.debug(\"Connection to Notification with Id \"\r\n\t\t\t\t\t\t+ connection.getClientID() + \" Listening for messages\");\r\n\t\t\t}\r\n\r\n\t\t} catch (JMSException e) {\r\n\t\t\tsession = null;\r\n\t\t\tlogger.error(\"[JMS Exception] \" + e.getMessage());\r\n\t\t}\r\n\t}", "private static void initialize()\n {\n\tif (cookieHandler == null)\n\t{\n\t BrowserService service = ServiceProvider.getService();\n\t cookieHandler = service.getCookieHandler();\n\t}\n }", "@Override\r\n\tprotected void setup() {\n\t\tgetContentManager().registerLanguage(codec);\r\n\t\tgetContentManager().registerOntology(ontology);\r\n\t\t\r\n\t\tObject[] args = getArguments();\r\n\t\tif(args != null && args.length > 0) {\r\n\t\t\tbroker = (Broker)args[0];\r\n\t\t} else {\r\n\t\t\tbroker = new Broker(\"Broker\");\r\n\t\t}\r\n\t\t\r\n\t\tProgramGUI.getInstance().printToLog(broker.hashCode(), getLocalName(), \"created\", Color.GREEN.darker());\r\n\t\t\r\n\t\t// Register in the DF\r\n\t\tDFRegistry.register(this, BROKER_AGENT);\r\n\t\t\r\n\t\tsubscribeToRetailers();\r\n\t\tquery();\r\n\t\tpurchase();\r\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t\t/*\n\t\t * AbstractApplicationContext root = new ClassPathXmlApplicationContext(\n\t\t * \"classpath*:stc/protocol/mixedCodec.xml\"); tlvBeanDecoder =\n\t\t * (BeanMixedTLVDecoder) root.getBean(\"tlvBeanDecoder\"); tlvBeanEncoder\n\t\t * = (BeanMixedTLVEncoder) root.getBean(\"tlvBeanEncoder\");\n\t\t */\n\n\t}", "void setNotificationTokenStore(NotificationTokenStore notificationTokenStore) {\n this.notificationTokenStore = notificationTokenStore;\n }", "public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}", "@BeforeClass\n public static void beforeAll() {\n // The logger is shared by everything so this is the right place for it.\n TestSupportLogger.initLogger();\n\n /**\n * The context represents the application environment - should be fine to set up once here.\n * It includes creation and adding (as attributes) other one off objects such as:\n * - SessionFactory\n * - Configuration\n * - GalleryManager\n */\n context = new MockServletContext(TestSupportConstants.contextBaseDirPrefix + TestSupportConstants.contextBaseDir, null);\n String realPath = context.getRealPath(\"/\");\n assertEquals(TestSupportConstants.contextBaseDir, realPath);\n\n factory = TestSupportSessionFactory.getSessionFactory();\n\n context.setAttribute(\"sessionFactory\", factory);\n assertSame(factory, context.getAttribute(\"sessionFactory\"));\n\n configurationManager = new Configuration(factory);\n // Test one configuration value to check this has worked.\n assertTrue(((BlogEnabled) (configurationManager.getConfigurationItem(\"blogEnabled\"))).get());\n\n context.setAttribute(\"configuration\", configurationManager);\n assertSame(configurationManager, context.getAttribute(\"configuration\"));\n\n galleryManager = gallerySetup();\n context.setAttribute(\"Galleries\",galleryManager);\n assertSame(galleryManager, context.getAttribute(\"Galleries\"));\n }", "@Override\n public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "@Before\n\tpublic void loadQueueSettings(){\n\t\textendedBeans = new ClassPathXmlApplicationContext(\"applicationContext-messaging-incoming.xml.optional\");\n\t\tIncomingCommandsListener listener = (IncomingCommandsListener) extendedBeans.getBean(\"incomingCommandsListener\");\n\t\tlog.info(listener);\n\t}", "public void setKeyStore(String keyStoreLocation) {\n if (!complete) {\n this.keyStoreLocation = keyStoreLocation;\n } else {\n log.warn(\"Connection Descriptor setter used outside of factory.\");\n }\n }", "@Before\n\tpublic void setup() throws Exception {\n\t\tthis.mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();\n\t}", "@Before\r\n public void setup() {\r\n dbwMock.userId = \"testUser\";\r\n dbw = new DatabaseWrapper(dbwMock);\r\n\r\n context = ApplicationProvider.getApplicationContext();\r\n\r\n book = new Book();\r\n\r\n requester = new Profile();\r\n }", "@PostConstruct\n public void init() {\n eventBus.register(this);\n }" ]
[ "0.66440034", "0.5966987", "0.5966987", "0.56996703", "0.5655798", "0.5624561", "0.5622412", "0.5599897", "0.5403698", "0.5374355", "0.5361134", "0.5356426", "0.53499913", "0.53176844", "0.53008634", "0.5292048", "0.5292048", "0.5271679", "0.5247419", "0.5240935", "0.52146703", "0.5214162", "0.5207347", "0.5170833", "0.5158204", "0.51463556", "0.51311576", "0.5095255", "0.50906825", "0.5085506", "0.5080599", "0.5075355", "0.50677854", "0.5061389", "0.50581324", "0.50560856", "0.50401545", "0.5022096", "0.50111747", "0.50105834", "0.49878776", "0.49853897", "0.4974967", "0.4974962", "0.49647993", "0.49642402", "0.4962232", "0.4956086", "0.4954511", "0.49468365", "0.49398416", "0.49289015", "0.49280182", "0.49237043", "0.49154434", "0.49150962", "0.4912623", "0.49094874", "0.49072152", "0.49058068", "0.4905215", "0.49048856", "0.49027932", "0.49015963", "0.49006382", "0.4892173", "0.48912007", "0.48890722", "0.4888362", "0.48860285", "0.48761266", "0.48679948", "0.48632348", "0.48559478", "0.484757", "0.48423016", "0.48385218", "0.48365265", "0.48324454", "0.48281336", "0.48278922", "0.48268288", "0.48224515", "0.48216355", "0.48187497", "0.4816802", "0.4812355", "0.48050088", "0.47974336", "0.47959033", "0.4795632", "0.47932708", "0.47818616", "0.4780885", "0.47755387", "0.47738886", "0.47703004", "0.47646052", "0.47641027" ]
0.72701365
1
Sets the UserStore used by this servlet. This function provides a common setup method for use by the test framework or the servlet's init() function.
void setUserStore(UserStore userStore) { this.userStore = userStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupUser() {\n }", "public UserManager() {\n\n this.userStore = new UserSet();\n this.communityStore = new CommunitySet();\n\n }", "public void setUpTestdata() {\n\t\tsetDefaultUserName(Config.getProperty(\"defaultUserName\"));\r\n\t\tsetDefaultPassword(Config.getProperty(\"defaultPassword\"));\r\n\t\tsetTestsiteurl(Config.getProperty(\"testsiteurl\"));\r\n\t\tsetChromeDriverPath(Config.getProperty(\"chromeDriverPath\"));\r\n\t\tsetGeckoDriverPath(Config.getProperty(\"geckoDriverPath\"));\r\n\t\tsetIeDriverPath(Config.getProperty(\"ieDriverPath\"));\r\n\t}", "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "private void initUser() {\n\t}", "protected void setUp() \r\n {\n System.out.println(\"Setting up User Test !\");\r\n \t//lProps = new Properties();\t\r\n //lProps.put(Context.INITIAL_CONTEXT_FACTORY,lContextFactory);\r\n //lProps.put(Context.PROVIDER_URL,lURL);\r\n //lProps.put(Context.URL_PKG_PREFIXES,lPrefixes);\r\n try\r\n {\r\n lProps.list(System.out);\r\n lIC = new InitialContext(lProps);\r\n //sLog.debug(\"Created Initial Context\");\r\n System.out.println(\"Created Initial Context-looking for UserHome\");\r\n Object homeObj = lIC.lookup(lJndiName);\r\n System.out.println(\"got Object!\");\r\n lHome = (UserHome) PortableRemoteObject.narrow(homeObj,UserHome.class); \r\n \r\n //lSessionHome = (PJVTProducerSessionHome) lIC.lookup(lJndiName);\r\n \r\n System.out.println(\"User Home:\"+lHome.toString());\r\n \r\n }\r\n catch(Throwable t)\r\n {\r\n t.printStackTrace();\r\n }\r\n\t}", "@Override\n public void contextInitialized(ServletContextEvent sce) {\n // Setup Hibernate ORM Connector\n DB.setup();\n\n // Create Default User\n createInitialUser();\n\n // Set Defaults in Preferences table in DB\n try {\n setPreferenceDefaults();\n } catch (IOException e) {\n log.error(\"Problem Updating Preferences Table via Defaults\", e);\n }\n\n // Setup Sync Jobs\n startSyncAgents();\n }", "public UserManager(Server server) {\r\n this.server = server;\r\n this.dbManager = (DbManager)this.server.getContext().getAttributes().get(\"DbManager\");\r\n try {\r\n this.jaxbContext = \r\n JAXBContext.newInstance(\r\n org.hackystat.sensorbase.resource.users.jaxb.ObjectFactory.class);\r\n loadDefaultUsers(); //NOPMD it's throwing a false warning. \r\n initializeCache(); //NOPMD \r\n initializeAdminUser(); //NOPMD\r\n }\r\n catch (Exception e) {\r\n String msg = \"Exception during UserManager initialization processing\";\r\n server.getLogger().warning(msg + \"\\n\" + StackTrace.toString(e));\r\n throw new RuntimeException(msg, e);\r\n }\r\n }", "@Before\n public void setup() {\n mockMvc = MockMvcBuilders.webAppContextSetup(webContext).build();\n\n regularUser = new User();\n regularUser.setUsername(\"regularUser\");\n regularUser.setPassword(\"testPassword1!\");\n regularUser.setRole(\"USER\");\n\n adminUser = new User();\n adminUser.setUsername(\"adminUser\");\n adminUser.setPassword(\"testPassword1!\");\n adminUser.setRole(\"ADMIN\");\n\n auth = mock(Authentication.class);\n securityContext = mock(SecurityContext.class);\n SecurityContextHolder.setContext(securityContext);\n }", "@BeforeEach\n\t public void setUser() {\n\t\tpasswordEncoder=new BCryptPasswordEncoder();\n\t\tuser=new AuthUser();\n\t\tuser.setId(1L);\n\t\tuser.setFirstName(\"Mohammad\");\n\t\tuser.setLastName(\"Faizan\");\n\t\tuser.setEmail(\"[email protected]\");\n\t\tuser.setPassword(passwordEncoder.encode(\"faizan@123\"));\n\t\tuser.setAccountNonExpired(true);\n\t\tuser.setAccountNonLocked(true);\n\t\tuser.setCredentialsNonExpired(true);\n\t\tuser.setEnabled(true);\n\t\tSet<Role> roles=new HashSet<>();\n\t\tRole role=new Role();\n\t\trole.setId(1L);\n\t\trole.setName(\"USER\");\n\t\troles.add(role);\n\t\tuser.setRoles(roles);\n\t\t\n\t}", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "@BeforeAll\n public static void initAll() {\n emf = Persistence.createEntityManagerFactory(\"test-resource-local\");\n propertyName = User_.username.getName();\n emf.close();\n validator = Validation.buildDefaultValidatorFactory().getValidator();\n }", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "@BeforeClass\n\tpublic static void setUpClass(){\n\t\tserviceLang = new LocatorRemoteEjbServices().getServiceLanguage();\n\t\t\n\t\tuser = new User();\n\t\tserviceUser = new LocatorRemoteEjbServices().getServiceUser();\n\t}", "public UserStore() throws StoreException {\n try {\n connection = DBUtil.getExternalConnection(\"project\");\n connection.setAutoCommit(false);\n }\n catch (SQLException e) {\n throw new StoreException(e);\n }\n }", "@Before\r\n public void setup() {\r\n dbwMock.userId = \"testUser\";\r\n dbw = new DatabaseWrapper(dbwMock);\r\n\r\n context = ApplicationProvider.getApplicationContext();\r\n\r\n book = new Book();\r\n\r\n requester = new Profile();\r\n }", "public void setUserContext(UserContext userContext);", "@Before\n public void SetUp()\n {\n Mockito.reset(userServiceMock);\n Mockito.clearInvocations(userServiceMock);\n mockMvc = MockMvcBuilders.webAppContextSetup(webConfiguration).build();\n }", "@Before\n\tpublic void initialize() {\n\t\tuser_reg = new UserRegistration();\n\t}", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "private void initializeStore()\r\n {\r\n log.debug(\"initializing MongoStore\");\r\n try (InputStream is = getClass().getClassLoader().getResourceAsStream(\"visualharvester.properties\"))\r\n {\r\n final Properties properties = new Properties();\r\n properties.load(is);\r\n\r\n host = properties.get(\"mongo.host\").toString();\r\n final String portString = properties.get(\"mongo.port\").toString();\r\n port = Integer.valueOf(portString).intValue();\r\n database = properties.get(\"mongo.database\").toString();\r\n collection = properties.get(\"mongo.collection\").toString();\r\n\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"Could not open properties file, using defaults\", e);\r\n host = \"localhost\";\r\n port = 27017;\r\n database = \"visualdb\";\r\n collection = \"visualcollection\";\r\n }\r\n\r\n store = new MongoStorage(host, port, database, collection);\r\n\r\n }", "@BeforeMethod\n\tpublic void testSetUp()\n\t{\n\t\tcommonUtilities.invokeBrowser();\n\t\tloginPage.login(ReadPropertiesFile.getPropertyValue(\"username\"), ReadPropertiesFile.getPropertyValue(\"password\"));\n\t}", "UserStoreManager getUserStoreManager() throws UserStoreException;", "@Override\n @Before\n public void setUp() throws Exception {\n super.setUp();\n\n entityManager = getEntityManager();\n\n logger = Logger.getLogger(getClass());\n\n instance = new UserServiceImpl();\n TestsHelper.setField(instance, \"logger\", logger);\n TestsHelper.setField(instance, \"entityManager\", entityManager);\n TestsHelper.setField(instance, \"supervisorRoleName\", supervisorRoleName);\n TestsHelper.setField(instance, \"adminRoleName\", adminRoleName);\n }", "private final void doSetup() {\r\n \tsetEnvironmentVariables();\r\n \t\r\n \tcreateAppWindows();\r\n \t\r\n \tcreateAppPages();\r\n\r\n \t//Set the default resource bundle. This necessary even for non-L10N tests, because even they\r\n \t// need to call localizeFieldLocators()\r\n\t\tsetResourceBundle(DDConstants.DEFAULT_L10N_BUNDLE);\r\n\t\t\r\n\t\t//MUST be called after super.setup!!!\r\n \t//NOTE that ddUser is the equivalent of a user that is found in the setup screen.\r\n \t// The user that logs in to the app is known as the auto user. Until we figure out\r\n \t// whether that model applies, don't call this.\r\n \t//setDDUser();\r\n }", "private void setAuthenticatedUser(HttpServletRequest req, HttpSession httpSess, String userName) {\n\t\t// Set the authentication\n\t\tauthComponent.setCurrentUser(userName);\n\n\t\t// Set up the user information\n\t\tUserTransaction tx = transactionService.getUserTransaction();\n\t\tNodeRef homeSpaceRef = null;\n\t\tUser user;\n\t\ttry {\n\t\t\ttx.begin();\n\t\t\tuser = new User(userName, authService.getCurrentTicket(), personService.getPerson(userName));\n\t\t\thomeSpaceRef = (NodeRef) nodeService.getProperty(personService.getPerson(userName), ContentModel.PROP_HOMEFOLDER);\n\t\t\tif(homeSpaceRef == null) {\n\t\t\t\tlogger.warn(\"Home Folder is null for user '\"+userName+\"', using company_home.\");\n\t\t\t\thomeSpaceRef = (NodeRef) nodeService.getRootNode(Repository.getStoreRef());\n\t\t\t}\n\t\t\tuser.setHomeSpaceId(homeSpaceRef.getId());\n\t\t\ttx.commit();\n\t\t} catch (Throwable ex) {\n\t\t\tlogger.error(ex);\n\n\t\t\ttry {\n\t\t\t\ttx.rollback();\n\t\t\t} catch (Exception ex2) {\n\t\t\t\tlogger.error(\"Failed to rollback transaction\", ex2);\n\t\t\t}\n\n\t\t\tif (ex instanceof RuntimeException) {\n\t\t\t\tthrow (RuntimeException) ex;\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"Failed to set authenticated user\", ex);\n\t\t\t}\n\t\t}\n\n\t\t// Store the user\n\t\thttpSess.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);\n\t\thttpSess.setAttribute(LoginBean.LOGIN_EXTERNAL_AUTH, Boolean.TRUE);\n\n\t\t// Set the current locale from the Accept-Lanaguage header if available\n\t\tLocale userLocale = parseAcceptLanguageHeader(req, m_languages);\n\n\t\tif (userLocale != null) {\n\t\t\thttpSess.setAttribute(LOCALE, userLocale);\n\t\t\thttpSess.removeAttribute(MESSAGE_BUNDLE);\n\t\t}\n\n\t\t// Set the locale using the session\n\t\tI18NUtil.setLocale(Application.getLanguage(httpSess));\n\n\t}", "public static void setupContext(ServletContext context) {\n \t//I don't need this dropdown list. bguo.\n// ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context);\n// LookupManager mgr = (LookupManager) ctx.getBean(\"lookupManager\");\n//\n// // get list of possible roles\n// context.setAttribute(RoleConstants.AVAILABLE_ROLES, mgr.getAllRoles());\n// log.debug(\"Drop-down initialization complete [OK]\");\n }", "@BeforeEach\n public void setUp() {\n testUserLoginRes = new LoginData(\n CURRENT_USER.getUserId(),\n CURRENT_USER.getPassword()\n );\n }", "@Autowired\n public void setUserService(UserService userService) {\n this.userService = userService;\n }", "public void setupSession(UserMstEx userMstEx) {\n\n setUserSeq(userMstEx.getUserSeq());\n setUserAccount(userMstEx.getUserAccount());\n setUserName(userMstEx.getUserName());\n setUserLocale(userMstEx.getUserLocale());\n setUserTimezone(userMstEx.getUserTimezone());\n setUserCurrency(userMstEx.getUserCurrency());\n setUserSubMenuRole(userMstEx.getUserSubMenuRole());\n\n }", "@PostConstruct\n\tpublic void setup() throws ServletException {\n\t\tif (StringUtils.isEmpty(adminId) || StringUtils.isEmpty(adminPwd)) {\n\t\t\tthrow new ServletException(\"System admin ID/password are not defined in properties file.\");\n\t\t}\n\n\t\tsecret = adminId + \":\" + adminPwd;\n\t}", "public static void setUserDetails(UserSetup userSetup) {\n\n }", "@Before\n public void setup() {\n PowerMockito.mockStatic(FacesContext.class);\n when(FacesContext.getCurrentInstance()).thenReturn(fc);\n\n PowerMockito.mockStatic(ExternalContext.class);\n when(fc.getExternalContext()).thenReturn(ec);\n\n navigationBean = new NavigationBean();\n\n sessionUser = new SessionUserBean();\n sessionUser.setUserID(SAMPLE_ID);\n sessionUser.setLanguage(SAMPLE_LANGUAGE);\n navigationBean.setSessionUser(sessionUser);\n }", "public void initData(UserManager userManager) {\n this.userManager = userManager;\n }", "@PostConstruct\r\n public void init() {\n HttpSession session = SessionUtil.getSession();\r\n String email = (String) session.getAttribute(\"email\");\r\n user = userFacade.users(email);\r\n }", "@BeforeMethod\n\tpublic void setUp(){\n\t\tinitialization();\n\t\tloginPage=new LoginPage();\n\t\thomePage=loginPage.login(props.getProperty(\"username\"), props.getProperty(\"password\"));\n\t}", "@BeforeMethod\n\tpublic void setup() {\n\t\tinitialization();\n\t\tloginpage = new LoginPage();\n\t\tcontactpage=new ContactPage();\n\t\ttestutil = new TestUtil();\n\t\thomepage=loginpage.login(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\n\t}", "public void setEventStore(EventStore eventStore) {\n this.eventStore = eventStore;\n }", "@Override\r\n protected void setUp() throws Exception {\r\n super.setUp();\r\n\r\n userClientPK = new UserClientPK();\r\n }", "public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }", "@BeforeEach\n\tpublic void setup() {\n\t\tuser= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\tuser_diverso= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username_diverso\", \n\t\t\t\t\"password\");\n\t\tuser_uguale= new Utente(\"Nome\",\n\t\t\t\t\"Cognome\",\n\t\t\t\t\"mail\",\n\t\t\t\tLocalDateTime.now(),\n\t\t\t\t\"CodiceFiscale\",\n\t\t\t\t\"Username\", \n\t\t\t\t\"password\");\n\t\t\n\t\tfruitore =new Fruitore(user);\n\t\tfruitore_uguale =new Fruitore(user_uguale);\n\t\tfruitore_diverso =new Fruitore(user_diverso);\n\t}", "protected void setStore(String store) {\n this.store = store;\n }", "@Before\r\n\tpublic void setUp(){\n\t\tSystem.out.println(this.context);\r\n\t\tSystem.out.println(this);\r\n\t\t//this.userdao = context.getBean(\"userDao\",UserDao.class);\r\n\t\t\r\n\r\n\t\tthis.user1 = new User(\"kimhk1\",\"김형국1\",\"kimhoung1\"); \r\n\t\tthis.user2 = new User(\"kimhk2\",\"김형국2\",\"kimhoung2\");\t\t\r\n\t\tthis.user3 = new User(\"kimhk3\",\"김형국3\",\"kimhoung3\");\t\t\r\n\t\t\r\n\t\tDataSource dataSource = new SConnectionMaker(\"jdbc:oracle:thin:@localhost:1521:ORCL\",\"scott\",\"tiger\");\r\n\t\tuserdao.setDataSource(dataSource);\r\n\t}", "public UserDAO() {\r\n\t\tsuper();\r\n\t\tthis.userStore.put(\"user\", new User(\"user\", \"user\"));\r\n\t}", "@Before\n\tpublic void init() {\n\t\tuserDao=new UsersDAO();\n\t\tentityManager=mock(EntityManager.class);\n\t\tuserDao.setEntityManager(entityManager);\n\t\t\n\t}", "public void init() throws ServletException {\n\t\tList<User> list = new ArrayList<>();\n\t\t\n\t\t//store the list in ServletContext domain\n\t\tthis.getServletContext().setAttribute(\"list\", list);\n\t}", "@Override\r\n public void init() throws ServletException {\n DAOFactory daoFactory = (DAOFactory) super.getServletContext().getAttribute(\"daoFactory\");\r\n if (daoFactory == null) {\r\n throw new ServletException(\"Impossible to get dao factory for user storage system\");\r\n }\r\n //assegna a userdao la connessione(costruttore) e salva la connessione in una variabile tipo Connection\r\n listdao = new JDBCShopListDAO(daoFactory.getConnection());\r\n }", "public void store() {\n session=(HttpSession)getPageContext().getSession();\n session.setAttribute(\"remoteUser\", getRemoteUser());\n session.setAttribute(\"authCode\", getAuthCode());\n }", "public void setUserService(UserService userService) {\n this.userService = userService;\n }", "@Before\n public void setUp() throws Exception {\n instance = new User();\n }", "public void initUser(ActiveSession user) {\n this.user = user;\n }", "protected void setUpServletObjects() throws Exception\n {\n servletContext = new MockServletContext();\n config = new MockServletConfig(servletContext);\n session = new MockHttpSession();\n session.setServletContext(servletContext);\n request = new MockHttpServletRequest(session);\n request.setServletContext(servletContext);\n response = new MockHttpServletResponse();\n }", "@BeforeAll\n public static void classSetup() {\n\n loginPage = new LoginPage();\n }", "public void loadUserTypeConfiguration()\r\n\t{\r\n\t\tString userType = \"\";\r\n\t\tif (baseStoreConfigurationService!= null) {\r\n\t\t\tuserType = (String) baseStoreConfigurationService.getProperty(\"sapproductrecommendation_usertype\");\r\n\t\t}\r\n\t\tthis.setUserType(userType);\t\t\r\n\t}", "@Before\n public void setup() throws Exception {\n this.mvc = webAppContextSetup(webApplicationContext).build();\n userRepository.deleteAll();\n //roleRepository.deleteAll();\n User joe = new User(\"joe\", \"1234\", \"admin\");\n User andy = new User(\"andy\", \"1234\", \"admin\");\n //roleRepository.save(new Role(\"ROLE_ADMIN\"));\n //roleRepository.save(new Role(\"ROLE_USER\"));\n userRepository.save(joe);\n userRepository.save(andy);\n Mockito.when(userRepository.findByUsername(joe.getUsername())).thenReturn(joe);\n Mockito.when(userRepository.findByUsername(andy.getUsername())).thenReturn(andy);\n }", "@Override\n public void init() {\n ServletContext context = getServletContext();\n KeyLoader loader = new KeyLoader();\n\n context.setAttribute(\"translateKey\", loader.getKey(TRANSLATE));\n context.setAttribute(\"authKey\", loader.getKeyBytes(AUTH));\n context.setAttribute(\"servletRoles\", getServletRoles());\n }", "public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n pass = context.getInitParameter(\"pass\");\r\n }", "@Override\n public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "public setup() {\n dbConnection = \"jdbc:\"+DEFAULT_DB_TYPE+\"://\"+DEFAULT_DB_HOST+\":\"+DEFAULT_DB_PORT+\"/\"+DEFAULT_DB_PATH;\n dbType = DEFAULT_DB_TYPE;\n dbUser = DEFAULT_DB_USER;\n dbPass = DEFAULT_DB_PASSWORD;\n beginSetup();\n }", "@BeforeClass\n public static void setUp() throws Exception {\n FileUtils.deleteDirectory(new File(\"target/data/\"));\n\n ApplicationMode.setCIMode();\n final ConstrettoConfiguration configuration = new ConstrettoBuilder()\n .createPropertiesStore()\n .addResource(Resource.create(\"classpath:useridentitybackend.properties\"))\n .addResource(Resource.create(\"classpath:useridentitybackend-test.properties\"))\n .done()\n .getConfiguration();\n\n\n String roleDBDirectory = configuration.evaluateToString(\"roledb.directory\");\n String ldapPath = configuration.evaluateToString(\"ldap.embedded.directory\");\n // String ldapPath = \"/tmp\";\n String luceneUsersDir = configuration.evaluateToString(\"lucene.usersdirectory\");\n FileUtils.deleteDirectories(ldapPath, roleDBDirectory, luceneUsersDir);\n\n main = new Main(configuration.evaluateToInt(\"service.port\"));\n main.startEmbeddedDS(configuration.asMap());\n\n BasicDataSource dataSource = initBasicDataSource(configuration);\n new DatabaseMigrationHelper(dataSource).upgradeDatabase();\n\n\n String primaryLdapUrl = configuration.evaluateToString(\"ldap.primary.url\");\n String primaryAdmPrincipal = configuration.evaluateToString(\"ldap.primary.admin.principal\");\n String primaryAdmCredentials = configuration.evaluateToString(\"ldap.primary.admin.credentials\");\n String primaryUidAttribute = configuration.evaluateToString(\"ldap.primary.uid.attribute\");\n String primaryUsernameAttribute = configuration.evaluateToString(\"ldap.primary.username.attribute\");\n String readonly = configuration.evaluateToString(\"ldap.primary.readonly\");\n\n ldapUserIdentityDao = new LdapUserIdentityDao(primaryLdapUrl, primaryAdmPrincipal, primaryAdmCredentials, primaryUidAttribute, primaryUsernameAttribute, readonly);\n\n\n ApplicationDao configDataRepository = new ApplicationDao(dataSource);\n UserApplicationRoleEntryDao userApplicationRoleEntryDao = new UserApplicationRoleEntryDao(dataSource);\n\n index = new NIOFSDirectory(new File(luceneUsersDir));\n luceneIndexer = new LuceneUserIndexer(index);\n AuditLogDao auditLogDao = new AuditLogDao(dataSource);\n userAdminHelper = new UserAdminHelper(ldapUserIdentityDao, luceneIndexer, auditLogDao, userApplicationRoleEntryDao, configuration);\n passwordGenerator = new PasswordGenerator();\n\n /*\n int LDAP_PORT = 19389;\n String ldapUrl = \"ldap://localhost:\" + LDAP_PORT + \"/dc=people,dc=whydah,dc=no\";\n String readOnly = AppConfig.appConfig.getProperty(\"ldap.primary.readonly\");\n ldapUserIdentityDao = new LdapUserIdentityDao(ldapUrl, \"uid=admin,ou=system\", \"secret\", \"uid\", \"initials\", readOnly);\n\n\n BasicDataSource dataSource = new BasicDataSource();\n dataSource.setDriverClassName(\"org.hsqldb.jdbc.JDBCDriver\");\n dataSource.setUsername(\"sa\");\n dataSource.setPassword(\"\");\n dataSource.setUrl(\"jdbc:hsqldb:file:\" + \"target/\" + UIBUserIdentityServiceTest.class.getSimpleName() + \"/hsqldb\");\n\n new DatabaseMigrationHelper(dataSource).upgradeDatabase();\n\n\n String workDirPath = \"target/\" + UIBUserIdentityServiceTest.class.getSimpleName();\n File workDir = new File(workDirPath);\n FileUtils.deleteDirectory(workDir);\n if (!workDir.mkdirs()) {\n fail(\"Error creating working directory \" + workDirPath);\n\n }\n\n luceneIndexer = new LuceneUserIndexer(index);\n\n // Create the server\n ads = new EmbeddedADS(workDir);\n ads.startServer(LDAP_PORT);\n Thread.sleep(1000);\n */\n\n\n }", "public void setDatabaseUser(String sDatabaseUser) throws IOException;", "@BeforeTest()\n\tpublic void initializemanager() {\n\t\tsetDriver(\"chrome\");\n\t\tdriver.get(getApplicationUrl(\"salesforce\"));\n\t\tdriver.manage().window().maximize();\n\t\tWebpageFactory.initializePageObjects(driver);\n\t\tDBUtil.createConnection();\n\t}", "@BeforeMethod\n\tpublic void setUp() {\n\t\tinitialization();\n\t\tloginPage = new LoginPage();\n\n\t\thomePage = loginPage.login(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\n\n\t\tSystem.out.println(\"Logged in successfully\");\n\n\t}", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "public ApplicationUserBoImpl()\n {\n \t//Initialise the related Object stores\n \n }", "public UserManagementImpl() {\r\n this.login = new LoginImpl();\r\n this.signUp = new SignUpImpl();\r\n }", "private final void initializeAdminUser() throws Exception {\r\n String adminEmail = server.getServerProperties().get(ADMIN_EMAIL_KEY);\r\n String adminPassword = server.getServerProperties().get(ADMIN_PASSWORD_KEY);\r\n // First, clear any existing Admin role property.\r\n for (User user : this.email2user.values()) {\r\n user.setRole(\"basic\");\r\n }\r\n // Now define the admin user with the admin property.\r\n if (this.email2user.containsKey(adminEmail)) {\r\n User user = this.email2user.get(adminEmail);\r\n user.setPassword(adminPassword);\r\n user.setRole(\"admin\");\r\n }\r\n else {\r\n User admin = new User();\r\n admin.setEmail(adminEmail);\r\n admin.setPassword(adminPassword);\r\n admin.setRole(\"admin\");\r\n this.updateCache(admin);\r\n }\r\n }", "public void init() {\n ServletContext context = getServletContext();\n host = context.getInitParameter(\"host\");\n port = context.getInitParameter(\"port\");\n user = context.getInitParameter(\"user\");\n pass = context.getInitParameter(\"pass\");\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tuserRepository = Mockito.mock(UserRepository.class);\n\t\tuserService = new UserService(userRepository);\n\t}", "UserSettings store(HawkularUser user, String key, String value);", "@BeforeClass\n public static void beforeAll() {\n // The logger is shared by everything so this is the right place for it.\n TestSupportLogger.initLogger();\n\n /**\n * The context represents the application environment - should be fine to set up once here.\n * It includes creation and adding (as attributes) other one off objects such as:\n * - SessionFactory\n * - Configuration\n * - GalleryManager\n */\n context = new MockServletContext(TestSupportConstants.contextBaseDirPrefix + TestSupportConstants.contextBaseDir, null);\n String realPath = context.getRealPath(\"/\");\n assertEquals(TestSupportConstants.contextBaseDir, realPath);\n\n factory = TestSupportSessionFactory.getSessionFactory();\n\n context.setAttribute(\"sessionFactory\", factory);\n assertSame(factory, context.getAttribute(\"sessionFactory\"));\n\n configurationManager = new Configuration(factory);\n // Test one configuration value to check this has worked.\n assertTrue(((BlogEnabled) (configurationManager.getConfigurationItem(\"blogEnabled\"))).get());\n\n context.setAttribute(\"configuration\", configurationManager);\n assertSame(configurationManager, context.getAttribute(\"configuration\"));\n\n galleryManager = gallerySetup();\n context.setAttribute(\"Galleries\",galleryManager);\n assertSame(galleryManager, context.getAttribute(\"Galleries\"));\n }", "public void setTemplateStore(TemplateStore store) {\n \t\tfTemplateStore= store;\n \t}", "@BeforeMethod\n\tpublic void setup()\n\t{\n\t\tinitialization();\n\t\tlogin_page=new Loginpage();\n\t\thome_page=login_page.verifylogin(prop.getProperty(\"username\"), prop.getProperty(\"password\"));\t\n\t}", "@Autowired\r\n\tpublic void setDataStore(TrPortfolioContestDAO dataStore) {\r\n\t\tthis.dataStore = dataStore;\r\n\t}", "@Before\r\n public void setUp() {\r\n clientAuthenticated = new MockMainServerForClient();\r\n }", "@BeforeEach\n void setUp() {\n //Database database = Database.getInstance();\n //database.createDatabase(\"adhound.sql\");\n userData = new UserData();\n\n newUser = new User(\"[email protected]\", \"testPassword\", \"testFirstName\", \"testLastName\", \"123-456-7890\", \"987-654-3210\", \"[email protected]\", \"123 Test Street\", \"testCity\", 33, \"12345\");\n\n ValidatorFactory factory = Validation.buildDefaultValidatorFactory();\n validator = factory.getValidator();\n }", "@BeforeClass\n public static void setUpBeforeClass() {\n TestNetworkClient.reset();\n context = ApplicationProvider.getApplicationContext();\n dataStorage = TestDataStorage.getInstance(context);\n ApplicationSessionManager.getInstance().startSession();\n }", "@BeforeClass\n\tpublic void setUp() {\n\t\ttest = report.createTest(\"AdminSettingsInvalidTimeZoneTest\");\n\t\t\n\t\tapp = Application.get(ApplicationSourcesRepo.getChromeHerokuApplication());\n\t\ttest.log(Status.INFO, \"Opened browser\");\n\t\t\n\t\tloginpage = app.load();\n\t\ttest.log(Status.INFO, \"Opened 'Login page'\");\n\t\t\n\t\tadminpage = loginpage.successfullLoginAdmin(UserContainer.getAdmin());\n\t\ttest.log(Status.INFO, \"Signed in as Administrator\");\n\t\t\n\t\tsettings = adminpage.clickSettings();\n\t\ttest.log(Status.INFO, \"Opened 'Settings page'\");\n\t}", "private void setCredentials() {\n Properties credentials = new Properties();\n\n try {\n credentials.load(new FileInputStream(\"res/credentials.properties\"));\n } catch (IOException e) {\n __logger.error(\"Couldn't find credentials.properties, not setting credentials\", e);\n return;\n }\n\n this.username = credentials.getProperty(\"username\");\n this.password = credentials.getProperty(\"password\");\n this.smtpHost = credentials.getProperty(\"smtphost\");\n this.imapHost = credentials.getProperty(\"imaphost\");\n\n if (password == null || password.equals(\"\")) {\n password = this.getPasswordFromUser();\n }\n\n __logger.info(\"Set credentials\");\n }", "private void initServices() {\n PortletServiceFactory factory = SportletServiceFactory.getInstance();\n // Get instance of password manager service\n try {\n this.userManager =\n (UserManagerService)\n factory.createPortletService(UserManagerService.class, null, true);\n } catch (Exception e) {\n _log.error(\"Unable to get instance of password manager service!\", e);\n }\n }", "public void setupUser( String uid, String password ) throws NamingException, GeneralSecurityException {\r\n\t\ttolvenUser = login(uid, password);\r\n\t}", "public void setTokenStore(TokenStore tokenStore) {\n this.tokenStore = tokenStore;\n }", "protected void setUp() throws Exception {\r\n // used by KeyConstants and UserProfile\r\n TestsHelper.loadConfig(TestsHelper.CONFIG_FILE);\r\n\r\n actionContext = new ActionContext(request, response);\r\n handler =\r\n new BidUpdateHandler(TestsHelper.createHandlerElement(\r\n \"BidUpdateHandler\", new String[] {\"auction_id_param_key\",\r\n \"max_amount_param_key\",\r\n \"bid_id_param_key\"}, new String[] {\"auction\", \"amount\", \"bid\"}));\r\n\r\n auctionManager = new MockAuctionManager();\r\n auctionPersistence = new MockAuctionPersistence();\r\n\r\n // initialize profile manager\r\n profileManager = new MockUserProfileManager();\r\n\r\n // initialize login handler\r\n Map attrs = new HashMap();\r\n attrs.put(\"profile_manager\", profileManager);\r\n attrs.put(\"request_param_keys\", new String[] {\"firstName\", \"lastName\", \"e-mail\"});\r\n attrs.put(\"search_profile_keys\", new String[] {\"first_name\", \"last_name\"});\r\n attrs.put(\"credential_profile_keys\", new String[] {\"email_address\"});\r\n attrs.put(\"no_such_profile_result_name\", \"no_such_profile_result_name\");\r\n attrs.put(\"incorrect_credential_result_name\", \"incorrect_credential_result_name\");\r\n loginHandler = new LoginHandler(attrs);\r\n\r\n // remove attribute from the servlet context if it exists\r\n request.getSession().getServletContext().removeAttribute(KeyConstants.AUCTION_MANAGER_KEY);\r\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tvalidUser = new User();\n\t\tvalidUser.firstName = \"Foo\";\n\t\tvalidUser.lastName = \"Bar\";\n\t\tvalidUser.address = \"123 4th Street\";\n\t\tvalidUser.city = \"Calgary\";\n\t\tvalidUser.province = \"Alberta\";\n\t\tvalidUser.country = \"Canada\";\n\t\tvalidUser.email = \"[email protected]\";\n\t\tvalidUser.postalCode = \"H3Z2K6\";\n\t\tvalidUser.userName = \"foo\";\n\t\tvalidUser.setPassword(\"foobar\");\n\t}", "public void init() {\n\t\tServletContext context = getServletContext();\n\t\thost = context.getInitParameter(\"host\");\n\t\tport = context.getInitParameter(\"port\");\n\t\tuser = context.getInitParameter(\"user\");\n\t\tpass = context.getInitParameter(\"pass\");\n\t}", "@Override\n public void init() throws ServletException {\n this.manager = (DBManager)super.getServletContext().getAttribute(\"dbmanager\");\n }", "@BeforeClass\r\n\tpublic void setUp() {\n\t\tdriver = BrowserFactory.startApplication(DataProviderFactory.getConfig().getStagingURL(), DataProviderFactory.getConfig().getBrowser());\r\n\t}", "@Before\n public void setUp() {\n this.context = new AnnotationConfigApplicationContext(\"com.fxyh.spring.config\");\n// this.context = new ClassPathXmlApplicationContext(\"classpath*:applicationContext-bean.xml\");\n this.user = this.context.getBean(User.class);\n this.user2 = this.context.getBean(User.class);\n this.department = this.context.getBean(Department.class);\n this.userService = (UserService) this.context.getBean(\"userService\");\n }", "@Before\n public void setUp() throws Exception {\n userDao = DatabaseAccess.createOracleDatabase().createUserDaoOperator();\n }", "public void setAuthentication(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.putString(\"userid\", mUserId);\n preferencesEditor.putString(\"areaid\", mAreaId);\n preferencesEditor.commit();\n }", "public void init() throws ServletException {\n courseDAO = new CourseDAO();\n teacherDAO = new TeacherDAO();\n }", "public void setDataStoreType(DataStoreType dataStoreType) {\n this.dataStoreType = dataStoreType;\n }", "public void setUserLocalService(UserLocalService userLocalService) {\n this.userLocalService = userLocalService;\n }", "@Before\n public void init() {\n Ebean.deleteAll(userQuery.findList());\n Ebean.deleteAll(userOptionalQuery.findList());\n \n userOptional = new OtoUserOptional();\n Ebean.save(userOptional);\n testUser = new OtoUser();\n testUser.setOptional(userOptional);\n Ebean.save(testUser);\n }", "@BeforeClass public static void beforeClass() {\n addTestData(testdsg1);\n addTestData(testdsg2);\n addTestData(testdsg3);\n\n SecurityRegistry reg = new SecurityRegistry();\n reg.put(\"userNone\", SecurityContext.NONE);\n reg.put(\"userDft\", SecurityContextView.DFT_GRAPH);\n reg.put(\"user0\", new SecurityContextView(Quad.defaultGraphIRI.getURI()));\n reg.put(\"user1\", new SecurityContextView(\"http://test/g1\", Quad.defaultGraphIRI.getURI()));\n reg.put(\"user2\", new SecurityContextView(\"http://test/g1\", \"http://test/g2\", \"http://test/g3\"));\n reg.put(\"user3\", new SecurityContextView(Quad.defaultGraphIRI.getURI(), \"http://test/g2\", \"http://test/g3\"));\n\n testdsg1 = DataAccessCtl.controlledDataset(testdsg1, reg);\n testdsg2 = DataAccessCtl.controlledDataset(testdsg2, reg);\n testdsg3 = DataAccessCtl.controlledDataset(testdsg3, reg);\n\n UserStore userStore = userStore();\n ConstraintSecurityHandler sh = JettySecurityLib.makeSecurityHandler(\"*\", userStore);\n JettySecurityLib.addPathConstraint(sh, \"/*\");\n\n // If used, also check log4j2.properties.\n //FusekiLogging.setLogging();\n fusekiServer = FusekiServer.create()\n .securityHandler(sh)\n .port(0)\n //.verbose(true)\n .add(\"data1\", testdsg1)\n .add(\"data2\", testdsg2)\n .add(\"data3\", testdsg3)\n .build();\n fusekiServer.start();\n }", "@BeforeEach\n public void setUp() throws Exception\n {\n // Set up a new thread context class loader\n setUpClassloader();\n\n // Set up Servlet API Objects\n setUpServletObjects();\n\n // Set up JSF API Objects\n FactoryFinder.releaseFactories();\n\n setFactories();\n\n setUpJSFObjects();\n }", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tfactory = Persistence.createEntityManagerFactory(\"Test\");\n\t\tServletContext sc = arg0.getServletContext();\n\t\tsc.setAttribute(EntityManagerFactory.class.getName(), factory);\n\t}" ]
[ "0.6335374", "0.62216693", "0.6197524", "0.61266166", "0.6121058", "0.60872716", "0.59732515", "0.5960523", "0.5918208", "0.59145474", "0.587522", "0.58031493", "0.5784019", "0.57652193", "0.5745593", "0.57400656", "0.5716435", "0.5712341", "0.5685241", "0.56795263", "0.56764466", "0.56540245", "0.5647319", "0.56291753", "0.56058276", "0.5603138", "0.55869967", "0.5586128", "0.55811393", "0.5579488", "0.5576635", "0.55704874", "0.5565243", "0.55591947", "0.55351996", "0.5513353", "0.55060124", "0.5497678", "0.5497585", "0.5493129", "0.54563", "0.5432962", "0.5430707", "0.5424341", "0.54184157", "0.5413083", "0.54013944", "0.5401226", "0.5395132", "0.539231", "0.53508663", "0.5336408", "0.5330842", "0.5320073", "0.5319905", "0.5306129", "0.5303542", "0.5302578", "0.529933", "0.5292278", "0.5283442", "0.52804774", "0.5269173", "0.52642334", "0.52579165", "0.52572656", "0.52557915", "0.5247615", "0.5247441", "0.5240152", "0.5240141", "0.5240099", "0.5238574", "0.52332747", "0.52241963", "0.5221005", "0.52193266", "0.5211539", "0.51980567", "0.519268", "0.5185474", "0.51839304", "0.51823145", "0.5178576", "0.5172863", "0.5170234", "0.51698685", "0.5167923", "0.51647455", "0.5164059", "0.516198", "0.5161612", "0.5160568", "0.5154187", "0.51541185", "0.51520383", "0.5145281", "0.51377", "0.5135695" ]
0.73069125
1
Sets the NotificationTokenStore used by this servlet. This function provides a common setup method for use by the test framework or the servlet's init() function.
void setNotificationTokenStore(NotificationTokenStore notificationTokenStore) { this.notificationTokenStore = notificationTokenStore; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTokenStore(TokenStore tokenStore) {\n this.tokenStore = tokenStore;\n }", "@Before\r\n\tpublic void init() {\r\n\t\tMockitoAnnotations.initMocks(this);\r\n\t\tmockMvc = MockMvcBuilders.standaloneSetup(tokenController).build();\r\n\r\n\t\t// mockMvc = MockMvcBuilders.webAppContextSetup(context).build();\r\n\t}", "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "public DocumentServiceImpl() {\n this.store = new AuthenticationTokenStore();\n }", "private Globals(){\n store = null;\n service = null;\n filters = new EmailFilters();\n\n //notification types:\n keywordsNotification = 1;\n flagNotification = 0;\n }", "public NotificationStore(){}", "private void setupSharedPreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n\n //set the driver name and track variables using methods below, which are also called from onSharedPreferencesChanged\n setDriver(sharedPreferences);\n setTrack(sharedPreferences);\n }", "private static void setupServerContext(){\n\n serverContext.set(new ServerContext());\n serverContext.get().bgThreadIds = new int[GlobalContext.getNumTotalBgThreads()];\n serverContext.get().numShutdownBgs = 0;\n serverContext.get().serverObj = new Server();\n\n }", "private static void initialize()\n {\n\tif (cookieHandler == null)\n\t{\n\t BrowserService service = ServiceProvider.getService();\n\t cookieHandler = service.getCookieHandler();\n\t}\n }", "protected void setUpServletObjects() throws Exception\n {\n servletContext = new MockServletContext();\n config = new MockServletConfig(servletContext);\n session = new MockHttpSession();\n session.setServletContext(servletContext);\n request = new MockHttpServletRequest(session);\n request.setServletContext(servletContext);\n response = new MockHttpServletResponse();\n }", "@BeforeEach\n\tpublic void setup() throws Exception {\n\t\tGDACoreActivator activator = new GDACoreActivator(); // Make an instance to call method that sets static field!\n\t\tactivator.start(mockContext); // Inject the mock\n\n\t\tosgiServiceBeanHandler = new OsgiServiceBeanHandler();\n\t}", "public void setNotificationService(NotificationProviderService notificationService) {\n\t\tthis.notificationService = notificationService;\n\t}", "public void setEventStore(EventStore eventStore) {\n this.eventStore = eventStore;\n }", "private synchronized void initAtomStore() {\n if (atomStore != null) {\n return;\n }\n\n atomStore = new PersistedAtomStore(this);\n }", "protected void initNotificationServiceStub() {\n notificationServiceStub =\n NotificationServiceGrpc.newBlockingStub(\n ManagedChannelBuilder.forTarget(\n StringUtils.isEmpty(currentUri) ? SERVER_URI : currentUri)\n .usePlaintext()\n .build());\n if (enableHa) {\n notificationServiceStub =\n wrapBlockingStub(\n notificationServiceStub,\n StringUtils.isEmpty(currentUri) ? SERVER_URI : currentUri,\n livingMembers,\n enableHa,\n retryIntervalMs,\n retryTimeoutMs);\n }\n }", "@Override\n public void init() {\n ServletContext context = getServletContext();\n KeyLoader loader = new KeyLoader();\n\n context.setAttribute(\"translateKey\", loader.getKey(TRANSLATE));\n context.setAttribute(\"authKey\", loader.getKeyBytes(AUTH));\n context.setAttribute(\"servletRoles\", getServletRoles());\n }", "@Before\r\n public void setUp() {\r\n clientAuthenticated = new MockMainServerForClient();\r\n }", "void setMessageStore(MessageStore messageStore) {\n this.messageStore = messageStore;\n }", "void setMessageStore(MessageStore messageStore) {\n this.messageStore = messageStore;\n }", "@BeforeEach\n public void setup() {\n token = new TokenInfo();\n token.setNetid(\"lbecheanu\");\n token.setRole(\"student\");\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "void setUserStore(UserStore userStore) {\n this.userStore = userStore;\n }", "@BeforeClass\n public static void beforeAll() {\n // The logger is shared by everything so this is the right place for it.\n TestSupportLogger.initLogger();\n\n /**\n * The context represents the application environment - should be fine to set up once here.\n * It includes creation and adding (as attributes) other one off objects such as:\n * - SessionFactory\n * - Configuration\n * - GalleryManager\n */\n context = new MockServletContext(TestSupportConstants.contextBaseDirPrefix + TestSupportConstants.contextBaseDir, null);\n String realPath = context.getRealPath(\"/\");\n assertEquals(TestSupportConstants.contextBaseDir, realPath);\n\n factory = TestSupportSessionFactory.getSessionFactory();\n\n context.setAttribute(\"sessionFactory\", factory);\n assertSame(factory, context.getAttribute(\"sessionFactory\"));\n\n configurationManager = new Configuration(factory);\n // Test one configuration value to check this has worked.\n assertTrue(((BlogEnabled) (configurationManager.getConfigurationItem(\"blogEnabled\"))).get());\n\n context.setAttribute(\"configuration\", configurationManager);\n assertSame(configurationManager, context.getAttribute(\"configuration\"));\n\n galleryManager = gallerySetup();\n context.setAttribute(\"Galleries\",galleryManager);\n assertSame(galleryManager, context.getAttribute(\"Galleries\"));\n }", "@BeforeEach\n void init() {\n Map<String,String> payload = new HashMap<>();\n payload.put(\"username\",\"admin\");\n token = JWTUtil.getToken(payload);\n System.out.println(\"init():TOKEN HAS BEEN GENERATED:\"+token);\n list.add(new Employee(\"IT001\",\"Xiaoke\",\"Liu\",\"8732880212\",\"255 Wilbrod Street\",\"Developer\"));\n list.add(new Employee(\"IT002\",\"Scott\",\"Liu\",\"8738291345\",\"234 Wilbrod Street\",\"Tester\"));\n list.add(new Employee(\"IT003\",\"Sam\",\"James\",\"8744563821\",\"324 Wilbrod Street\",\"Developer\"));\n list.add(new Employee(\"FN001\",\"Linda\",\"Green\",\"8751234689\",\"256 Somerset Street\",\"Accountant\"));\n list.add(new Employee(\"FN002\",\"Roy\",\"White\",\"83718328327\",\"483 Bank Street\",\"Manager\"));\n }", "@Before\n public void init() throws Exception {\n TestObjectGraphSingleton.init();\n TestObjectGraphSingleton.getInstance().inject(this);\n\n mockWebServer.start();\n }", "@Before\n public void setUp() {\n setThreadAssertsDisabledForTesting(true);\n MockitoAnnotations.initMocks(this);\n mDispatcherBridge =\n new PasswordSettingsUpdaterDispatcherBridge(mReceiverBridgeMock, mAccessorMock);\n }", "public void setupContext(ServletContext context) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>();\r\n\t\tmap.put(\"CURRENT_THEME\", Constants.CURRENT_THEME);\r\n\t\tmap.put(\"LOGGED_USER\", Constants.LOGGED_USER);\r\n\t\tmap.put(\"YES\", Constants.YES);\r\n\t\tmap.put(\"NO\", Constants.NO);\r\n\t\tmap.put(\"ACTION\", Constants.ACTION);\r\n\t\tmap.put(\"ACTION_ADD\", Constants.ACTION_ADD);\r\n\t\tmap.put(\"SECURE_FIELD\", Constants.SECURE_FIELD);\r\n\t\tmap.put(\"DEBUG_MODE\", Constants.isDebugMode());\r\n\t\tmap.put(\"SHOW_FLAT_COMMISSIONS\", \"false\");\r\n\r\n\t\tcontext.setAttribute(\"Constants\", map);\r\n\r\n\t}", "private void initSharedPreference(){\n mSharedPreferences = Configuration.getContext().getSharedPreferences(\"SessionManager\", Context.MODE_PRIVATE) ;\n }", "public void setUp() {\n _notifier = new EventNotifier();\n _doc = new DefinitionsDocument(_notifier);\n }", "protected void setUpExternalContext() throws Exception\n {\n externalContext = new MockExternalContext(servletContext, request, response);\n }", "protected void initToolbox(ServletContext servletContext) {\n if (StringUtils.isBlank(toolBoxLocation)) {\n LOG.debug(\"Skipping ToolManager initialisation, [{}] was not defined\", StrutsConstants.STRUTS_VELOCITY_TOOLBOXLOCATION);\n return;\n }\n LOG.debug(\"Configuring Velocity ToolManager with {}\", toolBoxLocation);\n toolboxManager = new ToolManager();\n toolboxManager.configure(toolBoxLocation);\n }", "@BeforeTest()\n\tpublic void initializemanager() {\n\t\tsetDriver(\"chrome\");\n\t\tdriver.get(getApplicationUrl(\"salesforce\"));\n\t\tdriver.manage().window().maximize();\n\t\tWebpageFactory.initializePageObjects(driver);\n\t\tDBUtil.createConnection();\n\t}", "AbstractJwtSessionModule() {\n jwtBuilderFactory = new JwtBuilderFactory();\n }", "private void setup() {\n if (config.getProperty(\"browser\").equals(\"chrome\")) {\n System.setProperty(\"webdriver.chrome.driver\", chromeDriverPath);\n driver = new ChromeDriver();\n } else if (config.getProperty(\"browser\").equals(\"firefox\")) {\n System.setProperty(\"webdriver.gecko.driver\", geckoDriverPath);\n driver = new FirefoxDriver();\n }\n\n event_driver = new EventFiringWebDriver(driver);\n // Now create object of EventListerHandler to register it with EventFiringWebDriver\n eventListener = new WebEventListener();\n event_driver.register(eventListener);\n driver = event_driver;\n\n wait = new WebDriverWait(driver, 30);\n }", "public void setToken(java.lang.String param){\n localTokenTracker = true;\n \n this.localToken=param;\n \n\n }", "@Before\n public void setUp() throws Exception {\n MockServletContext mockServletContext = new MockServletContext();\n new SpannerClient().contextInitialized(new ServletContextEvent(mockServletContext));\n SpannerTestTasks.setup();\n\n eventVolunteeringFormHandlerServlet = new VolunteeringFormHandlerServlet();\n\n request = Mockito.mock(HttpServletRequest.class);\n response = Mockito.mock(HttpServletResponse.class);\n }", "private void setAttributes() {\n mAuth = ServerData.getInstance().getMAuth();\n user = ServerData.getInstance().getUser();\n sharedpreferences = getSharedPreferences(GOOGLE_CALENDAR_SHARED_PREFERENCES, Context.MODE_PRIVATE);\n walkingSharedPreferences = getSharedPreferences(ACTUAL_WALK, Context.MODE_PRIVATE);\n\n notificationId = 0;\n requestCode = 0;\n fragmentManager = getSupportFragmentManager();\n\n context = this;\n }", "void init(Properties realTimeNotifierProperties, Properties persistentNotifierProperties);", "@Autowired\r\n\tpublic void setDataStore(TrPortfolioContestDAO dataStore) {\r\n\t\tthis.dataStore = dataStore;\r\n\t}", "public void setServerContext(ServerContext serverContext)\r\n {\r\n this.serverContext = serverContext;\r\n }", "public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "public void setOauth_token(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localOauth_tokenTracker = true;\r\n } else {\r\n localOauth_tokenTracker = false;\r\n \r\n }\r\n \r\n this.localOauth_token=param;\r\n \r\n\r\n }", "private void setMessagingToken() {\n FirebaseInstanceId.getInstance().getInstanceId().addOnCompleteListener(task -> {\n if (task.isSuccessful() && user != null) {\n sendMessageToken(Objects.requireNonNull(task.getResult()).getToken());\n }\n });\n }", "public Future<Void> initialize(String token)\r\n\t{\r\n\t\tthis.api.getApiClient().addDefaultHeader(\"Authorization\", String.format(\"Bearer %s\", token));\r\n\t\tfinal SettableFuture<Void> future = SettableFuture.create();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfinal ApiClient client = new ApiClient();\r\n\t\t\tclient.getHttpClient().setProxy(proxy);\r\n\t\t\tList<Interceptor> interceptors = client.getHttpClient().interceptors();\r\n\t\t\tinterceptors.add(new TraceInterceptor());\r\n\r\n\t\t\tfinal HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor(new HttpLoggingInterceptor.Logger()\r\n\t\t\t{\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void log(String message)\r\n\t\t\t\t{\r\n\t\t\t\t\tlogger.debug(message);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tloggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\r\n\t\t\tinterceptors.add(loggingInterceptor);\r\n\r\n\t\t\tCookieStoreImpl cookieStore = new CookieStoreImpl()\r\n\t\t\t{\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void add(URI uri, HttpCookie cookie)\r\n\t\t\t\t{\r\n\t\t\t\t\tif (!future.isDone() && SESSION_COOKIE.equalsIgnoreCase(cookie.getName()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString value = cookie.getValue();\r\n\t\t\t\t\t\tlogger.debug(\"Session created: {}; {}\", value, cookie.getPath());\r\n\r\n\t\t\t\t\t\tfuture.set(null);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tsuper.add(uri, cookie); //To change body of generated methods, choose Tools | Templates.\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\tclient.getHttpClient().setCookieHandler(new CookieManager(cookieStore, CookiePolicy.ACCEPT_ALL));\r\n\t\t\tclient.setBasePath(serviceUrl);\r\n\t\t\tclient.addDefaultHeader(\"x-api-key\", apiKey);\r\n\t\t\tclient.addDefaultHeader(\"Authorization\", String.format(\"Bearer %s\", token));\r\n\r\n\t\t\tapi.setApiClient(client);\r\n\r\n\t\t\tnotifications.setCookieStore(cookieStore);\r\n\t\t\tnotifications.subscribe(\"/statistics/v3/service\", new Notifications.NotificationListener()\r\n\t\t\t{\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onNotification(String channel, Map<String, Object> data)\r\n\t\t\t\t{\r\n\t\t\t\t\tonServiceChange(data);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tnotifications.subscribe(\"/statistics/v3/updates\", new Notifications.NotificationListener()\r\n\t\t\t{\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onNotification(String channel, Map<String, Object> data)\r\n\t\t\t\t{\r\n\t\t\t\t\tonValues(data);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tnotifications.initialize(serviceUrl + \"/notifications\", apiKey, token, notificationOptions);\r\n\t\t}\r\n\t\tcatch (Exception ex)\r\n\t\t{\r\n\t\t\tfuture.setException(ex);\r\n\t\t}\r\n\r\n\t\treturn future;\r\n\t}", "@Override\r\n public void setTokens(OAuthTokens tokens)\r\n {\r\n tokenStore.saveTokens(tokens);\r\n }", "public static void setRequestToken(String token, 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, token);\n\t\t\tprefEditor.commit();\n\t\t\t\n\t\t}", "private void setupSession() {\n // TODO Retreived the cached Evernote AuthenticationResult if it exists\n// if (hasCachedEvernoteCredentials) {\n// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);\n// session = new EvernoteSession(info, result, getTempDir());\n// }\n ConnectionUtils.connectFirstTime();\n updateUiForLoginState();\n }", "@Before\n public void setup(){\n\tMockito.when(mockOroSecret.getOROSecretKey()).thenReturn(\"abc@123\");\n\tutility = TokenUtility.getInstance(mockOroSecret);\n }", "@Before\n public void setup() throws Exception {\n mTestUtil.overrideAllowlists(true);\n // We need to turn the Consent Manager into debug mode\n mTestUtil.overrideConsentManagerDebugMode(true);\n mTestUtil.overrideMeasurementKillSwitches(true);\n mTestUtil.overrideAdIdKillSwitch(true);\n mTestUtil.overrideDisableMeasurementEnrollmentCheck(\"1\");\n mMeasurementManager =\n MeasurementManagerFutures.from(ApplicationProvider.getApplicationContext());\n\n // Put in a short sleep to make sure the updated config propagates\n // before starting the tests\n Thread.sleep(100);\n }", "@Override\n public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "public void setToken(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localTokenTracker = true;\r\n } else {\r\n localTokenTracker = false;\r\n \r\n }\r\n \r\n this.localToken=param;\r\n \r\n\r\n }", "@Before\n public void setUp() throws Exception {\n this.setServer(new JaxWsServer());\n this.getServer().setServerInfo(\n new ServerInfo(MovieService.class, new MovieServiceImpl(),\n \"http://localhost:9002/Movie\", false, true));\n super.setUp();\n }", "@Before\n public void setup() {\n device = new Device(deviceID, token);\n }", "public static void initialise()\n\t{\n\t\tServerConfigurationManager theSCM = ServerConfigurationManager.getInstance();\n\t\tString timeoutMinutes = theSCM.getProperty(theSCM.MAUI_SESSION_TIMEOUT);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tlong minutes = Long.parseLong(timeoutMinutes);\n\t\t\t\n\t\t\tHTTPSession.kDefaultSessionTimeout = minutes * 60 * 1000;\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tSystem.err.println(\"[HTTPSession] Bad value for session timeout : \" + timeoutMinutes + \" Defaulting to 5 minutes.\");\n\t\t}\n\t\t\n\t\ttry\n\t\t{\n\t\t\tsessionMaximum = Integer.parseInt (theSCM.getProperty (theSCM.MAUI_SESSION_MAXIMUM));\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n\t\t\tsessionMaximum = Integer.parseInt (theSCM.MAUI_SESSION_MAXIMUM_VALUE);\n\t\t}\n\t}", "@Override\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\n\t}", "private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\r\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\r\n\t}", "@Override\r\n\tpublic void setServletContext(ServletContext servletContext) {\n\t\tthis.servletContext = servletContext;\r\n\t}", "@BeforeEach\n\tpublic void initDbManagerThreadInstance() throws Exception {\n\t\tDbManager.setThreadInstance(dbManager);\n\t}", "@Before\n public void setUp()\n {\n sut = new NotificationMessageBuilderHelper();\n }", "@Override\n\tpublic void setServletContext(ServletContext servletContext) {\n\tthis.servletContext = servletContext;\t\n\t\t\n\t}", "@Before\n public void setup() {\n endpoint = new Endpoint();\n endpoint.setKey(1);\n endpoint.setUrl(URI.create(\"http://localhost/nmr\"));\n\n // Installation, synchronized against\n installation = new Installation();\n installation.setType(InstallationType.TAPIR_INSTALLATION);\n installation.addEndpoint(endpoint);\n\n // Populated Dataset\n dataset = prepareDataset();\n\n // RegistryUpdater, using mocked web service client implementation\n updater = new RegistryUpdater(datasetService, metasyncHistoryService);\n }", "@Before\n public void setUp() {\n System.setProperty(\"java.protocol.handler.pkgs\",\n \"org.jvoicexml.jsapi2.protocols\");\n }", "protected void setup(Stub stub) throws AxisFault {\n String cookie = login();\n ServiceClient client = stub._getServiceClient();\n Options options = client.getOptions();\n options.setTimeOutInMilliSeconds(15 * 60 * 1000);\n options.setProperty(HTTPConstants.SO_TIMEOUT, 15 * 60 * 1000);\n options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 15 * 60 * 1000);\n options.setManageSession(true);\n options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);\n }", "@Before\n public void setup() {\n config.setProperty(Constants.PROPERTY_RETRY_DELAY, \"1\");\n config.setProperty(Constants.PROPERTY_RETRY_LIMIT, \"3\");\n rc = new RequestContext(null);\n rc.setTimeToLiveSeconds(2);\n }", "@Autowired\n public AuthorizationServerTokenServices tokenServices() {\n final DefaultTokenServices defaultTokenServices = new DefaultTokenServices();\n defaultTokenServices.setSupportRefreshToken(true);\n defaultTokenServices.setRefreshTokenValiditySeconds(6 * 60 * 60);\n defaultTokenServices.setAccessTokenValiditySeconds(1 * 60 * 60);\n\n defaultTokenServices.setTokenStore(tokenStore());\n return defaultTokenServices;\n }", "protected void setUp() throws Exception {\n handler = new ChangePropertyHandler(MAINFRAME);\n }", "void setConversationStore(ConversationStore conversationStore) {\n this.conversationStore = conversationStore;\n }", "void setConversationStore(ConversationStore conversationStore) {\n this.conversationStore = conversationStore;\n }", "@Override\n\tpublic void setLogServer(emLogServerSettings logServer) throws emException,\n\t\t\tTException {\n\n\t}", "@PostConstruct\n public void init() {\n rest.put(\"http://authenticationServer:8080/bot\", info);\n AuthServerChecker checker = new AuthServerChecker(name);\n checker.start();\n }", "@Override\n public void contextInitialized(ServletContextEvent sce) {\n // Setup Hibernate ORM Connector\n DB.setup();\n\n // Create Default User\n createInitialUser();\n\n // Set Defaults in Preferences table in DB\n try {\n setPreferenceDefaults();\n } catch (IOException e) {\n log.error(\"Problem Updating Preferences Table via Defaults\", e);\n }\n\n // Setup Sync Jobs\n startSyncAgents();\n }", "public void setAppServletContext(ServletContext servletContext)\n {\n if (servletContext != null)\n {\n this.servletContext = servletContext;\n }\n }", "@Before\n\tpublic void setUp() {\n\t\tDefaultCommandQueue defaultCommandQueue = new DefaultCommandQueue();\n\t\tcommandDispatcher = new DefaultCommandDispatcher(THREAD_POOL_SIZE,100,\n\t\t\t\tCMD_EXEC_DELAY, defaultCommandQueue);\n\t\tcommandDispatcher.startUp();\n\n\t\t// Init the Watcher and bypass a reference to Dispatcher\n\t\tcommandWatcher = new DefaultCommandWatcher(POLLING_DELAY,\n\t\t\t\tCACHE_CAPACITY, TEST_TOKEN, commandDispatcher,\n\t\t\t\tnew DummyCommandFactoryImpl());\n\t\tcommandWatcher.setOffset(DEFAULT_INITIAL_OFFSET);\n\t\tcommandWatcher.setLimit(DEFAULT_UPDATES_LIMIT);\n\t\tcommandWatcher.setTimeout(DEFAULT_TIMEOUT);\n\t}", "@Required\n\tpublic void setStoreSessionFacade(final StoreSessionFacade storeSessionFacade)\n\t{\n\t\tthis.storeSessionFacade = storeSessionFacade;\n\t}", "public TokenControllerTest() {\n\t\t/*\n\t\t * This constructor should not be modified. Any initialization code\n\t\t * should be placed in the setUp() method instead.\n\t\t */\n\n\t}", "@Override\n\tpublic void setApplicationContext(ApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "@BeforeClass\n public static void setUpBeforeClass() {\n TestNetworkClient.reset();\n context = ApplicationProvider.getApplicationContext();\n dataStorage = TestDataStorage.getInstance(context);\n ApplicationSessionManager.getInstance().startSession();\n }", "@BeforeClass\n\tpublic void setUp() {\n\t\tapp = app.get(ApplicationSourcesRepo.getFirefoxHerokuApplication());\n\n\t}", "@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}", "@Autowired\n\tpublic void setContext(ApplicationContext context) {\n\t\tthis.context = context;\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\n\t}", "private void setupRequestContext() {\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\n\t\tRequestContextHolder.setRequestAttributes(attributes);\n\t}", "@Before\n public void setUpContextManagerBeforeTest() throws Exception{\n workerI = new ContextManager.ContextManagerWorkerI();\n\n// //Create the communicator of context manager\n// ContextManager.communicator = com.zeroc.Ice.Util.initialize(new String[] {\"[Ljava.lang.String;@2530c12\"});\n//\n// //Get the preference\n// ContextManager.iniPreferenceWorker();\n//\n// //Get the locationWorker\n// ContextManager.iniLocationMapper();\n\n //Get the cityinfo of the context manager\n ContextManager.cityInfo = ContextManager.readCityInfo();\n\n //CurrentWeather set to 0\n ContextManager.currentWeather = 0;\n\n //Create sensor data and user to add in the users list\n mockSensor = new SensorData(\"David\", \"D\", 30, 100);\n mockUser = new User(3, new int[]{27, 30},90, 45, mockSensor, 0, false,false);\n ContextManager.users.put(\"David\", mockUser);\n\n }", "public TokenStore getTokenStore() {\n return tokenStore;\n }", "@BeforeEach\n public void setUp() throws Exception\n {\n // Set up a new thread context class loader\n setUpClassloader();\n\n // Set up Servlet API Objects\n setUpServletObjects();\n\n // Set up JSF API Objects\n FactoryFinder.releaseFactories();\n\n setFactories();\n\n setUpJSFObjects();\n }", "@Before\n public void SetUp()\n {\n Mockito.reset(userServiceMock);\n Mockito.clearInvocations(userServiceMock);\n mockMvc = MockMvcBuilders.webAppContextSetup(webConfiguration).build();\n }", "@Before\n public void setUp()\n {\n m_instance = ConversationRepository.getInstance();\n m_fileSystem = FileSystem.getInstance();\n }", "public WebServiceConfig()\n {\n// session1 = new sessionmanager(getApplicationContext);\n\n }", "@BeforeClass\n public static void setUpClass() throws Exception {\n if (!RunningOnGithubAction.isRunningOnGithubAction()) {\n Connection connection = getSnowflakeAdminConnection();\n connection\n .createStatement()\n .execute(\n \"alter system set\"\n + \" master_token_validity=60\"\n + \",session_token_validity=20\"\n + \",SESSION_RECORD_ACCESS_INTERVAL_SECS=1\");\n connection.close();\n }\n }", "@Bean\n\t public TokenStore jwtTokenStore() {\n\t\t return new JwtTokenStore(jwtAccessTokenConverter());\n\t }", "@Before\n\tpublic void setup() throws Exception {\n\t\tthis.mockMvc = MockMvcBuilders.webAppContextSetup(webApplicationContext).build();\n\t}", "@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}", "@Autowired\r\n\tpublic void setContext(ApplicationContext context) {\r\n\t\tthis.context = context;\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"session\", new SessionScope());\r\n\t\t((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(\"request\", new RequestScope());\r\n\t}", "@Bean\n public TokenStore tokenStore() {\n if (env.getUsejdbcstoretoken())\n return new JdbcTokenStore(dataSource);\n\n if (env.getUsejwttokenconverter())\n return new JwtTokenStore(tokenEnhance());\n\n return new InMemoryTokenStore();\n }", "@BeforeSuite(alwaysRun = true)\n\tpublic void setupBeforeSuite(ITestContext context) throws ParserConfigurationException, SAXException, IOException, InterruptedException {\n\t\tStartServerPath = genMeth.getValueFromPropFile(\"StartServerPath\");\n\t\tStopServerPath = genMeth.getValueFromPropFile(\"StopServerPath\");\n\t\twebElementXmlPath = genMeth.getValueFromPropFile(\"webElementXmlPath\");\n\t\twebElementXmlLang = genMeth.getValueFromPropFile(\"webElementXmlLang\");\n\t\t\n\t\tdroidData= new AndroidWebElements(webElementXmlLang, webElementXmlPath);\n\t\tdriver = genMeth.setCapabilitiesAndroid(genMeth);\n\t\tgenMeth.cleanLoginAndroid(genMeth,droidData, droidData.userUnlimited_name); \n\t\t\n\t}", "public static void pushTokenStore(@NonNull Context context, @NonNull final PushTokenType type, @NonNull final String token) {\n\n JSONObject props = new JSONObject();\n\n try {\n props.put(\"token\", token);\n props.put(\"type\", type.getValue());\n props.put(\"package\", context.getPackageName());\n props.put(\"areNotificationsEnabled\", NotificationManagerCompat.from(context).areNotificationsEnabled());\n } catch (JSONException e) {\n e.printStackTrace();\n return;\n }\n\n trackEventImmediately(context, AnalyticsContract.EVENT_TYPE_PUSH_DEVICE_REGISTERED, props);\n }", "private void setupRequestContext() {\r\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\r\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\r\n\t\tRequestContextHolder.setRequestAttributes(attributes);\r\n\t}", "private void setupRequestContext() {\r\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\r\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\r\n\t\tRequestContextHolder.setRequestAttributes(attributes);\r\n\t}", "LogbookAPI(Context context, String token) {\n mContext = context;\n mToken = token;\n mMessages = getAnalyticsMessages();\n mPersistentIdentity = getPersistentIdentity(context, token);\n }", "public void initialize() {\n setCommitteeHelper(getNewCommitteeHelperInstanceHook(this));\n }" ]
[ "0.63659996", "0.5722865", "0.55264133", "0.5515132", "0.53869253", "0.5345623", "0.53061455", "0.5256096", "0.5191697", "0.51876575", "0.5174475", "0.5174415", "0.5168373", "0.51658756", "0.516516", "0.5144271", "0.5139144", "0.5096367", "0.5096367", "0.5090922", "0.5071492", "0.5071492", "0.50688887", "0.5051471", "0.5044821", "0.5044567", "0.5036223", "0.5034145", "0.50201833", "0.49806347", "0.49791378", "0.49763694", "0.49758205", "0.496644", "0.49651447", "0.49473006", "0.49398506", "0.49395812", "0.49352264", "0.490634", "0.4904064", "0.4888131", "0.488176", "0.48795983", "0.48788393", "0.48755643", "0.48694462", "0.48485792", "0.48407292", "0.48386124", "0.48360056", "0.48333308", "0.48252586", "0.48214817", "0.48198062", "0.481638", "0.48140833", "0.48140833", "0.48122925", "0.4807791", "0.48063064", "0.48051792", "0.48036027", "0.47988778", "0.47984827", "0.47802824", "0.47802174", "0.47751844", "0.47751844", "0.47638765", "0.47634923", "0.47225857", "0.47205812", "0.47204497", "0.4720158", "0.47141504", "0.47047618", "0.47042462", "0.4702214", "0.4701546", "0.47008723", "0.46802264", "0.46788558", "0.4678703", "0.46778905", "0.4677166", "0.46744433", "0.46736643", "0.46724352", "0.46697694", "0.466606", "0.46617487", "0.46617487", "0.4661272", "0.46518987", "0.46495184", "0.46476597", "0.46476597", "0.46445298", "0.4644019" ]
0.7480021
0
This function fires when a user navigates to the chat page. It gets the conversation title from the URL, finds the corresponding Conversation, and fetches the messages in that Conversation. It then forwards to chat.jsp for rendering.
@Override public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String requestUrl = request.getRequestURI(); String conversationTitle = requestUrl.substring("/chat/".length()); currentCustomEmoji = null; Conversation conversation = conversationStore.getConversationWithTitle(conversationTitle); if (conversation == null) { // couldn't find conversation, redirect to conversation list System.out.println("Conversation was null: " + conversationTitle); response.sendRedirect("/conversations"); return; } UUID conversationId = conversation.getId(); List<Message> messages = messageStore.getMessagesInConversation(conversationId); request.setAttribute("conversation", conversation); request.setAttribute("messages", messages); request.getRequestDispatcher("/WEB-INF/view/chat.jsp").forward(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n\n String username = (String) request.getSession().getAttribute(\"user\");\n if (username == null) {\n // user is not logged in, don't let them add a message\n response.sendRedirect(\"/login\");\n return;\n }\n\n User user = userStore.getUser(username);\n if (user == null) {\n // user was not found, don't let them add a message\n response.sendRedirect(\"/login\");\n return;\n }\n\n String requestUrl = request.getRequestURI();\n String conversationTitle = requestUrl.substring(\"/chat/\".length());\n\n Conversation conversation = conversationStore.getConversationWithTitle(conversationTitle);\n if (conversation == null) {\n // couldn't find conversation, redirect to conversation list\n response.sendRedirect(\"/conversations\");\n return;\n }\n\n String messageContent = request.getParameter(\"message\");\n\n\n // this removes any HTML from the message content\n String cleanedMessageContent = Jsoup.clean(messageContent, Whitelist.none());\n\n int cleanedMessageLength = cleanedMessageContent.length();\n\n //character and string representations of supported markdown flags\n List<Character> validCharFlags = Arrays.asList('*', '_', '`');\n List<String> validStrFlags = Arrays.asList(\"*\", \"_\", \"`\", \"**\", \"__\");\n List<String> linkPrefix = Arrays.asList(\"http://\", \"https://\", \"www.\");\n\n //use this to surround emoji shortcodes (:thumbsup:)\n String emojiFlag = \":\";\n\n Map<String, String[]> markToHtml = new HashMap<>();\n\n markToHtml.put(\"*\", new String[]{\"<em>\", \"</em>\"});\n markToHtml.put(\"_\", new String[]{\"<em>\", \"</em>\"});\n markToHtml.put(\"`\", new String[]{\"<code>\", \"</code>\"});\n markToHtml.put(\"**\", new String[]{\"<strong>\", \"</strong>\"});\n markToHtml.put(\"__\", new String[]{\"<strong>\", \"</strong>\"});\n markToHtml.put(\"LINK\", new String[]{\"<a href=\\\"\", \"\\\" target=\\\"_blank\\\">\",\"</a>\"});\n\n // tokenizes message into array list of strings\n ArrayList<String> tokenizedMessageContent = tokenizeMessage(cleanedMessageContent,\n validCharFlags, validStrFlags, linkPrefix);\n\n // matches valid pairs of tokens and replaces with html syntax\n ArrayList<Blob> requestedCustomEmojis = parseMessage(tokenizedMessageContent,\n validCharFlags, validStrFlags,linkPrefix, emojiFlag, markToHtml);\n\n // converts ArrayList to string\n String parsedMessageContent = \"\";\n for (String token:tokenizedMessageContent){\n parsedMessageContent += token;\n }\n\n Message message;\n\n Part filePart = request.getPart(\"image\"); // Retrieves <input type=\"file\" name=\"image\">\n String checkboxOut = request.getParameter(\"emoji-checkbox\");\n String shortcode = request.getParameter(\"shortcode\");\n boolean messageToSend = true;\n\n if (checkboxOut == null){\n checkboxOut = \"off\";\n }\n\n if(checkboxOut.equals(\"on\") && filePart != null && !filePart.getSubmittedFileName().equals(\"\") && shortcode != null && !shortcode.equals(\"\")){ //user wants their uploaded image to be an emoji\n // Handles when the user uploads a new custom emoji\n InputStream fileContent = filePart.getInputStream();\n\n ImagesService imagesService = ImagesServiceFactory.getImagesService();\n Image originalImage = ImagesServiceFactory.makeImage(IOUtils.toByteArray(fileContent));\n Transform resize = ImagesServiceFactory.makeResize(20, 20);\n Image resizedImage = imagesService.applyTransform(resize, originalImage);\n\n Blob image = new Blob(resizedImage.getImageData());\n emojiStore.addEmoji(shortcode, image);\n messageToSend = false;\n message = //not needed, but gets rid of compiler error \"might not be initialized\"\n new Message(\n UUID.randomUUID(),\n conversation.getId(),\n user.getId(),\n parsedMessageContent,\n Instant.now());\n }\n else if(filePart != null && !filePart.getSubmittedFileName().equals(\"\") && requestedCustomEmojis.size() > 0){\n // Handles when the user uploads an image and includes custom emojis in their message\n InputStream fileContent = filePart.getInputStream();\n\n ImagesService imagesService = ImagesServiceFactory.getImagesService();\n Image originalImage = ImagesServiceFactory.makeImage(IOUtils.toByteArray(fileContent));\n Transform resize = ImagesServiceFactory.makeResize(350, 600);\n Image resizedImage = imagesService.applyTransform(resize, originalImage);\n\n Blob image = new Blob(resizedImage.getImageData());\n\n message =\n new Message(\n UUID.randomUUID(),\n conversation.getId(),\n user.getId(),\n parsedMessageContent,\n Instant.now(),\n image,\n requestedCustomEmojis);\n }\n else if(filePart != null && !filePart.getSubmittedFileName().equals(\"\")){\n // Handles when the user uploads an image\n InputStream fileContent = filePart.getInputStream();\n\n ImagesService imagesService = ImagesServiceFactory.getImagesService();\n Image originalImage = ImagesServiceFactory.makeImage(IOUtils.toByteArray(fileContent));\n Transform resize = ImagesServiceFactory.makeResize(350, 600);\n Image resizedImage = imagesService.applyTransform(resize, originalImage);\n\n Blob image = new Blob(resizedImage.getImageData());\n\n message =\n new Message(\n UUID.randomUUID(),\n conversation.getId(),\n user.getId(),\n parsedMessageContent,\n Instant.now(),\n image);\n }\n else if(requestedCustomEmojis.size() > 0){\n // Handles when the user includes custom emojis in their message\n message =\n new Message(\n UUID.randomUUID(),\n conversation.getId(),\n user.getId(),\n parsedMessageContent,\n Instant.now(),\n requestedCustomEmojis);\n }\n\n else{\n // Handles plain text messages\n message =\n new Message(\n UUID.randomUUID(),\n conversation.getId(),\n user.getId(),\n parsedMessageContent,\n Instant.now());\n }\n\n if(messageToSend){\n //send notification\n List <String> tokens = conversation.getSubscribersTokens();\n for(String token:tokens) {\n sendNotification.sendMsg(parsedMessageContent, token, notificationTokenStore.getMessagingAPIKey());\n }\n\n messageStore.addMessage(message);\n }\n // redirect to a GET request\n response.sendRedirect(\"/chat/\" + conversationTitle);\n }", "@RequestMapping(value = \"/chat\", method = RequestMethod.GET)\n public String findWorker(HttpSession session) {\n if (!MethodsForControllers.isLogedIn(session)) return \"redirect:/\";\n return \"pages/chat\";\n }", "private void navigateToConversationsActivity() {\n startActivity(this.conversationsIntent);\n }", "private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user.getParseID());\n//\t\t\tq.whereContainedIn(\"sender\", al);\n//\t\t}\n//\t\telse {\n\t\t\t// load only newly received message..\n\t\t\tif (lastMsgDate != null)\n\t\t\t\t// Load only new messages, that weren't send by me\n\t\t\t\tq.whereGreaterThan(Const.COL_MESSAGE_CREATED_AT, lastMsgDate);\n\t\t\t\tq.whereNotEqualTo(Const.COL_MESSAGE_SENDER_ID, MainActivity.user.getParseID());\n\t\t}\n\t\tq.orderByDescending(Const.COL_MESSAGE_CREATED_AT);\n\t\tq.setLimit(100);\n\t\tq.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> li, ParseException e) {\n\t\t\t\tif (li != null && li.size() > 0) {\n\t\t\t\t\tfor (int i = li.size() - 1; i >= 0; i--) {\n\t\t\t\t\t\tParseObject po = li.get(i);\n\n\t\t\t\t\t\tMessage message = new Message(po.getString(\n\t\t\t\t\t\t\t\tConst.COL_MESSAGE_CONTENT),\n\t\t\t\t\t\t\t\tpo.getCreatedAt(),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_ID),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_NAME));\n\n\t\t\t\t\t\tmessage.setStatus(MessageStatus.STATUS_SENT);\n\t\t\t\t\t\tmessagesList.add(message);\n\n\t\t\t\t\t\tif (lastMsgDate == null || lastMsgDate.before(message.getDate())) {\n\t\t\t\t\t\t\tlastMsgDate = message.getDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (isRunning)\n\t\t\t\t\t\t\tloadConversationList();\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t});\n\n\t}", "private void fetchChatContact(){\n chatRemoteDAO.getAllChatRequestHandler(profileRemoteDAO.getUserId());\n }", "@Override\n\tpublic void displayConversation(final ConversationDTO conversation) {\n\t\tif (conversation != null) {\n\t\t\tpresenter.onView(conversation);\n\t\t\tStyleHelper.show(conversationRow.getElement(), true);\n\t\t\tconversationPanel.clear();\n\t\t\tmessagesPanel = new HTMLPanel(\"\");\n\n\t\t\tFluidRow row = new FluidRow();\n\t\t\trow.addStyleName(style.conversationRow());\n\t\t\tcom.github.gwtbootstrap.client.ui.Column col1 =\n\t\t\t new com.github.gwtbootstrap.client.ui.Column(1);\n\t\t\tcol1.add(getHeading(4, SENDER_KEY));\n\t\t\trow.add(col1);\n\n\t\t\tcom.github.gwtbootstrap.client.ui.Column col2 =\n\t\t\t new com.github.gwtbootstrap.client.ui.Column(5);\n\t\t\tcol2.setOffset(1);\n\t\t\tcol2.add(getImagePanel(conversation.getSender(), ValueType.SMALL_IMAGE_VALUE));\n\t\t\trow.add(col2);\n\t\t\tconversationPanel.add(row);\n\n\t\t\trow = new FluidRow();\n\t\t\trow.addStyleName(style.conversationRow());\n\t\t\tcol1 = new com.github.gwtbootstrap.client.ui.Column(1);\n\t\t\tcol1.add(getHeading(4, RECEIVER_KEY));\n\t\t\trow.add(col1);\n\n\t\t\tcol2 = new com.github.gwtbootstrap.client.ui.Column(5);\n\t\t\tcol2.setOffset(1);\n\t\t\tcol2.add(getImagePanel(conversation.getReceiver(), ValueType.SMALL_IMAGE_VALUE));\n\t\t\trow.add(col2);\n\t\t\tconversationPanel.add(row);\n\n\t\t\trow = new FluidRow();\n\t\t\trow.addStyleName(style.conversationRow());\n\t\t\tcol1 = new com.github.gwtbootstrap.client.ui.Column(1);\n\t\t\tcol1.add(getHeading(4, SUBJECT_KEY));\n\t\t\trow.add(col1);\n\n\t\t\tcol2 = new com.github.gwtbootstrap.client.ui.Column(5);\n\t\t\tcol2.setOffset(1);\n\t\t\tcol2.add(new HTMLPanel(basicDataFormatter.format(\n\t\t\t conversation.getSubject(),\n\t\t\t ValueType.TEXT_VALUE)));\n\t\t\trow.add(col2);\n\t\t\tconversationPanel.add(row);\n\t\t\tconversationPanel.add(new HTMLPanel(\"<hr/>\"));\n\n\t\t\tfor (MessageDTO msg : conversation.getMessages()) {\n\t\t\t\tmessagesPanel.add(displayMessage(msg));\n\t\t\t\tmessagesPanel.add(new HTMLPanel(\"<hr/>\"));\n\t\t\t}\n\t\t\tconversationPanel.add(messagesPanel);\n\t\t\taddReplyPanel(conversationPanel, conversation);\n\t\t}\n\t}", "@RequestMapping(value = \"/messages\", method = RequestMethod.GET)\n @ResponseBody\n public List<ChatDTO> getAllMessages(HttpSession session) throws IOException, SecurityException {\n if (!MethodsForControllers.isLogedIn(session)) throw new SecurityException();\n chatArrayList.clear();\n for (Chat chat : chatDao.getAllComments()) {\n String userLogin = (String) session.getAttribute(ModelConstants.LOGED_AS);\n String nameWorker = chat.getWorker().getNameWorker();\n byte[] photo = chat.getWorker().getProfile().getPhoto();\n if (photo == null) {\n InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(\"photo/me-flat.png\");\n photo = MethodsForControllers.returnDefaultPhotoBytes(inputStream);\n }\n chatArrayList.add(new ChatDTO(nameWorker, chat.getComment(), photo, userLogin.equals(chat.getWorker().getLogin())));\n }\n return chatArrayList;\n }", "protected void goToChat(String recID)\n {\n Intent intent = new Intent(this, MessageActivity.class);\n intent.putExtra(\"EXTRA_SESSION_ID\", recID);\n this.startActivity(intent);\n this.finish();\n }", "@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\t\t\t\t HttpServletResponse response)\n\t\tthrows ServletException, IOException {\n\t\t(new ChatsController(request, response, this)).index();\n\t}", "protected abstract void navigateToMessage(long messageId);", "@Override\n\tpublic void onMessageReceived(List<EMMessage> messages) {\n\t\tsuper.onMessageReceived(messages);\n\t\tconversationListFragment = new ConversationListFragment();\n\t\tconversationListFragment.refresh();\n\t}", "protected void doGet(HttpServletRequest request, HttpServletResponse response) \n\tthrows ServletException, IOException {\n\t\ttry {\n\t\t\tServletContext context = getServletContext();\n\t\t\tHttpSession session = request.getSession();\n\t\t\tDBConnection connection = (DBConnection) context.getAttribute(\"DBConnection\");\n\t\t\tInteger messageID = Integer.parseInt( request.getParameter(\"messageID\") );\n\t\t\tInteger fromUserID = Integer.parseInt( request.getParameter(\"fromUserID\") );\n\t\t\tInteger requestUserID = ( (User) session.getAttribute(\"user\") ).getUserID();\n\t\t\t\n\t\t\tif (fromUserID != requestUserID) { // reading a message only applies to recipients\n\t\t\t\tconnection.readMessage(messageID);\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception ignored) {}\n\t}", "@Override\n public void handle(RoutingContext ctx) {\n if (ctx.user() instanceof ExtraUser) {\n ExtraUser user = (ExtraUser)ctx.user();\n MultiMap params = ctx.request().params();\n Date chatDate1 = null;\n Date chatDate2 = null;\n if (params.contains(\"chatDate1\")) {\n chatDate1 = parseDate(params.get(\"chatDate1\"));\n }\n if (params.contains(\"chatDate2\")) {\n chatDate2 = parseDate(params.get(\"chatDate2\"));\n }\n if (params.contains(\"chatTo\")) {\n if (params.contains(\"chatMsg\")) {\n messageStore.addMessage(user.getId(), params.get(\"chatTo\"), params.get(\"chatMsg\"));\n }\n \n StringBuilder sb = new StringBuilder();\n //url=http://webdesign.about.com/\n HttpServerRequest r = ctx.request();\n String url = r.absoluteURI().substring(0, r.absoluteURI().length() - r.uri().length()) + r.path();\n\n sb.append(\"Chat\\n\");\n sb.append(\"from:\").append(user.getId()).append(\"\\n\");\n sb.append(\"to :\").append(params.get(\"chatTo\")).append(\"\\n\");\n \n //<input type=\"datetime-local\" name=\"bdaytime\">\n /*\n<p><form action=\"\">\n From (date and time):\n <input type=\"datetime-local\" name=\"chatDate1\" value=\"\">\n To (date and time):\n <input type=\"datetime-local\" name=\"chatDate2\" value=\"\"> \n <input type=\"submit\" value=\"Refresh\">\n <input type=\"hidden\" name=\"chatTo\" value=\"user\"/>\n</form>\n */\n String refresh = \"<p><form action=\\\"\\\">\\n\" +\n\" From (date and time):\\n\" +\n\" <input type=\\\"datetime-local\\\" name=\\\"chatDate1\\\" value=\\\"\\\">\\n\" +\n\" To (date and time):\\n\" +\n\" <input type=\\\"datetime-local\\\" name=\\\"chatDate2\\\" value=\\\"\\\"> \\n\" +\n\" <input type=\\\"submit\\\" value=\\\"Refresh\\\">\\n\" +\n\" <input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"user\\\"/>\\n\" +\n\"</form>\";\n// sb.append(\"<a href=\\\"\").append(r.absoluteURI()).append(\"\\\">\");\n// sb.append(\"refresh\").append(\"</a>\").append(\"\\n\");\n sb.append(refresh\n .replace(\"value=\\\"user\\\"\", \"value=\\\"\"+params.get(\"chatTo\")+\"\\\"\")\n .replace(\"action=\\\"\\\"\", \"action=\\\"\"+url+\"\\\"\")\n .replace(\"name=\\\"chatDate1\\\" value=\\\"\\\"\", \"name=\\\"chatDate1\\\" value=\\\"\"+getHtmlDateStr(chatDate1)+\"\\\"\")\n .replace(\"name=\\\"chatDate2\\\" value=\\\"\\\"\", \"name=\\\"chatDate2\\\" value=\\\"\"+getHtmlDateStr(chatDate2)+\"\\\"\")\n );\n \n for(Message m : messageStore.getMessages(user.getId(), params.get(\"chatTo\"), chatDate1, chatDate2)) {\n sb.append(dateFormat.format(m.getDate())).append(\">>>\");\n sb.append(StringEscapeUtils.escapeHtml(m.getFrom())).append(\":\");\n sb.append(addUrls(StringEscapeUtils.escapeHtml(m.getMsg()))).append(\"\\n\");\n }\n \n secureSet(ctx.response());\n ctx.response().putHeader(\"content-type\", \"text/html\").end(\n STR_CHAT\n .replace(\"action=\\\"actionName\\\"\", \"action=\\\"\\\"\")\n .replace(\"input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"user\\\"\", \"input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"\"+params.get(\"chatTo\")+\"\\\"\")\n .replace(\"<messages/>\", sb.toString()) \n );\n \n } else {\n \n StringBuilder sb = new StringBuilder();\n for(String toid : messageStore.getChats(user.getId())) {\n sb.append(\"<a href=\\\"?chatTo=\").append(toid).append(\"\\\">\");\n sb.append(toid).append(\"</a>\").append(\"\\n\");\n }\n \n secureSet(ctx.response());\n ctx.response().putHeader(\"content-type\", \"text/html\").end(\n STR_CHATS\n .replace(\"action=\\\"actionName\\\"\", \"action=\\\"\\\"\")\n .replace(\"<messages/>\", sb.toString())\n );\n }\n } else {\n ctx.fail(HttpResponseStatus.FORBIDDEN.code());\n }\n\n }", "private void showChatPage(){\n lv_chat = (ListView) view_chat.findViewById(R.id.lv_chat);\n pb_loadChat = (ProgressBar) view_chat.findViewById(R.id.pb_load_chat);\n adapter = new ChatListAdapter(getContext(), chatList, self.getId());\n lv_chat.setAdapter(adapter);\n// lv_chat.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n// @Override\n// public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n// Log.d(TAG, \"click\");\n// String message = adapter.getItem(position).messageContent;\n// TextView textView = (TextView) view.findViewById(R.id.tv_otherText);\n// int visibility = textView.getVisibility();\n// if ( visibility == View.VISIBLE ) {\n// Log.d(TAG, \"<\" + message + \"> is visible\");\n// } else {\n// Log.d(TAG, \"<\" + message + \"> is invisible\");\n// }\n// }\n// });\n\n lv_chat.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n view_chat.requestFocus(); // remove focus from the EditText\n return false;\n }\n });\n\n lv_chat.setOnScrollListener(new AbsListView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(AbsListView view, int scrollState) {\n if ( scrollState == SCROLL_STATE_TOUCH_SCROLL ) {\n if ( lv_chat.getFirstVisiblePosition() == 0 && !isLoading && !isAllLoaded ){\n Log.d(\"ListView\",\"load more history\");\n loadMoreHistoryChat();\n }\n }\n }\n\n @Override\n public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {\n// if ( firstVisibleItem == 0 && totalItemCount > 0 ) {\n// if ( !isLoading && !isAllLoaded && isOverScrolling) {\n// loadMoreHistoryChat();\n// }\n// }\n }\n });\n loadChatHistory(CHAT_LIMIT,0,0); // load most recent CHAT_LIMIT chats\n fab_send = (FloatingActionButton) view_chat.findViewById(R.id.fab_send);\n fab_more = (FloatingActionButton) view_chat.findViewById(R.id.fab_more);\n fab_less = (FloatingActionButton) view_chat.findViewById(R.id.fab_less);\n fab_gallery = (FloatingActionButton) view_chat.findViewById(R.id.fab_gallery);\n view_functions = view_chat.findViewById(R.id.layout_function_menu);\n et_message = (EditText) view_chat.findViewById(R.id.et_message);\n et_message.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if ( hasFocus ) {\n if ( adapter != null ) {\n lv_chat.setSelection(adapter.getCount()-1); // scroll to bottom when gaining focus\n }\n } else {\n AppUtils.hideKeyboard(getContext(),v); // hide keyboard when losing focus\n }\n }\n });\n\n fab_send.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n sendTextMessage(et_message.getText().toString());\n }\n });\n\n fab_more.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n fab_more.setVisibility(View.GONE);\n view_functions.setVisibility(View.VISIBLE);\n }\n });\n\n fab_less.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n view_functions.setVisibility(View.GONE);\n fab_more.setVisibility(View.VISIBLE);\n LocalDBHelper localDBHelper = LocalDBHelper.getInstance(getContext());\n localDBHelper.clearAllImageCache();\n }\n });\n\n fab_gallery.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selectImage();\n }\n });\n\n et_message.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {\n }\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {\n if ( s != null && s.length() > 0 ) {\n fab_send.setVisibility(View.VISIBLE);\n } else {\n fab_send.setVisibility(View.GONE);\n }\n }\n\n @Override\n public void afterTextChanged(Editable s) {\n }\n });\n }", "@Override\n public void doGet(HttpServletRequest req, HttpServletResponse resp)\n throws ServletException, IOException {\n Map<String, String> messages = new HashMap<String, String>();\n req.setAttribute(\"messages\", messages);\n // Just render the JSP.\n req.getRequestDispatcher(\"/TenantPostLandlordReview.jsp\").forward(req, resp);\n }", "@GET(\"messagerie/list_conversations\")\n\tCall<ListConversationPosts> getListConversations(\n\t\t\t @Query(\"page\") int page);", "@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tint id = -1;\n\t\ttry {\n\t\t\tid = Integer.parseInt(request.getParameter(\"id\"));\n\t\t} catch (Exception e) {\n\t\t}\n\t\tList<String> messages = ChatServerConnector.getMessage(id);\n\t\tString message = \"\";\n\t\tif (messages != null) {\n\t\t\tmessage = messages.stream().map((msg) -> msg + \"\\n\").reduce(message, String::concat);\n\t\t} else {\n\t\t\t//TODO håndtere fejl\n\t\t}\n\t\tresponse.setContentType(\"text/plain;charset=UTF-8\");\n\t\ttry (PrintWriter out = response.getWriter()) {\n\t\t\tout.print(message);\n\t\t}\n\t}", "public void receive()\n {\n //Client receives a message: it finds out which type of message is and so it behaves differently\n //CHAT message: prints the message in the area\n //CONNECT message: client can't receive a connect message from the server once it's connected properly\n //DISCONNECT message: client can't receive a disconnect message from the server\n //USER_LIST message: it shows the list of connected users\n try\n {\n String json = inputStream.readLine();\n\n switch (gson.fromJson(json, Message.class).getType())\n {\n case Message.CHAT:\n ChatMessage cmsg = gson.fromJson(json, ChatMessage.class);\n\n if(cmsg.getReceiverClient() == null)\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO ALL): \" + cmsg.getText() + \"\\n\");\n else\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO YOU): \" + cmsg.getText() + \"\\n\");\n break;\n case Message.CONNECT:\n //Send login nickname and wait for permission to join\n //if message code is 1, nickname is a duplicate and must be changed, then login again\n //(send call is inside button event)\n ConnectMessage comsg = gson.fromJson(json, ConnectMessage.class);\n\n if(comsg.getCode() == 1)\n {\n //Show error\n ChatGUI.getInstance().getLoginErrorLabel().setVisible(true);\n }\n else\n {\n //Save nickname\n nickname = ChatGUI.getInstance().getLoginField().getText();\n\n //Hide this panel and show main panel\n ChatGUI.getInstance().getLoginPanel().setVisible(false);\n ChatGUI.getInstance().getMainPanel().setVisible(true);\n }\n break;\n case Message.USER_LIST:\n UserListMessage umsg2 = gson.fromJson(json, UserListMessage.class);\n fillUserList(umsg2);\n break;\n }\n } \n catch (JsonSyntaxException | IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public static void handlePrintMessages(Website w, int firstUID, int secondUID)\n { \n Person a = w.getPersonByUID(firstUID);\n Person b = w.getPersonByUID(secondUID);\n Message[] messages = w.getChatHistory(firstUID, secondUID);\n \n if (a == null)\n {\n System.out.println(\"Person with uid \"+firstUID+\" not found, can't print message history\");\n }\n else if (b == null)\n {\n System.out.println(\"Person with uid \"+secondUID+\" not found, can't print message history\");\n }\n else if (messages.length == 0)\n {\n System.out.println(\"NO MESSAGE HISTORY FOUND FOR THESE TWO USERS.\");\n } \n else\n {\n System.out.println(\"Showing chat history between [\"+a.getFullName()+\"] and [\"+b.getFullName()+\"]\");\n for(int i = 0; i < messages.length; i+=1)\n {\n System.out.println(\"At (\" + messages[i].covertEpochToDate()+\"), \"+\n messages[i].getSender().getFullName()+\" said: \\\"\" +\n messages[i].getMessage() + \"\\\"\");\n }\n }\n }", "public void processMessage(Chat chat, Message message) {\n LOG.debug(\"processMessage chat.threadID: \" + chat.getThreadID()\n + \" message.from: \" + message.getFrom()\n + \" message.body: \" + message.getBody()\n + \" message.subject: \" + message.getSubject()\n + \" message: \" + message);\n Conversation convo;\n boolean newConvo = false;\n Conversation oldConvo = null;\n \n try {\n // To allow this to be called from multiple threads, we must lock the\n // conversations when we muck with them.\n LOG.debug(\"getting lock on conversations...\");\n synchronized (getConversations()) {\n LOG.debug(\"got lock on conversations\");\n\n // Get the conversation.\n convo = removeConversation(chat.getParticipant());\n if (convo == null) {\n LOG.debug(\"new conversation with participant \" + chat.getParticipant());\n convo = new Conversation(chat);\n newConvo = true;\n }\n\n // Add this conversation to the front of the list.\n getConversations().addFirst(convo);\n\n // Evict old conversations.\n LOG.debug(\"number of conversations: \" + getConversations().size());\n if (getConversations().size() > MAX_CONVERSATIONS) {\n oldConvo = getConversations().removeLast();\n }\n }\n\n // Process the message itself.\n convo.reactToIm(newConvo, message, XmppAppender.this);\n\n // Let the person know we're evicting them.\n if (oldConvo != null) {\n // Don't send this if we haven't heard from this person in a long time.\n Calendar cal = Calendar.getInstance();\n cal.add(Calendar.DATE, -MAX_DAYS_TO_NOTIFY_OF_EVICTION);\n if (oldConvo.getLastHeardFrom().after(cal.getTime())) {\n oldConvo.sendIm(\"I'm holding a conversation with \" + MAX_CONVERSATIONS +\n \" other people, so I'll talk to you later.\");\n }\n }\n }\n catch (Throwable t) {\n LOG.error(t);\n }\n }", "public void receiveChatRequest() {\n\t\t\r\n\t\tString message = \"Chat request details\";\r\n\t\t\r\n\t\t//Notify the chat request details to the GUI\r\n\t\tthis.observable.notifyObservers(message);\r\n\t}", "@Override\n\tprotected ModelAndView handleRequestInternal(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {\n\t\tModelAndView model = new ModelAndView(\"contact\");\n\t\tmodel.addObject(\"command\", getMsg());\n\n\t\treturn model;\n\t}", "@GET(\"users/{recipient_id}/messages\")\n Call<PageResourceChatMessageResource> getDirectMessages1(\n @retrofit2.http.Path(\"recipient_id\") Integer recipientId, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page\n );", "@Override\n public void onReceive(DataTransfer message) {\n ChatBox currentChatBox = getCurrentChat();\n final String current = currentChatBox != null ? currentChatBox.getTarget() : null;\n\n boolean isCurrentOnline = current == null;\n\n // Clear all exist chat item\n lvUserItem.getItems().clear();\n\n // Retrieve online users\n List<String> onlineUsers = (List<String>) message.data;\n\n // Clear all offline user chat messages in MessageManager\n MessageManager.getInstance().clearOffline(onlineUsers);\n MessageSubscribeManager.getInstance().clearOffline(onlineUsers);\n\n for (String user : onlineUsers) {\n // Add user (not your self) into listview\n if (!username.equals(user)) {\n ChatItem item = new UserChatItem();\n item.setName(user);\n lvUserItem.getItems().add(item);\n\n // Check whether current user still online\n if (user.equals(current))\n isCurrentOnline = true;\n else {\n String topic = String.format(\"chat/%s\", user);\n if (!MessageSubscribeManager.getInstance().containsKey(topic)) {\n // with other user listen message\n Subscriber subscriber = subscribeMessages(username, topic);\n MessageSubscribeManager.getInstance().put(topic, subscriber);\n }\n }\n }\n }\n\n // In case current user offline\n // Clear chat box\n if (!isCurrentOnline) {\n clearChatBox();\n }\n }", "public int doStartTag() throws JspException {\n\n String html = null;\n\n if (getAction().equals(IConstants.ADD)) {\n\n html = getAddToHistoryQueryString();\n\n } else if (getAction().equals(IConstants.REMOVE)) {\n\n html = getRemoveFromHistoryQueryString();\n\n }\n\n\t// Print the retrieved message to our output writer\n ResponseUtils.write(pageContext, html);\n\n\t// Continue processing this page\n\t return (SKIP_BODY);\n\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\"); \n RequestDispatcher rd=request.getRequestDispatcher(\"Contact.jsp\");\n rd.forward(request, response); \n }", "public void doGet(HttpServletRequest req, HttpServletResponse res)\n\t\t\tthrows ServletException, IOException {\n\t\tThread userSideCheck = new Thread(this);\n\t\t/*\n\t\t * starts thread that determines which users are no longer connected -\n\t\t * removes those users from the list\n\t\t */\n\t\tuserSideCheck.start();\n\n\t\tStringBuffer out = new StringBuffer(\"\");\n\t\tString[] messages = new String[chatData.size()];\n\t\tChatMessage temp;\n\t\t// get the session\n\t\tHttpSession session = req.getSession(true);\n\t\tString user = (String) session.getValue(\"com.mrstover.name\");\n\t\tint count = messages.length;\n\t\tString[] users;\n\t\tint x = 0;\n\n\t\t// set content type and other response header fields first\n\t\tres.setContentType(\"text/html\");\n\n\t\t// then write the data of the response\n\t\tout.append(\"<HEAD>\");\n\t\tout\n\t\t\t\t.append(\"<TITLE>ChatServlet Output </TITLE><META HTTP-EQUIV='Refresh'\"\n\t\t\t\t\t\t+ \" CONTENT='10;url=\"\n\t\t\t\t\t\t+ thisServlet\n\t\t\t\t\t\t+ \"'></HEAD>\"\n\t\t\t\t\t\t+ \"<BODY BGCOLOR='#FFFFFF'>\");\n\t\tout.append(\"<TABLE CELLPADDING=5 CELLSPACING=5 BORDER=0 WIDTH=700>\");\n\t\tout.append(\"<TR VALIGN='TOP'><TD WIDTH=50><TD WIDTH=300><TD WIDTH=80 \"\n\t\t\t\t+ \"ALIGN='CENTER' ROWSPAN=\" + (count + 1) + \">\"\n\t\t\t\t+ \"<FONT SIZE='+2'><B>Users</B></FONT><BR>\");\n\t\tusers = getUsers();\n\t\t// first, print column that holds names of all current users\n\t\twhile (x < users.length)\n\t\t\tout.append(users[x++] + \"<BR>\");\n\t\tout.append(\"</TD></TR>\");\n\t\t/*\n\t\t * write a row for each message, but only if current user is registered\n\t\t * as a reciever\n\t\t */\n\t\tif (user != null) {\n\n\t\t\twhile (--count >= 0) {\n\t\t\t\ttemp = (ChatMessage) chatData.elementAt(count);\n\t\t\t\tif (temp.checkReceiver(user))\n\t\t\t\t\tout.append(\"<TR VALIGN='TOP'><TD><B>\" + temp.getSender()\n\t\t\t\t\t\t\t+ \"</B></TD><TD>\" + temp.getMessage()\n\t\t\t\t\t\t\t+ \"</TD></TR>\");\n\t\t\t\telse if (temp.getSender().equals(user))\n\t\t\t\t\tout.append(\"<TR VALIGN='TOP'><TD><B>\" + temp.getSender()\n\t\t\t\t\t\t\t+ \"</B></TD><TD>\" + temp.getMessage()\n\t\t\t\t\t\t\t+ \"</TD></TR>\");\n\t\t\t}\n\t\t}\n\t\tout.append(\"</TABLE>\");\n\t\tout.append(\"<A NAME='bottom'></BODY></HTML>\");\n\t\toutputToBrowser(res, out.toString());\n\t}", "protected void queryMsg() {\n\t\tif (currentPosition == 0) {//LIVE\n\t\t\tobtainLiveData(true, currentPosition, liveMaxChatId);\n\t\t} else {//CHAT\n\t\t\tobtainChatData(true, currentPosition, chatModels.get(0).getChatId());\n\t\t}\n\t}", "private void contactsListEvent(){\n UI.getContacts().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(ListSelectionEvent e) {\r\n UI.getProperList().clear(); //Clear screen\r\n UI.getContacts().setCellRenderer(clearNotification); //Clear notification\r\n UI.getUserName().setText((String) UI.getContacts().getSelectedValue()); //Set selected username\r\n String currentChat = (String)UI.getContacts().getSelectedValue();\r\n if(chats.containsKey(currentChat)){ //If database exists\r\n for(String s: chats.get(currentChat)){ //Load messages to screen\r\n UI.getProperList().addElement(s);\r\n }\r\n }\r\n }\r\n });\r\n }", "@Override\r\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\r\n\t\t\tswitch (msg.what) {\r\n\t\t\tcase FINDPERSONINFOERROR:\r\n\t\t\t\tToast.makeText(ShowProfiles.this, \"连接超时\", 0).show();\r\n\t\t\t\tloadprobypage.setVisibility(View.GONE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase FINDPERSONINFOSUCCESS:\r\n\t\t\t\tbulidView(1, pageUtil.getHashMaps());\r\n\t\t\t\tsc.setVisibility(View.VISIBLE);\r\n\t\t\t\tloadll.setVisibility(View.GONE);\r\n\t\t\t\tbreak;\r\n\t\t\tcase FINDPERSONPAGESUCCESS:\r\n\t\t\t\tif (zp1.getHeight() > zp2.getHeight()) {\r\n\t\t\t\t\tbulidView(2, pageUtil.getHashMaps());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbulidView(1, pageUtil.getHashMaps());\r\n\t\t\t\t}\r\n\t\t\t\tloadprobypage.setVisibility(View.GONE);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t}", "@GetMapping(\"/chat-messages\")\n @Timed\n public List<ChatMessage> getAllChatMessages() {\n log.debug(\"REST request to get all ChatMessages\");\n return chatMessageRepository.findAll();\n }", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tList<TopicEvent> list = board.getNewMessages();\r\n\t\t// Send message to GUI\r\n\t\tString response = ServletUtil.createMessageBoardXML(list);\r\n\t\tServletUtil.createHeaders(resp);\r\n\t\tresp.getWriter().write(response);\r\n\t\tlog.debug(\"SENT:\\n\" + response);\r\n\t}", "@Override\n public String execute(HttpServletRequest request, \n HttpServletResponse responce) throws ServletException, IOException {\n \n String page; // new page name\n HttpSession session \n = request.getSession(true); // get session\n IProuderCommunitiesDAO prouderCommunities;\n List<Story> storyList; // list of stories\n List<Prouder> prouderList; // list of Prouder\n List<Community> communityList = new ArrayList<>();\n List<Long> communitiesIdList;\n \n DAOFactory factory = DAOFactory.getDAOFactory();\n \n Prouder prouder = (Prouder) session.getAttribute(\"prouder\");\n \n if(prouder.getType().getUserType().equals(\"admin\")) {\n /* if user an admin than go to admin page */\n storyList = StoryService.readAllNewOrPreparedStory();\n log.info(\"New and prepared stories list setted\"\n + \" in profile page\");\n prouderList = ProuderService.readAllProuders();\n log.info(\"Prouders list setted in profile page\");\n \n request.setAttribute(\"storyList\", storyList);\n request.setAttribute(\"prouderList\", prouderList);\n session.setAttribute(\"userrole\", \"admin\");\n page = Config.getInstance().getProperty(Config.ADMIN);\n } else {\n /* else go to user profile page */\n try {\n prouderCommunities = factory.getProuderCommunitiesDAO();\n communitiesIdList = prouderCommunities.getAllCommunitiesID\n (prouder.getID());\n /* use of functional oparation: */\n communitiesIdList.stream().forEach((item) -> {\n communityList.add(CommunityService.readCommunity(item));\n });\n } catch (SQLException ex){\n log.error(\"SQLException while getAllCommunitiesID: \" + ex);\n }\n request.setAttribute(\"communityList\", communityList);\n page = Config.getInstance().getProperty(Config.PROFILE);\n }\n \n return page;\n }", "@RequestMapping(\"/\")\n public String mainPage(Model model){\n model.addAttribute(\"messages\", messageService.findAll());\n\n return \"index\";\n }", "public void handleMessageAction(ActionEvent event) {\n if (action.getSelectedToggle() == sendMessage){\n sendPane.setVisible(true);\n reviewPane.setVisible(false);\n }\n else{ //action.getSelectedToggle() == reviewMessage\n sendPane.setVisible(false);\n reviewPane.setVisible(true);\n\n StringBuilder builder = new StringBuilder();\n\n for ( String i : messageController.getMessageForMe(this.sender)){\n builder.append(i).append(\"\\n\");\n }\n this.inbox.setText(String.valueOf(builder));\n\n }\n }", "@Override\r\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n Map<String, String> messages = new HashMap<String, String>();\r\n req.setAttribute(\"messages\", messages);\r\n\r\n List<SingleFamilyHouse> singlefamilyhouses = new ArrayList<SingleFamilyHouse>();\r\n \r\n // Retrieve and validate name.\r\n // firstname is retrieved from the URL query string.\r\n String city = req.getParameter(\"city\");\r\n if (city == null || city.trim().isEmpty()) {\r\n messages.put(\"success\", \"Please enter a valid city.\");\r\n } else {\r\n \t// Retrieve BlogUsers, and store as a message.\r\n \ttry {\r\n \t\tsinglefamilyhouses = singleFamilyHouseDao.getSingleFamliyHouseFromCity(city);\r\n } catch (SQLException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t\tthrow new IOException(e);\r\n }\r\n \tmessages.put(\"success\", \"Displaying results for \" + city);\r\n \t// Save the previous search term, so it can be used as the default\r\n \t// in the input box when rendering FindUsers.jsp.\r\n \tmessages.put(\"previousCity\", city);\r\n }\r\n req.setAttribute(\"singleFamilyHouses\", singlefamilyhouses);\r\n \r\n req.getRequestDispatcher(\"/FindSingleFamilyHouses.jsp\").forward(req, resp);\r\n\t}", "@RenderMapping(params = \"action=viewInboxMessage\")\n public String viewInboxMessage() {\n return JSP_DIR + VIEW_MESSAGE;\n }", "void conversationResuming(Conversation conversation, HttpServletRequest request);", "@RequestMapping(value = \"\", method = RequestMethod.POST, params = {\"postMessage\"})\n public String processMessages(@RequestParam String message,\n @CookieValue(value = \"loggedInCookie\") String loggedInUserId) {\n int userId = Integer.parseInt(loggedInUserId);\n User thisUser = userDao.findOne(userId);\n Message newMessage = new Message(message);\n newMessage.setAuthor(thisUser);\n\n messageDao.save(newMessage);\n\n String subject = \"New Home Manager message from \" + newMessage.getAuthor().getName();\n String text = newMessage.getMessage();\n mailService.sendToAll(subject, text);\n return \"redirect:/messages\";\n }", "public void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n Map<String, String> messages = new HashMap<String, String>();\n req.setAttribute(\"messages\", messages);\n\n List<MeetUps> meetups = new ArrayList<MeetUps>();\n \n // Retrieve and validate the intensity that is retrieved from the URL query string.\n String meetupId = req.getParameter(\"meetupid\");\n if (meetupId == null || meetupId.trim().isEmpty()) {\n \ttry {\n \tmeetups = meetupsDao.getAllMeetUps();\n } catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t\tthrow new IOException(e);\n }\n \tmessages.put(\"success\", \"Displaying all of the meet ups.\");\n } else {\n \t//Retrieve all meetups, and store as a message.\n \ttry {\n \tmeetups = meetupsDao.getAllMeetUps();\n } catch (SQLException e) {\n \t\t\te.printStackTrace();\n \t\t\tthrow new IOException(e);\n }\n \tmessages.put(\"success\", \"Displaying all of the workouts.\");\n \t// Save the previous search term, so it can be used as the default\n \t// in the input box when rendering FindUsers.jsp.\n \n }\n \n req.setAttribute(\"meetups\", meetups);\n \n req.getRequestDispatcher(\"/MeetUp.jsp\").forward(req, resp);\n\t}", "void onEnterToChatDetails();", "public void onConversationsButtonClick(android.view.View view) {\n this.navigateToConversationsActivity();\n }", "public void handleIncomingMessage(ChatRoomSession chatRoomSession,\n ChatRoomUser chatRoomUser, ChatMessage chatMessage)\n {\n if (logger.isDebugEnabled())\n logger.debug(\"Incoming multi user chat message received: \"\n + chatMessage.getMessage());\n\n String msgBody = chatMessage.getMessage();\n\n String msgContent;\n if (msgBody.startsWith(defaultHtmlStartTag))\n {\n msgContent =\n msgBody.substring(msgBody.indexOf(defaultHtmlStartTag)\n + defaultHtmlStartTag.length(), msgBody\n .indexOf(defaultHtmlEndTag));\n }\n else\n msgContent = msgBody;\n\n Message newMessage =\n createMessage(\n msgContent.getBytes(),\n HTML_MIME_TYPE,\n OperationSetBasicInstantMessagingIcqImpl\n .DEFAULT_MIME_ENCODING,\n null);\n\n String participantUID = chatRoomUser.getScreenname().getFormatted();\n\n if (participantUID.equals(nickName))\n return;\n\n AdHocChatRoomMessageReceivedEvent msgReceivedEvent =\n new AdHocChatRoomMessageReceivedEvent(\n chatRoom,\n participants.get(participantUID),\n new Date(),\n newMessage,\n AdHocChatRoomMessageReceivedEvent\n .CONVERSATION_MESSAGE_RECEIVED);\n\n fireMessageEvent(msgReceivedEvent);\n }", "public void doSendMsg() {\n FacesContext fctx = FacesContext.getCurrentInstance();\n HttpSession sess = (HttpSession) fctx.getExternalContext().getSession(false);\n SEHRMessagingListener chatHdl = (SEHRMessagingListener) sess.getAttribute(\"ChatHandler\");\n if (chatHdl.isSession()) {\n //TODO implement chat via sehr.xnet.DOMAIN.chat to all...\n if (room.equalsIgnoreCase(\"public\")) {\n //send public inside zone\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PUBLIC, moduleCtrl.getLocalZoneID(), -1, -1);\n } else {\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PRIVATE_USER, moduleCtrl.getLocalZoneID(), -1, curUserToChat.getUsrid());\n }\n this.text = \"\";\n }\n //return \"pm:vwChatRoom\";\n }", "public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }", "public String execute(HttpServletRequest request, HttpServletResponse response){\r\n \r\n String forwardToJsp = \"games.jsp\";\r\n String message = \"Success!\";\r\n GameDao gameDao = new GameDao();\r\n HttpSession session = request.getSession();\r\n List<Game> gameList;\r\n try {\r\n gameList = gameDao.viewAllGames();\r\n if (gameList != null) {\r\n session.setAttribute(\"gameList\", gameList);\r\n } else {\r\n message = \"Games not loaded.\";\r\n }\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n session.setAttribute(\"allGameMessage\", message);\r\n return forwardToJsp; \r\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tif(msg.what==0)\n\t\t\t{\n\t\t\t\tif(mDatas.size()<pangSize)\n\t\t\t\t{\n\t\t\t\t\tmlistview.hindLoadView(false);\n\t\t\t\t}\n\t\t\t\tmlistview.setAdapter(mAdapter);\n\t\t\t\tinitDate();\n\t\t\t}\n\t\t\telse if(msg.what==1)\n\t\t\t{\n\t\t\t\tToast.makeText(ChemicalsDirectoryActivity.this, \"搜索结果为空\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "@RequestMapping(value=\"/display\", method=RequestMethod.GET)\n\tpublic ModelAndView displayMessages(@RequestParam int folderId){\n\t\t\n\t\tModelAndView resul;\n\t\tCollection<Message> messages;\n\t\t\n\t\tmessages = messageService.findByFolder(folderId);\n\t\tresul = new ModelAndView(\"message/display\");\n\t\tresul.addObject(\"messages\", messages);\n\t\tresul.addObject(\"requestURI\", \"message/display.do\");\n\t\t\n\t\treturn resul;\n\t}", "public static void handleList(Page page){\n\n logger.info(\"handle:\" + page.getUrl());\n Document document = page.getHtml().getDocument();\n String currentUrl = document.location();\n String date =currentUrl.substring(currentUrl.lastIndexOf(\"/\")+1);\n\n Elements competitions = document.select(\"div.competition-matches\");\n for (Element competition : competitions) {\n String competitionName = competition.select(\"div.competition-name\").text();\n logger.debug(competition.html());\n Elements matches = competition.select(\"div.match-row\");\n\n if(matches.isEmpty()){\n continue;//没有比赛\n }\n for (Element match : matches) {\n Elements mainData = match.select(\"a.match-main-data-link\");\n String href = mainData.attr(\"abs:href\");\n String[] split = href.split(\"/\");\n int lastIndex = href.lastIndexOf(\"/\");\n String newUrl = href.substring(0,lastIndex)+\"/commentary-result\"+href.substring(lastIndex);\n Request request = new Request(newUrl);\n request.putExtra(Const.COMPETITION,competitionName);\n request.putExtra(Const.DATE,date);\n request.putExtra(Const.PAGE_TYPE,Const.DETAIL);\n request.putExtra(Const.MATCH,split[split.length-2]);\n page.addTargetRequest(request);\n }\n\n }\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\tString uid1=request.getParameter(\"uid1\");\n\t\t\tString uid2=request.getParameter(\"uid2\");\n\t\t\tString uidentity=request.getParameter(\"uidentity\");\n\t\t\t\n\t\t\tSystem.out.println(\"message:\"+uid2);\n\t\t\t\n\t\t\tif(uidentity.charAt(0)=='2')\n\t\t\t{\n\t\t\t\tString order=request.getParameter(\"order\");\n\t\t\t\tif(order==\"0\")\n\t\t\t\t{\n\t\t\t\tmessage m=new message();\n\t\t\t\tm.setMuid1(uid1);\n\t\t\t\tm.setMuid2(uid2);\n\t\t\t\tm.setMtext(\"邀请评价\");\n\t\t\t\tm.setMsituation('0');\n\t\t\t\ttry {\n\t\t\t\t\tnew messageDAO().addMessage(m);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tmessage m=new message();\n\t\t\t\t\tm.setMuid1(uid1);\n\t\t\t\t\tm.setMuid2(uid2);\n\t\t\t\t\tm.setMtext(\"申请项目\");\n\t\t\t\t\tm.setMsituation('0');\n\t\t\t\t\ttry {\n\t\t\t\t\t\tnew messageDAO().addMessage(m);\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}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmessage m=new message();\n\t\t\t\tm.setMuid1(uid1);\n\t\t\t\tm.setMuid2(uid2);\n\t\t\t\tm.setMtext(\"邀请加入\");\n\t\t\t\tm.setMsituation('0');\n\t\t\t\ttry {\n\t\t\t\t\tnew messageDAO().addMessage(m);\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n int user_id = 1;// get from session\n boolean isAdmin = true;//get from sssion\n\n int reguser_id, admin_id, message_id;\n String message;\n Messages dto = new Messages();\n\n if (isAdmin) {\n dto.setAdmin_id(user_id);\n dto.setSender(0);\n } else {\n dto.setUser_id(user_id);\n dto.setSender(1);\n\n }\n\n PrintWriter out = response.getWriter();\n try {\n String jsonString = \"\";\n BufferedReader br\n = new BufferedReader(new InputStreamReader(request.getInputStream()));\n String line;\n //String json = \"\";\n while ((line = br.readLine()) != null) {\n jsonString += line;\n //System.out.println(\"recieve\" + jsonString);\n }\n //System.out.println(jsonString != null);\n if (jsonString != null) {\n System.out.println(jsonString);\n JSONObject obj = new JSONObject(jsonString);\n\n reguser_id = obj.getInt(\"student_id\");\n \n admin_id = obj.getInt(\"teacher_id\"); \n \n message_id = obj.getInt(\"message_id\");\n \n MessageDbManager mDB = new MessageDbManager();\n ArrayList<Messages> list = mDB.getAllMessagesAfterID(reguser_id, admin_id, message_id);\n System.out.println(list);\n if(list!=null)\n {\n \n JSONArray json = new JSONArray(list);\n out.print(json.toString());\n System.out.println(json.toString());\n// for(Messages m : list){\n// JSONObject json=new JSONObject(m);\n// out.print(json.toString());\n// System.out.println(json.toString());\n// }\n \n }\n else\n {\n out.print(\"null\");\n }\n\n }\n\n }catch(Exception ex){\n ex.printStackTrace();\n } \n finally {\n \n out.close();\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n \n HttpSession session=request.getSession();\n String username=(String)session.getAttribute(\"username\"); \n System.out.println(\"uname:\"+username);\n if(username==null)\n {\n System.out.println(\"here\");\n session.invalidate();\n response.sendRedirect(\"Accessedenied.html\");\n } \n else\n { \n RequestDispatcher rd=null;\n \n try{ \n System.out.println(\"above sem\");\n String queryReply=request.getParameter(\"queryReply\");\n String reply = request.getParameter(\"reply\");\n System.out.println(\"+++++\"+reply);\n System.out.println(\"queryReply\"+queryReply);\n String sem=request.getParameter(\"sem\");\n// System.out.println(\"below\"+sem);\n String question = request.getParameter(\"question\");\n String email=(String)request.getParameter(\"email\");\n String id = (String) request.getParameter(\"id\");\n System.out.println(\"below eamil:\"+email);\n if(id != null) {\n QueryDTO query = FacultyDAO.fetchQueryById(id);\n if(query != null) {\n request.setAttribute(\"query\", query);\n rd = request.getRequestDispatcher(\"QueryReplyModal.jsp\");\n }\n }\n else if(reply != null && question != null) {\n String name = FacultyDAO.getFacultyName(username);\n System.out.println(\"nameeeeeeeeeeeeeeeeeeeee: \" + name);\n boolean result = FacultyDAO.insertReply(reply, name, question);\n// System.out.println(result+ \"--------\");\n rd = request.getRequestDispatcher(\"ReplyAnswer.jsp\");\n request.setAttribute(\"result\",result);\n }\n else if(queryReply!=null)\n {\n \n ArrayList<String> sub=FacultyDAO.getsubjectonusername(username);\n \n if(!sub.isEmpty()) {\n System.out.println(\"inside sub size\");\n ArrayList<QueryDTO> queryData = FacultyDAO.getQueries(sub);\n System.out.println(queryData);\n request.setAttribute(\"queryData\", queryData);\n rd=request.getRequestDispatcher(\"QueryReply.jsp\");\n }\n \n }\n else if(sem!=null && email!=null)\n {\n int semester=Integer.parseInt(sem);\n System.out.println(\"here reached\");\n String subject=FacultyDAO.getSubject(email,semester);\n request.setAttribute(\"subject\",subject); \n rd = request.getRequestDispatcher(\"ArrayListpdf.jsp\");\n\n }\n else{\n System.out.println(\"reached\");\n FacultyDTO faculty=FacultyDAO.findFaculty(username);\n ArrayList<Integer> semester = FacultyDAO.getSem(username);\n request.setAttribute(\"faculty\",faculty);\n request.setAttribute(\"semester\", semester);\n System.out.println(\"qwertyuio;\");\n \n\n rd = request.getRequestDispatcher(\"FacultyPanel.jsp\");\n } \n }\n catch(Exception e)\n {\n e.printStackTrace();\n request.setAttribute(\"exception\",e);\n rd=request.getRequestDispatcher(\"showexception.jsp\");\n }\n finally\n {\n rd.forward(request,response);\n }\n } \n }\n }", "@PostMapping(\"/goToSendMessagePage\")\r\n public String goToSendMessagePage(@ModelAttribute(\"post\") PostDTO postDTO, Model model) {\r\n model.addAttribute(\"post\", postDTO);\r\n return MESSAGE_PAGE;\r\n }", "public void openCurrentMessage() {\n if (this.currentMessageObject != null) {\n Intent intent = new Intent(ApplicationLoader.applicationContext, LaunchActivity.class);\n long dialogId = this.currentMessageObject.getDialogId();\n if (DialogObject.isEncryptedDialog(dialogId)) {\n intent.putExtra(\"encId\", DialogObject.getEncryptedChatId(dialogId));\n } else if (DialogObject.isUserDialog(dialogId)) {\n intent.putExtra(\"userId\", dialogId);\n } else if (DialogObject.isChatDialog(dialogId)) {\n intent.putExtra(\"chatId\", -dialogId);\n }\n intent.putExtra(\"currentAccount\", this.currentMessageObject.currentAccount);\n intent.setAction(\"com.tmessages.openchat\" + Math.random() + Integer.MAX_VALUE);\n intent.setFlags(32768);\n startActivity(intent);\n onFinish();\n finish();\n }\n }", "private void onReceiveChatMessages() {\n\n//\t\tL.debug(\"onReceiveChatMessages\");\n//\n//\t\t// called from NetworkChangeReceiver whenever the user is logged in\n//\t\t// will always be called whenever there is a change in network state,\n//\t\t// will always check if the app is connected to server,\n//\t\tXMPPConnection connection = XMPPLogic.getInstance().getConnection();\n//\n//\t\tif (connection == null || !connection.isConnected()) {\n//\t\t\tSQLiteHandler db = new SQLiteHandler(getApplicationContext());\n//\t\t\tdb.openToWrite();\n//\n//\t\t\t// db.updateBroadcasting(0);\n//\t\t\t// db.updateBroadcastTicker(0);\n//\n//\t\t\tAccount ac = new Account();\n//\t\t\tac.LogInChatAccount(db.getUsername(), db.getEncryptedPassword(), db.getEmail(), new OnXMPPConnectedListener() {\n//\n//\t\t\t\t@Override\n//\t\t\t\tpublic void onXMPPConnected(XMPPConnection con) {\n//\t\t\t\t\t\n//\t\t\t\t\t//addPacketListener(con);\n//\t\t\t\t}\n//\n//\t\t\t});\n//\n//\t\t\tdb.close();\n//\t\t} else {\n//\n//\t\t\t//addPacketListener(connection);\n//\n//\t\t}\n\t}", "public void processMessage(Chat chat, Message message)\n {\n }", "@Override\n\t\t\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\t\t\tthrows ServletException, IOException {\n\t\t\t\tString method = req.getParameter(\"method\");\n\t\t\t\tif (method != null){\n\t\t\t\t\tif (method.equals(\"show\")){\n\t\t\t\t\t\tint pageNo = 1;\n\t\t\t\t\t\tint pageSize = 6;\n\t\t\t\t\t\tString key = req.getParameter(\"destination\");\n\t\t\t\t\t\tif (key == null || key.equals(\"null\")) key = \"\";\n\t\t\t\t\t\tMap parameters = new HashMap();\n\t\t\t\t\t\tparameters.put(\"destination\", key);\n\t\t\t\t\t\treq.setAttribute(\"destination\", key);\n\t\t\t\t\t\tif (req.getParameter(\"pageNo\") != null){\n\t\t\t\t\t\t\tpageNo = Integer.parseInt(req.getParameter(\"pageNo\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (req.getParameter(\"pageSize\") != null){\n\t\t\t\t\t\t\tpageSize = Integer.parseInt(req.getParameter(\"pageSize\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\treq.setAttribute(\"sp\", md.showMessageService(pageNo, pageSize, parameters));\n\t\t\t\t\t\treq.getRequestDispatcher(\"showMessage.jsp\").forward(req, resp);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tswitch (msg.what) {\n\t\t\t//get category\n\t\t\tcase 0:\n\t\t\t\tThread thread = new Thread() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tsuper.run();\n\t\t\t\t\t\tTakeMyNotesRequest request = new TakeMyNotesRequest(getApplicationContext());\n\t\t\t\t\t\tString result = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresult = request.getCategory();\n\t\t\t\t\t\t} catch (IOException 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} catch (TimeoutException 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}\n\t\t\t\t\t\tif (result == null || result.equals(\"\")) {\n\t\t\t\t\t\t\thandler.sendEmptyMessage(3);\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\ttempModel = new ArrayList<CategoryItem>();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\ttempModel = new Parse().GetCategory(result);\n\t\t\t\t\t\t\t\tApplicationData.SetCategoryList(tempModel);\n\t\t\t\t\t\t\t} catch (JsonSyntaxException e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (tempModel != null) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\tIntent intent = new Intent(SelectRoleActivity.this,\n\t\t\t\t\t\t\t\t\t\tCategoryActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"tempModel\", (Serializable)tempModel);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\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\tthread.start();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tdialog.cancel();\n\t\t\t\tbreak;\n\t\t\t//get user fav list\n\t\t\tcase 2:\n\t\t\t\tThread thread2 = new Thread() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tsuper.run();\n\t\t\t\t\t\tTakeMyNotesRequest request = new TakeMyNotesRequest(getApplicationContext());\n\t\t\t\t\t\tString result = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresult = request.getFavList(ApplicationData.GetUserInforamtion().getIdUsers());\n\t\t\t\t\t\t} catch (IOException 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} catch (TimeoutException 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}\n\t\t\t\t\t\tif (result == null || result.equals(\"\")) {\n\t\t\t\t\t\t\thandler.sendEmptyMessage(3);\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\ttempNote = new ArrayList<Note>();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\ttempNote = new Parse().GetNotesByCategory(result);\n\t\t\t\t\t\t\t} catch (JsonSyntaxException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (tempNote != null) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tIntent intent = new Intent(SelectRoleActivity.this,\n\t\t\t\t\t\t\t\t\t\tUserPanelActivity.class);\n\t\t\t\t\t\t\t\tintent.putExtra(\"notelists\", (Serializable)tempNote);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\thandler.sendEmptyMessage(1);\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\tthread2.start();\n\t\t\t\t\n\t\t\t\tdialog.cancel();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tdialog.cancel();\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "private void individualSend(UserLogic t) {\n if(t != UserLogic.this && t != null && ((String)UI.getContacts().getSelectedValue()).equals(t.username)){\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(username)) { //If both users are directly communicating\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText()); //Send message\r\n t.UI.getContacts().setCellRenderer(clearNotification); //Remove notification\r\n }\r\n else{ //If the user are not directly communicating\r\n t.UI.getContacts().setCellRenderer(setNotification); //Set notification\r\n }\r\n if(t.chats.containsKey(username)){ //Store chats in other users database (When database exists)\r\n ArrayList<String> arrayList = t.chats.get(username); //Get data\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>(); //create new database\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n }\r\n //This writes on my screen\r\n if(t == UserLogic.this && t!=null){ //On the current user side\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText()); //Write message to screen\r\n String currentChat = (String) UI.getContacts().getSelectedValue(); //Get selected user\r\n if(chats.containsKey(currentChat)){ //check if database exists\r\n ArrayList<String> arrayList = chats.get(currentChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n }\r\n }", "private void loadMoreHistoryChat(){\n loadChatHistory(CHAT_LIMIT,headIndex,0);\n }", "public void addGetMessagesListener(XMPPConnection connection){\n\t PacketFilter filter = new MessageTypeFilter(Message.Type.chat);\n connection.addPacketListener(new PacketListener() {\n @Override\n public void processPacket(Packet packet) {\n Message message = (Message) packet;\n if (message.getBody() != null) {\n String fromName = StringUtils.parseBareAddress(message.getFrom());\n Log.i(\"XMPPChatDemoActivity \", \" Text Recieved \" + message.getBody() + \" from \" + fromName);\n messages.add(fromName + \":\");\n messages.add(message.getBody());\n // Add the incoming message to the list view\n mHandler.post(new Runnable() {\n public void run() {\n setListAdapter();\n }\n });\n }\n }\n }, filter);\n }", "public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString select = request.getParameter(\"select\");\n\t\tString value = request.getParameter(\"value\");\n\t HttpSessionContext SessCon= request.getSession(false).getSessionContext(); \n\t\t// HttpSession Sess = SessCon.getSession(SessionId); \n\t\tHttpSession session =request.getSession();\n\t\tCookie []cookie = request.getCookies();\n\t\t\n\t\tif(\"default\".equals(select)){\n\t\t\ttry{\n\t\t\t\tList<Message> list = new MessageDAO().findAll();\n\t\t\t\trequest.setAttribute(\"list\", list);\n\t\t\t\tsession.setAttribute(\"list\", list);\n\t\t\t}catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}else if(\"key\".equals(select)){\n\t\t\ttry{\n\t\t\t\tList<Message> list = new MessageDAO().findById(value);\n\t\t\t\trequest.setAttribute(\"list\", list);\n\t\t\t\tsession.setAttribute(\"list\", list);\n\t\t\t}catch (Exception e) {\n\t\t\t\t// TODO: handle exception \n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\trequest.getRequestDispatcher(\"/index.jsp\").forward(request, response);\n\t}", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case 1:\n //切换到主页面\n allFlipper.setDisplayedChild(1);\n break;\n }\n }", "private void getChatHistory(final int id) {\n String tag_string_req = \"req_chat_history\";\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_Chat_History, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(\"MyTAG\", \"history Response: \" + response.toString());\n\n try {\n JSONObject jObject = new JSONObject(response);\n JSONArray jArray = jObject.getJSONArray(\"messages\");\n\n System.out.println(jObject.toString());\n boolean error = jObject.getBoolean(\"error\");\n // Check for error node in json\n if (!error) {\n\n for(int i=0;i<jArray.length();i++) {\n\n JSONObject s = jArray.getJSONObject(i);//name of object returned from database\n String content = s.getString(\"content\"); //same names of json fields\n int chat_id = s.getInt(\"chat_id\");\n int sender_id = s.getInt(\"sender_id\");\n String time = s.getString(\"send_time\");\n System.err.print(\"chat_id:\" + chat_id + \" +content:\" + content + \" +sender:\" + sender_id + \" +time:\" + time);\n Message m= new Message(chat_id,sender_id,content,time);\n m.setSenderName(parentName);\n Messages.add(m);\n }\n LA = new MessagesAdapter(getApplicationContext(), R.layout.my_message, Messages);\n myList.setAdapter(LA);\n myList.setSelection(LA.getCount() - 1);\n\n } else {\n // Error in login. Get the error message\n String errorMsg = jObject.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(),\n errorMsg+\": response\", Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage()+\"\", Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // Log.e(TAG, \"Login Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage()+\"\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"chat_id\", id+\"\");\n\n return params;\n }\n\n };\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "protected static List prepPage(SessionState state)\n\t{\n\t\tList rv = new Vector();\n\n\t\t// access the page size\n\t\tint pageSize = ((Integer) state.getAttribute(STATE_PAGESIZE)).intValue();\n\n\t\t// cleanup prior prep\n\t\tstate.removeAttribute(STATE_NUM_MESSAGES);\n\n\t\t// are we going next or prev, first or last page?\n\t\tboolean goNextPage = state.getAttribute(STATE_GO_NEXT_PAGE) != null;\n\t\tboolean goPrevPage = state.getAttribute(STATE_GO_PREV_PAGE) != null;\n\t\tboolean goFirstPage = state.getAttribute(STATE_GO_FIRST_PAGE) != null;\n\t\tboolean goLastPage = state.getAttribute(STATE_GO_LAST_PAGE) != null;\n\t\tstate.removeAttribute(STATE_GO_NEXT_PAGE);\n\t\tstate.removeAttribute(STATE_GO_PREV_PAGE);\n\t\tstate.removeAttribute(STATE_GO_FIRST_PAGE);\n\t\tstate.removeAttribute(STATE_GO_LAST_PAGE);\n\n\t\t// are we going next or prev message?\n\t\tboolean goNext = state.getAttribute(STATE_GO_NEXT) != null;\n\t\tboolean goPrev = state.getAttribute(STATE_GO_PREV) != null;\n\t\tstate.removeAttribute(STATE_GO_NEXT);\n\t\tstate.removeAttribute(STATE_GO_PREV);\n\n\t\t// read all channel messages\n\t\tList allMessages = readAllResources(state);\n\n\t\tif (allMessages == null)\n\t\t{\n\t\t\treturn rv;\n\t\t}\n\t\t\n\t\tString messageIdAtTheTopOfThePage = null;\n\t\tObject topMsgId = state.getAttribute(STATE_TOP_PAGE_MESSAGE_ID);\n\t\tif(topMsgId == null)\n\t\t{\n\t\t\t// do nothing\n\t\t}\n\t\telse if(topMsgId instanceof Integer)\n\t\t{\n\t\t\tmessageIdAtTheTopOfThePage = ((Integer) topMsgId).toString();\n\t\t}\n\t\telse if(topMsgId instanceof String)\n\t\t{\n\t\t\tmessageIdAtTheTopOfThePage = (String) topMsgId;\n\t\t}\n\n\t\t// if we have no prev page and do have a top message, then we will stay \"pinned\" to the top\n\t\tboolean pinToTop = (\t(messageIdAtTheTopOfThePage != null)\n\t\t\t\t\t\t\t&&\t(state.getAttribute(STATE_PREV_PAGE_EXISTS) == null)\n\t\t\t\t\t\t\t&&\t!goNextPage && !goPrevPage && !goNext && !goPrev && !goFirstPage && !goLastPage);\n\n\t\t// if we have no next page and do have a top message, then we will stay \"pinned\" to the bottom\n\t\tboolean pinToBottom = (\t(messageIdAtTheTopOfThePage != null)\n\t\t\t\t\t\t\t&&\t(state.getAttribute(STATE_NEXT_PAGE_EXISTS) == null)\n\t\t\t\t\t\t\t&&\t!goNextPage && !goPrevPage && !goNext && !goPrev && !goFirstPage && !goLastPage);\n\n\t\t// how many messages, total\n\t\tint numMessages = allMessages.size();\n\n\t\tif (numMessages == 0)\n\t\t{\n\t\t\treturn rv;\n\t\t}\n\n\t\t// save the number of messges\n\t\tstate.setAttribute(STATE_NUM_MESSAGES, new Integer(numMessages));\n\n\t\t// find the position of the message that is the top first on the page\n\t\tint posStart = 0;\n\t\tif (messageIdAtTheTopOfThePage != null)\n\t\t{\n\t\t\t// find the next page\n\t\t\tposStart = findResourceInList(allMessages, messageIdAtTheTopOfThePage);\n\n\t\t\t// if missing, start at the top\n\t\t\tif (posStart == -1)\n\t\t\t{\n\t\t\t\tposStart = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// if going to the next page, adjust\n\t\tif (goNextPage)\n\t\t{\n\t\t\tposStart += pageSize;\n\t\t}\n\n\t\t// if going to the prev page, adjust\n\t\telse if (goPrevPage)\n\t\t{\n\t\t\tposStart -= pageSize;\n\t\t\tif (posStart < 0) posStart = 0;\n\t\t}\n\t\t\n\t\t// if going to the first page, adjust\n\t\telse if (goFirstPage)\n\t\t{\n\t\t\tposStart = 0;\n\t\t}\n\t\t\n\t\t// if going to the last page, adjust\n\t\telse if (goLastPage)\n\t\t{\n\t\t\tposStart = numMessages - pageSize;\n\t\t\tif (posStart < 0) posStart = 0;\n\t\t}\n\n\t\t// pinning\n\t\tif (pinToTop)\n\t\t{\n\t\t\tposStart = 0;\n\t\t}\n\t\telse if (pinToBottom)\n\t\t{\n\t\t\tposStart = numMessages - pageSize;\n\t\t\tif (posStart < 0) posStart = 0;\n\t\t}\n\n\t\t// get the last page fully displayed\n\t\tif (posStart + pageSize > numMessages)\n\t\t{\n\t\t\tposStart = numMessages - pageSize;\n\t\t\tif (posStart < 0) posStart = 0;\n\t\t}\n\n\t\t// compute the end to a page size, adjusted for the number of messages available\n\t\tint posEnd = posStart + (pageSize-1);\n\t\tif (posEnd >= numMessages) posEnd = numMessages-1;\n\t\tint numMessagesOnThisPage = (posEnd - posStart) + 1;\n\n\t\t// select the messages on this page\n\t\tfor (int i = posStart; i <= posEnd; i++)\n\t\t{\n\t\t\trv.add(allMessages.get(i));\n\t\t}\n\n\t\t// save which message is at the top of the page\n\t\tBrowseItem itemAtTheTopOfThePage = (BrowseItem) allMessages.get(posStart);\n\t\tstate.setAttribute(STATE_TOP_PAGE_MESSAGE_ID, itemAtTheTopOfThePage.getId());\n\t\tstate.setAttribute(STATE_TOP_MESSAGE_INDEX, new Integer(posStart));\n\n\n\t\t// which message starts the next page (if any)\n\t\tint next = posStart + pageSize;\n\t\tif (next < numMessages)\n\t\t{\n\t\t\tstate.setAttribute(STATE_NEXT_PAGE_EXISTS, \"\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstate.removeAttribute(STATE_NEXT_PAGE_EXISTS);\n\t\t}\n\n\t\t// which message ends the prior page (if any)\n\t\tint prev = posStart - 1;\n\t\tif (prev >= 0)\n\t\t{\n\t\t\tstate.setAttribute(STATE_PREV_PAGE_EXISTS, \"\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstate.removeAttribute(STATE_PREV_PAGE_EXISTS);\n\t\t}\n\n\t\tif (state.getAttribute(STATE_VIEW_ID) != null)\n\t\t{\n\t\t\tint viewPos = findResourceInList(allMessages, (String) state.getAttribute(STATE_VIEW_ID));\n\t\n\t\t\t// are we moving to the next message\n\t\t\tif (goNext)\n\t\t\t{\n\t\t\t\t// advance\n\t\t\t\tviewPos++;\n\t\t\t\tif (viewPos >= numMessages) viewPos = numMessages-1;\n\t\t\t}\n\t\n\t\t\t// are we moving to the prev message\n\t\t\tif (goPrev)\n\t\t\t{\n\t\t\t\t// retreat\n\t\t\t\tviewPos--;\n\t\t\t\tif (viewPos < 0) viewPos = 0;\n\t\t\t}\n\t\t\t\n\t\t\t// update the view message\n\t\t\tstate.setAttribute(STATE_VIEW_ID, ((BrowseItem) allMessages.get(viewPos)).getId());\n\t\t\t\n\t\t\t// if the view message is no longer on the current page, adjust the page\n\t\t\t// Note: next time through this will get processed\n\t\t\tif (viewPos < posStart)\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_GO_PREV_PAGE, \"\");\n\t\t\t}\n\t\t\telse if (viewPos > posEnd)\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_GO_NEXT_PAGE, \"\");\n\t\t\t}\n\t\t\t\n\t\t\tif (viewPos > 0)\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_PREV_EXISTS,\"\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate.removeAttribute(STATE_PREV_EXISTS);\n\t\t\t}\n\t\t\t\n\t\t\tif (viewPos < numMessages-1)\n\t\t\t{\n\t\t\t\tstate.setAttribute(STATE_NEXT_EXISTS,\"\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate.removeAttribute(STATE_NEXT_EXISTS);\n\t\t\t}\t\t\t\n\t\t}\n\n\t\treturn rv;\n\n\t}", "private void getChatScreen(Context context, Intent invitation,\n String number, String name) {\n One2OneChat chat = null;\n if (null != number) {\n Participant contact = new Participant(number, name);\n List<Participant> participantList = new ArrayList<Participant>();\n participantList.add(contact);\n chat = (One2OneChat) ModelImpl.getInstance().addChat(\n participantList, null, null);\n if (null != chat) {\n invitation\n .setClass(context, ChatScreenActivity.class);\n invitation.putExtra(ChatScreenActivity.KEY_CHAT_TAG,\n (ParcelUuid) chat.getChatTag());\n } else {\n Logger.e(TAG, \"getChatScreen(), chat is null!\");\n }\n } else {\n Logger.e(TAG,\n \"getChatScreen(), fileSessionSession is null\");\n }\n }", "@Override\n public void handleMessage(Message msg) {\n String turnDirection = (String) msg.obj;\n\n int distance = 0;\n\n // if there are two or more waypoints to go\n if(navigationPath.size()>=2)\n distance = (int) GeoCalulation.getDistance(navigationPath.get(0), navigationPath.get(1));\n\n navigationInstructionDisplay(turnDirection, distance);\n\n }", "@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }", "private void loadMoreRecentChat(){\n loadChatHistory(CHAT_LIMIT,0,tailIndex);\n }", "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String action = request.getParameter(\"action\");\r\n userBean.setSession(request.getSession());\r\n if ((action != null) && (action.equals(\"show\"))) {\r\n String historyid = request.getParameter(\"history\");\r\n String actid = request.getParameter(\"act\");\r\n if (historyid!=null) {\r\n History history = historyBean.getHistory(Integer.valueOf(historyid));\r\n request.setAttribute(\"history\", history);\r\n request.setAttribute(\"timeedit\", HTMLHelper.XMLGregorianCalendarToString(history.getTimeEdit()));\r\n request.setAttribute(\"access\",userBean.isModeratorRights());\r\n request.getRequestDispatcher(\"/act_show.jsp\").forward(request, response);\r\n } else if (actid!=null) {\r\n History history = historyBean.getLastHistoryByActs(Integer.valueOf(actid));\r\n request.setAttribute(\"history\", history);\r\n request.setAttribute(\"timeedit\", HTMLHelper.XMLGregorianCalendarToString(history.getTimeEdit()));\r\n request.setAttribute(\"access\",userBean.isModeratorRights());\r\n request.getRequestDispatcher(\"/act_show.jsp\").forward(request, response);\r\n } else {\r\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\r\n }\r\n } else if ((action != null) && (action.equals(\"create\")) && userBean.isModeratorRights()) {\r\n request.getRequestDispatcher(\"/act_create.jsp\").forward(request, response); \r\n } else if ((action != null) && (action.equals(\"delete\")) && userBean.isModeratorRights()) {\r\n String act = request.getParameter(\"act\");\r\n if (act != null) { \r\n actBean.delete(Integer.valueOf(act));\r\n }\r\n response.sendRedirect(request.getHeader(\"referer\")); \r\n } else if ((action != null) && (action.equals(\"addedition\")) && userBean.isModeratorRights()) {\r\n String _oldhistory = request.getParameter(\"oldhistory\");\r\n String _act = request.getParameter(\"act\");\r\n if (_act==null) {\r\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\r\n }\r\n History oldhistory = null;\r\n if (_oldhistory!=null) {\r\n oldhistory = historyBean.getHistory(Integer.valueOf(_oldhistory));\r\n } else {\r\n oldhistory = historyBean.getLastHistoryByActs(Integer.valueOf(_act));\r\n }\r\n request.setAttribute(\"history\", oldhistory);\r\n request.getRequestDispatcher(\"/act_edit.jsp\").forward(request, response);\r\n }else {\r\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\r\n }\r\n }", "private void updateChat() throws SQLException{\n DBConnect db = DBConnect.getInstance();\n ArrayList<String> messages = db.getChat(selectedCustomer.getChat_id());\n chat.getItems().clear();\n for(String mess :messages){\n chat.getItems().add(mess);\n }\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n loadUsersIntoRequest(request);\n loadStoriesIntoRequest(request);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"/viewaddgame.jsp\");\n dispatcher.forward(request, response);\n }", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String getAllMessages(ModelMap map) {\n\t\tmap.addAttribute(\"messageList\", messageDao.getMessages());\n\t\tmap.addAttribute(\"message\", new Message());\n\t\treturn \"index\";\n\t}", "@Override\n public void onStartConversationSuccessful(StartConversation startConversation) {\n\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n chatFragment = new ChatFragment();\n Bundle bundle = new Bundle();\n bundle.putString(\"id\", startConversation.getConversationId());\n bundle.putString(\"token\", startConversation.getToken());\n chatFragment.setArguments(bundle);\n ft.add(R.id.fl_chatlist, chatFragment);\n ft.commit();\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n response.setContentType(\"text/html;charset=UTF-8\");\r\n String jspClient = null; \r\n String act= request.getParameter(\"action\");\r\n if((act ==null)||(act.equals(\"vide\"))){\r\n \r\n jspClient=\"/Choix.jsp\";\r\n request.setAttribute( \"message\", \"pas d'informations\" );\r\n } \r\n else if (act.equals(\"insererF\")){\r\n jspClient=\"/Choix.jsp\";\r\n doActionInsererF(request,response);\r\n }\r\n /*else if (act.equals(\"insererA\")){\r\n jspClient=\"/Choix.jsp\";\r\n doActionInsererA(request,response);\r\n }\r\n else if (act.equals(\"insererV\")){\r\n jspClient=\"/Choix.jsp\";\r\n doActionInsererV(request,response);\r\n }*/\r\n else if (act.equals(\"creerAF\")){\r\n Collection <Fournisseur> list = sessionFournisseur.tousLesFournisseur();\r\n request.setAttribute(\"listefournisseurs\",list);\r\n jspClient = \"/Fraicheur.jsp\";\r\n //doActionInsererAF(request,response);\r\n }\r\n else if (act.equals(\"creerA\")){\r\n Collection <Fournisseur> list = sessionFournisseur.tousLesFournisseur();\r\n request.setAttribute(\"listefournisseurs\",list);\r\n jspClient = \"/Article.jsp\";\r\n //doActionInsererA(request,response);\r\n }\r\n else if (act.equals(\"creerV\")){\r\n Collection <Fournisseur> list = sessionFournisseur.tousLesFournisseur();\r\n request.setAttribute(\"listefournisseurs\",list);\r\n jspClient = \"/Vetement.jsp\";\r\n //doActionInsererV(request,response);\r\n }\r\n \r\n else if (act.equals(\"docreerV\")){\r\n jspClient = \"/Choix.jsp\";\r\n doActionInsererV(request,response);\r\n }\r\n else if (act.equals(\"docreerA\")){\r\n jspClient = \"/Choix.jsp\";\r\n doActionInsererA(request,response);\r\n }\r\n else if (act.equals(\"docreerAF\")){\r\n jspClient = \"/Choix.jsp\";\r\n doActionInsererAF(request,response);\r\n }\r\n \r\n else if (act.equals(\"afficherF\"))\r\n {\r\n jspClient=\"/AfficherFournisseur.jsp\";\r\n Collection <Fournisseur> list = sessionFournisseur.tousLesFournisseur();\r\n request.setAttribute(\"listefournisseurs\",list);\r\n //request.setAttribute( \"message\", \"Liste des fournisseurs existants\" );\r\n }\r\n else if (act.equals(\"affichertouslesA\"))\r\n {\r\n jspClient=\"/TouslesArt.jsp\";\r\n Collection <Article> list = sessionFournisseur.Touslesart();\r\n request.setAttribute(\"listearticle\",list);\r\n //request.setAttribute( \"message\", \"Liste des fournisseurs existants\" );\r\n }\r\n else if (act.equals(\"afficherA\"))\r\n {\r\n jspClient=\"/AfficherA.jsp\";\r\n String ident = request.getParameter(\"identifiantFournisseur\"); \r\n Long id; \r\n if(ident != null){\r\n id = Long.valueOf(ident);\r\n Collection <Article> list = sessionFournisseur.afficherArticle(id);\r\n request.setAttribute(\"listearticle\",list);\r\n }\r\n \r\n }\r\n else if (act.equals(\"afficherSomme\"))\r\n {\r\n jspClient=\"/SommeFinal.jsp\";\r\n String ident = request.getParameter(\"identifiantFournisseur\"); \r\n Long id; \r\n \r\n if(ident != null){\r\n id = Long.valueOf(ident);\r\n double list = sessionFournisseur.SommePrix(id);\r\n String message = \"la somme de prix est : \" + list; \r\n request.setAttribute(\"message2\", message);\r\n }\r\n }\r\n else if (act.equals(\"saisirIdF\")) {\r\n HttpSession sess = request.getSession(true);\r\n String ident = request.getParameter( \"identifiantFournisseur\" ); \r\n Integer id;\r\n Fournisseur f;\r\n if (!(ident.trim().isEmpty()))\r\n {\r\n id = Integer.valueOf(ident);\r\n f = sessionFournisseur.rechercherFourni(id);\r\n jspClient=\"/Fournisseur2.jsp\";\r\n sess.setAttribute(\"four\", f);\r\n } else {\r\n jspClient=\"/Choix.jsp\";\r\n }\r\n }\r\n\r\n \r\n \r\n RequestDispatcher Rd;\r\n Rd = getServletContext().getRequestDispatcher(jspClient); \r\n Rd.forward(request, response);\r\n \r\n \r\n try (PrintWriter out = response.getWriter()) {\r\n /* TODO output your page here. You may use following sample code. */\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Servlet AccesArticle</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>Servlet AccesArticle at \" + request.getContextPath() + \"</h1>\");\r\n out.println(\"</body>\");\r\n out.println(\"</html>\");\r\n }\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n String url = WELCOME_PAGE;\n \n try { \n HttpSession session = request.getSession(false);\n if (session != null) {\n UserDTO currUser = (UserDTO) session.getAttribute(\"CURRENT_USER\");\n if (currUser != null && currUser.getRole().equals(\"Admin\")) {\n String userID = request.getParameter(\"txtUserID\");\n UsersDAO dao = new UsersDAO();\n UserDTO profileUser = dao.getCurrUserByID(userID); \n if (profileUser != null) {\n log(\"SEE_USER: \" + profileUser.getFullName() + \" - \" + profileUser.getUserID());\n \n UserProfileDAO profileDAO = new UserProfileDAO(); \n UserProfileDTO currProfile = profileDAO.getUserProfileByEmail(profileUser.getEmail());\n \n log(\"SEE_PROFILE: \" + currProfile.getGender() + \" - \" + currProfile.getPhone() + \" - \" + currProfile.getAddress());\n \n session.setAttribute(\"SEE_USER\", profileUser);\n session.setAttribute(\"SEE_PROFILE\", currProfile);\n \n url = RESULT_PAGE;\n }\n }\n }\n } catch (NumberFormatException | NamingException | SQLException ex) {\n url = ERROR_PAGE;\n log(ex.toString());\n } finally {\n response.sendRedirect(url);\n }\n }", "ReadResponseMessage fetchMessagesFromUserToUser(String fromUser, String toUser);", "private void startChatMessageFragment(ArrayList<MyMessage> messages) {\n if (this.selectedBook.getOwnerId().equals(this.userId)) {\n for (MyMessage message : messages) {\n if (!message.getReceiverId().equals(this.userId)) {\n this.receiverId = message.getReceiverId();\n break;\n }\n else if (!message.getSenderId().equals(this.userId)) {\n this.receiverId = message.getSenderId();\n break;\n }\n }\n }\n else {\n this.receiverId = this.selectedBook.getOwnerId();\n }\n\n //if messages is empty\n if (messages.size() == 0) {\n MyMessage message = new MyMessage(\n \" \", \" \", \" \", \" \", \" \", \" \", false );\n\n //if book is sender's book\n if (this.userId.equals(this.selectedBook.getOwnerId())) {\n //set message to message field not to add edittext field\n message.setText(\"MessageEnum.USER_OWNER\");\n }\n\n messages.add(message);\n }\n\n //update application status\n status = StatusEnum.STARTED_CHAT_MESSAGE;\n //hide search from menu\n this.menu.findItem(R.id.menu_search).setVisible(false);\n this.menu.findItem(R.id.add_book).setVisible(false);\n\n //open book view fragment\n //create bundle for fragment\n Bundle data = new Bundle();\n data.putSerializable(\"Messages\", messages);\n // Create new fragment and transaction\n chatMessageFragment = new ChatMessageFragment();\n //set arguments/bundle to fragment\n chatMessageFragment.setArguments(data);\n // consider using Java coding conventions (upper first char class names!!!)\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.activityAfterLoginId, chatMessageFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "public void listAllReview(String message) throws ServletException, IOException {\r\n\t\tList<Review> listReviews = reviewDAO.listAll();\r\n\t\t\r\n\t\trequest.setAttribute(\"listReviews\", listReviews);\r\n\t\t\r\n\t\tif (message != null) {\r\n\t\t\trequest.setAttribute(\"message\", message);\r\n\t\t}\r\n\t\t\r\n\t\tString listPage = \"review_list.jsp\";\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(listPage);\r\n\t\tdispatcher.forward(request, response);\r\n\t\t\r\n\t}", "public void doPost(HttpServletRequest req, HttpServletResponse res)\n\t\t\tthrows ServletException, IOException {\n\t\tThread userSideCheck = new Thread(this);\n\t\t/*\n\t\t * starts thread that determines which users are no longer connected -\n\t\t * removes those users from the list\n\t\t */\n\t\tuserSideCheck.start();\n\t\tString user;\n\t\tString message;\n\t\tString[] receivers, users;\n\t\tint count = 0;\n\t\tStringBuffer out = new StringBuffer(\"\");\n\t\t// get current session\n\t\tHttpSession session = req.getSession(true);\n\n\t\tout\n\t\t\t\t.append(\"<HTML><HEAD><TITLE>Chat form</TITLE></HEAD><BODY BGCOLOR='#FFFFFF'>\");\n\t\t/*\n\t\t * if user session doesn't have a name, and one is provided from form,\n\t\t * well - use it!\n\t\t */\n\t\tif ((session.getValue(\"com.mrstover.name\") == null)\n\t\t\t\t&& ((user = req.getParameter(\"name\")) != null)) {\n\t\t\t// but only if no one else is using that name\n\t\t\tboolean allowed = false;\n\t\t\tint x = 0;\n\t\t\twhile (x < allowedUsers.length)\n\t\t\t\tif (user.equals(allowedUsers[x++]))\n\t\t\t\t\tallowed = true;\n\n\t\t\tif (!checkUserExist(user) && allowed)\n\t\t\t\tsession.putValue(\"com.mrstover.name\", user);\n\t\t\telse\n\t\t\t\tout\n\t\t\t\t\t\t.append(\"A user with that name already exists. Please choose another<P>\");\n\t\t}\n\n\t\t/*\n\t\t * If we know user's name, we have a message, and name is not blank,\n\t\t * then we graciously accept the message and add to our list\n\t\t */\n\t\tif ((session.getValue(\"com.mrstover.name\") != null)\n\t\t\t\t&& ((message = req.getParameter(\"message\")) != null)\n\t\t\t\t&& (!((user = (String) session.getValue(\"com.mrstover.name\"))\n\t\t\t\t\t\t.equals(\"\")))) {\n\t\t\t// adds the user's session to our list of sessions, if necessary\n\t\t\taddUser(user, session);\n\t\t\tif (!message.equals(\"\")) {\n\t\t\t\t// add message and the desired receivers to our list\n\t\t\t\tif ((receivers = req.getParameterValues(\"receivers\")) != null)\n\t\t\t\t\taddMessage(user, message, receivers);\n\t\t\t\telse\n\t\t\t\t\taddMessage(user, message);\n\t\t\t}\n\t\t\t// reprint the message form\n\t\t\tout.append(\"<FORM ACTION='\" + thisServlet + \"' METHOD='POST'>\");\n\t\t\tout.append(\"<CENTER><TABLE>\");\n\t\t\tout\n\t\t\t\t\t.append(\"<TR><TD>Message:<BR> <TEXTAREA NAME='message'\"\n\t\t\t\t\t\t\t+ \" COLS='50' ROWS='2' WRAP='VIRTUAL'></TEXTAREA></TD>\"\n\t\t\t\t\t\t\t+ \"<TD><B>Send to:</B><BR><SELECT NAME='receivers' MULTIPLE><OPTION VALUE='all'>all\");\n\t\t\tusers = getUsers();\n\t\t\t// select box with list of current chat users\n\t\t\twhile (count < users.length) {\n\t\t\t\tout\n\t\t\t\t\t\t.append(\"<OPTION VALUE=\" + users[count] + \">\"\n\t\t\t\t\t\t\t\t+ users[count]);\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t\tout.append(\"</SELECT></TR>\");\n\t\t\tout.append(\"</TABLE>\");\n\t\t\tout.append(\"<INPUT TYPE='SUBMIT' VALUE='SUBMIT'>\");\n\t\t\tout.append(\"</CENTER></FORM></BODY></HTML>\");\n\t\t}\n\t\t// else we need to know who you are first\n\t\telse {\n\t\t\tout.append(\"<FORM ACTION='\" + thisServlet + \"' METHOD='POST'>\");\n\t\t\tout.append(\"<CENTER><TABLE>\");\n\t\t\tout\n\t\t\t\t\t.append(\"<TR><TD>Please Tell me your name: <INPUT TYPE='TEXT' NAME='name' VALUE=''></TD></TR>\");\n\t\t\tout\n\t\t\t\t\t.append(\"<TR><TD>Message:<BR> <TEXTAREA NAME='message'\"\n\t\t\t\t\t\t\t+ \" COLS='50' ROWS='2' WRAP='VIRTUAL'></TEXTAREA></TD></TR>\");\n\t\t\tout.append(\"</TABLE>\");\n\t\t\tout.append(\"<INPUT TYPE='SUBMIT' VALUE='SUBMIT'>\");\n\t\t\tout.append(\"</CENTER></FORM></BODY></HTML>\");\n\t\t}\n\t\toutputToBrowser(res, out.toString());\n\t}", "@GetMapping(\"/profiles/profile/messages\")\n public String getMyProfile(@ModelAttribute Account account) {\n String activeUsername = accountService.getActiveAccount().getUsername();\n return \"redirect:/profiles/\" + activeUsername + \"/messages\";\n }", "public Template handleRequest( HttpServletRequest request, HttpServletResponse response, Context context ) {\n Template template = null;\n context.put(\"apptitle\", \"Ecom Journal - Browse\");\n\t response.setContentType(\"text/html\");\n\t \n\t //create ContactModel object\n ContactModel contactModel = new ContactModel();\n\n try {\n\t\t\n \t\tString action = request.getParameter(\"action\");\n \t\tString messageID = request.getParameter(\"messageID\");\n \t\tString answer = request.getParameter(\"answer\");\n\n\n\t\tif (messageID != null) {\n\t\t\t\n\t\t\tString alerMessage = null;\n\t boolean status = false;\n\t\t\t\n\t \tif (action.contains(\"reply\")) {\n\t \t\tstatus = contactModel.setAnswer(messageID, answer);\n\t \t\talerMessage = \"Answer has been updated\";\n\n\t \t} else if (action.contains(\"remove\")) { \n\t \t\tstatus = contactModel.deleteMessage(messageID);\n\t \t\talerMessage = \"Letter has been deleted\";\n\t \t\t\n\t \t} else if (action.contains(\"accept\")) {\n\t \t\tstatus = contactModel.updateMessage(messageID);\n\t\t\t\talerMessage = \"Letter has been published\";\n\t \t}\n\t \t\n\t \tif (status) {\n\t \t\tcontext.put(\"successfully\", alerMessage);\n\t \t} else {\n\t\t\t\tcontext.put(\"error\", \"Something wrong with your request\");\n\t \t}\n\t \t\n\t\t}\n\t\t\n\t\tcontext.put(\"Messages\", contactModel.getUnpublishMessages());\n\t\t\n \n template = getTemplate(\"/pages/message.vm\"); \n \n } catch(Exception e ) {\n System.out.println(\"Error \" + e);\n }\n return template;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_messages, container, false);\n\n mConversationsRecycler = (RecyclerView) view.findViewById(R.id.messages_recycler);\n mConversationAdapter = new ConversationAdapter();\n mConversationAdapter.setOnItemClickListener(new OnItemClickListener() {\n @Override\n public void onClick(View v, int position) {\n Conversation conversation = mConversations.get(position);\n Toast.makeText(getActivity(), \"You want to chat with: \" + mConversations.get(position).getUserInfo().getUserId(), Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getActivity(), ChatActivity.class);\n intent.putExtra(\"friend_name\", conversation.getUserInfo().getUserId());\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n\n }\n });\n mLayoutManager = new LinearLayoutManager(getActivity());\n mConversationsRecycler.setLayoutManager(mLayoutManager);\n mConversationsRecycler.setAdapter(mConversationAdapter);\n\n mConversationAdapter.updateUserInfo(mConversations);\n return view;\n }", "public void clickMessagesTabInSocialPanel() throws UIAutomationException{\r\n\t\r\n\t\telementController.requireElementSmart(fileName,\"Messages In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Messages In Social Panel\");\r\n\t\tUIActions.click(fileName,\"Messages In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Messages In Social Panel\");\r\n\t\telementController.requireElementSmart(fileName,\"Messages In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Messages In Social Panel\");\r\n\t\tString tabTextInPage=UIActions.getText(fileName,\"Messages In Social Panel\",GlobalVariables.configuration.getAttrSearchList(), \"Messages In Social Panel\");\r\n\t\tString tabTextInXML=dataController.getPageDataElements(fileName,\"Messages Tab Text\" , \"Name\");\r\n\t\tif(!tabTextInPage.contains(tabTextInXML)){\r\n\t\t\tthrow new UIAutomationException( \"'\"+tabTextInXML +\"' not found\");\r\n\t\t}\r\n\t\tUIActions.getText(fileName, \"Messages Tab Text\", GlobalVariables.configuration.getAttrSearchList(), \"Messages Tab Text\");\r\n\t\r\n\t}", "@RequestMapping(\"/messages\")\n public Map<String, List<String>> messages(@RequestParam(value=\"chatterId\", defaultValue=\"\") String chatterId) {\n try {\n Map<String, List<String>> messages = new HashMap<String, List<String>>();\n for (int i = 0; i < 5; i++) {\n int chooseBase = (int) (Math.random()*999);\n int position = chooseBase % this.friendsList.size();\n FriendInfo friend = this.friendsList.get(position);\n List<String> messagesFromFriend = messages.get(friend.getId());\n if (messagesFromFriend != null) {\n messagesFromFriend.add(\"I am fine, thank you. \"+ chatterId);\n }\n else {\n messagesFromFriend = new ArrayList<String>();\n messagesFromFriend.add(\"I have seen you yesterday in Botany downs.\");\n messages.put(friend.getId(), messagesFromFriend);\n }\n }\n return messages;\n }\n catch (Exception e) {\n return null;\n }\n }", "public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }", "@RequestMapping(\"/reply\")\n\tpublic String reply(HttpServletRequest request, Model model) {\n\t\tdao.reply(request.getParameter(\"bId\"), \n\t\t\t\trequest.getParameter(\"bName\"), \n\t\t\t\trequest.getParameter(\"bTitle\"), \n\t\t\t\trequest.getParameter(\"bContent\"),\n\t\t\t\trequest.getParameter(\"bGroup\"), \n\t\t\t\trequest.getParameter(\"bStep\"), \n\t\t\t\trequest.getParameter(\"bIndent\"));\n\t\treturn \"redirect:list\";\n\t}", "public void receiveChatClosure() {\n\t\t\r\n\t\tString message = \"Chat request details\";\r\n\t\t\r\n\t\t//Notify the chat request details to the GUI\r\n\t\tthis.observable.notifyObservers(message);\r\n\t}", "@GetMapping(\"/msgbox/get/{username}\")\n\tIterable<msgbox> getMsgs(@PathVariable String username){\n\t\treturn this.getUserMsgs(username);\n\t}", "@RequestMapping(value = \"/timeline\", method = RequestMethod.GET)\r\n\tpublic String timeline(@ModelAttribute User user, Model model) throws SQLException {\r\n\t\t// get database connection\r\n\t\tClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\"); \r\n //Get the Bean from spring.xml\r\n TimelineDAO tlDao = ctx.getBean(\"timelineDao\", TimelineDAO.class);\r\n Timeline tl = new Timeline();\n tl = tlDao.findUserTimeline(user.getUserID());\n model.addAttribute(\"timeline\", new Timeline());\r\n model.addAttribute(\"timelineContent\",tl.getContent());\r\n model.addAttribute(\"username\",tl.getUserID());\r\n \r\n // get all public messages of user\r\n MessageDAO messageDao = ctx.getBean(\"messageDao\", MessageDAO.class);\r\n List<Message> msgList = messageDao.getToMessages(user.getUserID());\r\n model.addAttribute(\"msgList\",msgList);\r\n\t\treturn \"timeline\";\t\t\r\n\t}", "@RequestMapping(value=\"/league/results\", method = RequestMethod.GET)\n\tpublic String navigateToPage(UserSubscription subscription) {\n\t\t\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"Rendering results view of league with code: {} for user ID: {}\",\n\t\t\t\t\t\t subscription.getLeague().getCode(),\n\t\t\t\t\t\t subscription.getUser().getId());\n\t\t}\n\t\t\n\t\treturn \"allResults\";\n\t}", "@Override\r\n\t\t\tpublic void onChat(String message) {\n\r\n\t\t\t}", "private void handleTextContent(String replyToken, Event event, TextMessageContent content)\n throws Exception {\n\t\t\n\t\tString text = content.getText();\n\n\t\tMessage response;\n\t\tList<Message> messages = new ArrayList<Message>();\n\t\tlog.info(\"Got text message from {}: {}\", replyToken, text);\n\t\t\n\t\tListSingleton singleton = ListSingleton.getInstance();\n\t\tindex = singleton.initiate(event.getSource().getUserId());\n\t\tcategories = singleton.getCategories();\n\t\tprofile = singleton.getProfile();\n\t\tmenu = singleton.getMenu();\n\t\t\n//\t\tint index = -1;\n//\t\tfor(int i=0;i<userList.size();i++) {\n//\t\t\tif(userList.get(i).equals(event.getSource().getUserId())) {\n//\t\t\t\tindex = i;\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t}\n//\t\tif(index == -1) {\n//\t\t\tcategories = null;\n//\t\t\tprofile = null;\n//\t\t\tmenu = null;\n//\t\t\tindex = userList.size();\n//\t\t\tuserList.add(event.getSource().getUserId());\n//\t\t\tcatList.add(categories);\n//\t\t\tprofList.add(profile);\n//\t\t\tmenuList.add(menu);\n//\t\t}\n//\t\telse {\n//\t\t\tcategories = catList.get(index);\n//\t\t\tprofile = profList.get(index);\n//\t\t\tmenu = menuList.get(index);\n//\t\t}\n\t\t\n\t\tif (categories == null) {\t\t\n\t\t\tuser.addUser(event.getSource().getUserId());\n\t\t\tmessages.add(mainMenuMessage);\n\t\t\tmessages.add(getMenuTemplate());\n\t\t\tthis.reply(replyToken, messages); \n\t\t\tcategories = Categories.MAIN_MENU;\n\t\t}\n\t\telse {\n\t\t\tswitch (categories) {\n\t\t \t\tcase MAIN_MENU:\n\t\t \t\t\tresponse = new TextMessage(handleMainMenu(text, event));\n\t\t \t\t\tmessages.add(response);\n\t\t \t\t\tif (categories == Categories.MAIN_MENU) {\n\t\t \t\t\t\tmessages.add(getMenuTemplate());\n\t\t \t\t\t}\n\t\t \t\t\tthis.reply(replyToken, messages);\n\t\t \t\t\tbreak;\n\t\t \t\tcase PROFILE:\n\t\t \t\t\tString responseText = handleProfile(replyToken, text, event);\n\t\t \t\t\tif(!responseText.equals(\"\")) {\n\t\t\t \t\t\tresponse = new TextMessage(responseText);\n\t\t\t \t\t\tmessages.add(response);\n\t\t \t\t\t}\n\t\t \t\t\tif (categories == Categories.MAIN_MENU) {\n\t\t \t\t\t\tmessages.add(getMenuTemplate());\n\t\t \t\t\t}\n\t\t \t\t\tif(messages.size()!=0) {\n\t\t\t \t\t\tthis.reply(replyToken, messages);\n\t\t \t\t\t}\n\t\t \t\t\tbreak;\n\t\t \t\tcase FOOD:\n\t\t \t\t\tresponse = new TextMessage(handleFood(text));\n\t\t \t\t\tmessages.add(response);\n\t\t \t\t\tif (categories == Categories.MAIN_MENU) {\n\t\t \t\t\t\tmessages.add(getMenuTemplate());\n\t\t \t\t\t}\n\t\t \t\t\tthis.reply(replyToken, messages);\t \t\t\t\n\t\t \t\t\tbreak;\n\t\t \t\tcase MENU:\n\t\t \t\t\tresponse = new TextMessage(handleMenu(text, event));\n\t\t \t\t\tmessages.add(response);\n\t\t \t\t\tif (categories == Categories.MAIN_MENU) {\n\t\t \t\t\t\tmessages.add(getMenuTemplate());\n\t\t \t\t\t}\n\t\t \t\t\tthis.reply(replyToken, messages);\n\t\t \t\t\tbreak;\n\t\t \t\tcase CODE:\n\t\t \t\t\tString res = handleCode(text, event);\n\t\t \t\t\tbreak; \n\t\t \t\tcase CAMPAIGN:\n\t\t \t\t\tthis.replyText(replyToken, \"Please upload the coupon image.\");\n\t\t \t\t\tbreak;\n\t\t \t\tcase INIT:\n\t\t \t\t\tthis.handleInit();\n\t\t \t\t\tthis.replyText(replyToken, \"Database initialized.\");\n\t\t \t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsingleton.setValues(index, categories, profile, menu);\n }", "private void loadChatHistory(int limit, int beforeID, int afterID){\n Log.d(TAG,\"load chat. limit:\" + limit + \",beforeID:\" + beforeID + \",afterID:\" + afterID);\n RequestAction actionGetChat = new RequestAction() {\n @Override\n public void actOnPre() {\n isLoading = true;\n pb_loadChat.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void actOnPost(int responseCode, String response) {\n if ( responseCode == 200 ) {\n try {\n JSONObject jsonObject = new JSONObject(response);\n JSONArray jsonArray = jsonObject.getJSONArray(Constant.TABLE_CHAT);\n if ( jsonArray.length() == 0 ) {\n Log.d(TAG,\"All Chats loaded\");\n isAllLoaded = true;\n }\n Chat[] chats = new Chat[jsonArray.length()];\n for ( int i = 0; i < jsonArray.length(); i++ ) {\n JSONObject json = jsonArray.getJSONObject(i);\n JSONObject jsonChat = json.getJSONObject(Constant.TABLE_CHAT);\n int id = jsonChat.getInt(Constant.CHAT_ID);\n int tournamentID, clubID, receiverID, senderID;\n try {\n tournamentID = jsonChat.getInt(Constant.CHAT_TOURNAMENT_ID);\n } catch (JSONException e) {\n tournamentID = 0;\n }\n try {\n clubID = jsonChat.getInt(Constant.CHAT_CLUB_ID);\n } catch (JSONException e) {\n clubID = 0;\n }\n try {\n receiverID = jsonChat.getInt(Constant.CHAT_RECEIVER_ID);\n } catch (JSONException e) {\n receiverID = 0;\n }\n senderID = jsonChat.getInt(Constant.CHAT_SENDER_ID);\n String messageType = jsonChat.getString(Constant.CHAT_MESSAGE_TYPE);\n String messageContent = jsonChat.getString(Constant.CHAT_MESSAGE_CONTENT);\n String time = jsonChat.getString(Constant.CHAT_TIME);\n String senderName = json.getString(Constant.CHAT_SENDER_NAME);\n chats[i] = new Chat(id,tournamentID,clubID,receiverID,senderID,\n senderName,messageType,messageContent,time);\n }\n addToChatList(chats);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n isLoading = false;\n pb_loadChat.setVisibility(View.GONE);\n }\n };\n String url = UrlHelper.urlChat(tournamentID,clubID,receiverID,selfID,limit,beforeID,afterID);\n RequestHelper.sendGetRequest(url,actionGetChat);\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\t//This Attribute holds the Path of the referring page.\n\t\tString referer = request.getHeader(\"referer\");\n\t\t\n\t\t//This If statement uses the referring webpage to distinguish which subsequent action should be executed.\n\t\tif(referer.contains(\"index.jsp\")) {\n\t\t\t\n\t\t\t//referer: index.jsp\n\t\t\t\n\t\t\tif(request.getParameter(\"singleplayer\") != null) {\t\t\t\t\t\t\t\t//The player clicked on the button \"singleplayer\".\n\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/playerMenu.jsp\");\t//The player will be redirected to playerMenu.jsp.\n\t\t\t\t\n\t\t\t} else if(request.getParameter(\"multiplayer\") != null) {\t\t\t\t\t\t//The player clicked on the button \"multiplayer\".\n\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/Multiplayer.jsp\");\t//The player will be redirected to Multiplayer.jsp.\n\t\t\t\t\n\t\t\t} else if(request.getParameter(\"settings\") != null) {\t\t\t\t\t\t\t//The player clicked on the button \"settings\".\n\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/Settings.jsp\");\t\t//The player will be redirected to Settings.jsp.\n\t\t\t\t\n\t\t\t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//This is the default case.\n\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/index.jsp\");\t\t\t//The player will be redirected to index.jsp.\n\t\t\t}\n\t\t\t\n\t\t} else if(referer.contains(\"playerMenu.jsp\")) {\n\t\t\t\n\t\t\t//referer: playerMenu.jsp\n\t\t\t\n\t\t\t//The attribute g is set to a new Instance of GameBean when accessing the playerMenu.jsp.\n\t\t\tg = (GameBean) request.getSession().getAttribute(\"g\");\n\t\t\t\n\t\t\t//Checking the request-parameter \"Username\" for the invalid value \"Com\".\n\t\t\tif(request.getParameter(\"Username\").equals(\"AI\")) {\n\t\t\t\tSystem.out.println(\"Your not allowed to name yourself 'AI'.\");\t\t\t\t//Showing the Error on console -------------------------------------------------------------------------------------------------------------------------------\n\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/playerMenu.jsp\");\t//if an invalid Username was given, the user will be redirected to the playerMenu.jsp.\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t//Setting the Players name-attribute in the GameBean g according to the chosen team.\n\t\t\t\tif(request.getParameter(\"PlayerColor\").equals(\"Weiß\")) {\n\t\t\t\t\tg.getWhite().setName(request.getParameter(\"Username\"));\n\t\t\t\t\tg.setBlack(new AI(TeamType.BLACK));\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tg.getBlack().setName(request.getParameter(\"Username\"));\n\t\t\t\t\tg.setWhite(new AI(TeamType.WHITE));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Redirect to the board.jsp if all request-parameters are valid. \n\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/board.jsp\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\n\t\t} else if(referer.contains(\"board.jsp\")) {\n\t\t\t\n\t\t\t//referer: board.jsp\n\t\t\t\n\t\t\t//The variable player saves the Player-objcet which holds the non-computer-player.\n\t\t\tPlayer player = (g.getBlack().getName().equals(\"AI\")) ? g.getWhite() : g.getBlack();\n\t \n\t\t\t//Processing the request-parameters. This is the information of which turns were made.\n\t //This is the originating position of a figure on the gameboard or in the prison.\n\t\t\tVector2 hitter = new Vector2(letterToXOrdinate(request.getParameter(\"Xh\").charAt(0)), Integer.parseInt(request.getParameter(\"Yh\")));\n\t \n\t\t\t//This is the resulting position on the gameboard.\n\t\t\tVector2 target = new Vector2(letterToXOrdinate(request.getParameter(\"Xt\").charAt(0)), Integer.parseInt(request.getParameter(\"Yt\")));\n\t \n\t\t\t//This Vector shows which figure has to be upgraded or downgraded.\n\t\t\tString x = String.valueOf(request.getParameter(\"Xc\").charAt(0));\n\t\t\tString y = request.getParameter(\"Yc\");\n\t\t\tif((!x.equals(\"\") && !y.equals(\"\")) || (!x.equals(\"Z\") && !y.equals(\"-1\"))) {\n\t\t\t\t\n\t\t\t\tVector2 upgrade = new Vector2(letterToXOrdinate(x.charAt(0)), Integer.parseInt(y));\n\t\t\t\t\n\t\t\t\t//The player wants to upgrade a figure.\n\t\t\t\t//Proove if the figure is in the gameboard (-1 < x,y < 10) and than change type.\n\t\t\t\tif(upgrade.getX() >= 0 && upgrade.getY() >= 0 && upgrade.getX() < 10 && upgrade.getY() < 10) {\n\t\t\t\t\n\t\t\t\t\t//Proove if the figure that is moved belongs to the non-Com-player.\n\t\t\t\t\tif(g.getBoard().getBoard()[upgrade.getX()][upgrade.getY()].getTeam().equals(player.getTeam())) {\n\t\t \t\tg.getBoard().getBoard()[upgrade.getX()][upgrade.getY()].changeType();\n\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\t\n\t\t\t//The player wants to move a figure on the gameboard or from the prison into the gameboard. \n\t\t\t//Prooves if the originating position is in the board.\n\t\t\tif(hitter.getX() >= 0 && hitter.getY() >= 0 && hitter.getX() < 10 && hitter.getY() < 10) {\n\t\t\t\t\n\t\t\t\t//Prooves if there is a valid figure at the chosen position.\n\t\t\t\tif(g.getBoard().getBoard()[hitter.getX()][hitter.getY()] != null) {\n\t\t\t\t\t\n\t\t\t\t\t//Prooves if the hitter-figure belongs to the non-Com-player.\n\t\t\t\t\tif(g.getBoard().getBoard()[hitter.getX()][hitter.getY()].getTeam().equals(player.getTeam())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Prooves if the targeting position is in the board.\n\t\t\t\t\t\tif(target.getX() >= 0 && target.getY() >= 0 && target.getX() < 10 && target.getY() < 10) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Prooves if the target-figure doesn't belong to the non-Com-player.\n\t\t\t\t\t\t\tif(g.getBoard().getBoard()[target.getX()][target.getY()] == null || !g.getBoard().getBoard()[target.getX()][target.getY()].getTeam().equals(player.getTeam())) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//Prooves if the target is accessible for the figure on the hitter-position.\n\t\t\t\t\t\t\t//\tif(g.getBoard().getPossibleTurnsFor(hitter).contains(target)) {\n\t\t\t\t \t\t\t\n\t\t\t\t\t\t\t\t\t//Move the figure from target to hitter\n\t\t\t\t \t\t\tg.getBoard().moveOnBoard(hitter, target);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t//Checks if a Team is chackMate \n\t\t\t\t\t \t\tif(g.getBoard().isCheckMate(g.getBlack().getTeam())) {\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t \t\t\t//Checks which player has won.\n\t\t\t\t\t \t\t\tif (g.getBlack().getName() == \"AI\") {\n\t\t\t\t\t\t\t\t\t\t\t//The non-Com-player has won. Redirect to Win.jsp.\n\t\t\t\t\t \t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/Win.jsp\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//The non-Com-player has lost. Redirect to Lost.jsp.\n\t\t\t\t\t\t\t\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/Lose.jsp\");\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t \t\t\t\n\t\t\t\t\t\t\t\t\t} else if(g.getBoard().isCheckMate(g.getWhite().getTeam())) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//Checks which player has won.\n\t\t\t\t\t\t\t\t\t\tif (g.getWhite().getName() == \"AI\") {\n\t\t\t\t\t\t\t\t\t\t\t//The non-Com-player has won. Redirect to Win.jsp.\n\t\t\t\t\t\t\t\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/Win.jsp\");\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//The non-Com-player has lost. Redirect to Lost.jsp.\n\t\t\t\t\t\t\t\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/Lose.jsp\");\n\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//If no team is chackMate:\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t//Do a random Move for the Com-player after the non-Com-Player did one.\n\t\t\t\t\t\t\t\t\t\t//Get the Player-object of the Com-player.\n\t\t\t\t\t\t\t\t\t\tPlayer com = (g.getBlack().getName().equals(\"AI\")) ? g.getBlack() : g.getWhite();\n\n\t\t\t\t\t\t\t\t\t\t//Gets a random figure of the Com-players team\n\t\t\t\t\t\t\t\t\t\tArrayList<Vector2> hitters = FigureSelector.selectAliveEnemyTeam(g.getBoard().getBoard(), player.getTeam());\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\thitter = hitters.get(new Random().nextInt(hitters.size() - 1));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//Does a random move with the random figure. \n\t\t\t\t\t\t\t\t\t\tg.getBoard().moveOnBoard(hitter, com.getTurn(hitter, g.getBoard()));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//Increment the round-counter\n\t\t\t\t\t\t\t\t\t\tg.setRound(1);\n\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\n\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t//\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t//If the originating position is below 0, the absolute amount is the index of the figure in a prison.\t\n \t} else {\n \t\t\n \t\t//Get the given figure from the non-Com-players prison.\n \t\t\n\t\t\t\tint index = 0;\n \t\t\n\t\t\t\tif(hitter.getX() == -1) {\n\t\t\t\t\t\n\t\t\t\t\tif (target.getY() == -1){\n\t\t\t\t\t\tindex = (player.getTeam().equals(TeamType.BLACK)) ? g.getBoard().getBlackPrison().lastIndexOf(Figure.getBishop(TeamType.BLACK)) : g.getBoard().getWhitePrison().lastIndexOf(Figure.getBishop(TeamType.WHITE));\n\t\t\t \t} else if(target.getY() == -2){\n\t\t\t \t\tindex = (player.getTeam().equals(TeamType.BLACK)) ? g.getBoard().getBlackPrison().lastIndexOf(Figure.getTower(TeamType.BLACK)) : g.getBoard().getWhitePrison().lastIndexOf(Figure.getTower(TeamType.WHITE));\n\t\t\t \t} else if(target.getY() == -3){\n\t\t\t \t\tindex = (player.getTeam().equals(TeamType.BLACK)) ? g.getBoard().getBlackPrison().lastIndexOf(Figure.getGoldenGeneral(TeamType.BLACK)) : g.getBoard().getWhitePrison().lastIndexOf(Figure.getGoldenGeneral(TeamType.WHITE));\n\t\t\t \t} else if(target.getY() == -4){\n\t\t\t \t\tindex = (player.getTeam().equals(TeamType.BLACK)) ? g.getBoard().getBlackPrison().lastIndexOf(Figure.getSilverGeneral(TeamType.BLACK)) : g.getBoard().getWhitePrison().lastIndexOf(Figure.getSilverGeneral(TeamType.WHITE));\n\t\t\t \t} else if(target.getY() == -5){\n\t\t\t \t\tindex = (player.getTeam().equals(TeamType.BLACK)) ? g.getBoard().getBlackPrison().lastIndexOf(Figure.getKnight(TeamType.BLACK)) : g.getBoard().getWhitePrison().lastIndexOf(Figure.getKnight(TeamType.WHITE));\n\t\t\t \t} else if(target.getY() == -6){\n\t\t\t \t\tindex = (player.getTeam().equals(TeamType.BLACK)) ? g.getBoard().getBlackPrison().lastIndexOf(Figure.getPawn(TeamType.BLACK)) : g.getBoard().getWhitePrison().lastIndexOf(Figure.getPawn(TeamType.WHITE));\n\t\t\t \t} else if(target.getY() == -7){\n\t\t\t \t\tindex = (player.getTeam().equals(TeamType.BLACK)) ? g.getBoard().getBlackPrison().lastIndexOf(Figure.getLance(TeamType.BLACK)) : g.getBoard().getWhitePrison().lastIndexOf(Figure.getLance(TeamType.WHITE));\n\t\t\t \t} \n\n\t\t\t\t\tFigure f = null;\n\t\t\t\t\tif(player.getTeam().equals(TeamType.BLACK)) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(g.getBoard().getBlackPrison().size() > 0) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tf = g.getBoard().getBlackPrison().get(index);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(g.getBoard().getWhitePrison().size() > 0) {\n\t\t\t\t\t\n\t\t\t\t\t\t\tf = g.getBoard().getWhitePrison().get(index);\n\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(f != null) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Prooves if the given traget is on the gameboard.\n\t\t\t\t\t\tif(target.getX() >= 0 && target.getY() >= 0 && target.getX() < 10 && target.getY() < 10) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Prooves if the given target has no figure on it.\n\t\t\t\t\t\t\tif(g.getBoard().getBoard()[target.getX()][target.getY()].getType().equals(FigureType.UNDEFINED)) {\n\t\t\t \t\t\t\n\t\t\t\t\t\t\t\t//Prooves if the move would directly check the Com-Player\n\t\t\t\t\t\t\t\tif(!g.getBoard().causesCheck(target, f)) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Place the figure on the target.\n\t\t\t\t\t\t\t\t\tg.getBoard().getBoard()[target.getX()][target.getY()] = f;\n\t\t\t\t \t\t\t\n\t\t\t\t\t\t\t\t\t//Increment the round-counter\n\t\t\t\t \t\t\tg.setRound(1);\n\t\t\t\t \t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t \t\t}\n\t\t\t\t\t\t\t\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\t\n \t}\n\t\t\t\n\t\t\t//Redirect to the board.jsp.\n\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/board.jsp\");\n\t\t\t\n\t\t} else if(referer.contains(\"Win.jsp\") | referer.contains(\"Lose.jsp\")) {\n\t\t\t\n\t\t\t//referer: Win.jsp or Lose.jsp\n\t\t\t\n\t\t\tif(request.getParameter(\"playAgain\") != null) {\t\t\t\t\t\t\t\t\t//The Player pressed the button \"playAgain\".\t\n\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/playerMenu.jsp\");\t//The player will be redirected to playerMenu.jsp.\n\t\t\t\t\n\t\t\t} if(request.getParameter(\"startPage\") != null) {\t\t\t\t\t\t\t\t//The Player pressed the button \"startpage\".\n\t\t\t\tresponse.sendRedirect(request.getContextPath() + \"/jsp/index.jsp\");\t\t\t//The player will be redirected to index.jsp.\n\t\t\t}\n\t\t\t\n\t\t}\n\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}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n request.setAttribute(\"subjects\", this.subjectBean.findAllSorted());\n\n // Anfrage an dazugerhörige JSP weiterleiten\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"/WEB-INF/offers/subject_list.jsp\");\n dispatcher.forward(request, response);\n\n // Alte Formulardaten aus der Session entfernen\n HttpSession session = request.getSession();\n session.removeAttribute(\"categories_form\");\n }", "public void chat_list() {\n\n synchronized(chat_room) {\n Set chat_room_set = chat_room.keySet();\n Iterator iter = chat_room_set.iterator();\n\n clearScreen(client_PW);\n client_PW.println(\"------------Chat Room List-----------\");\n while(iter.hasNext()) {\n client_PW.println(iter.next());\n }\n client_PW.flush();\n }\n }", "@Override\n public void onOpenChat(int theChatId) {\n if (theChatId == -1) {\n loadFragment(new StartChatFragment());\n } else {\n Intent intent = new Intent(this, ChatActivity.class);\n intent.putExtra(\"CHAT_ID\", String.valueOf(theChatId));\n startActivity(intent);\n }\n }", "@RequestMapping(value=\"admin/messages\", method=RequestMethod.GET)\n public String showUserRequestedMessages(Model model){\n \n return \"admin/specialrequestmessages\";\n }" ]
[ "0.61227816", "0.57119936", "0.5710187", "0.5661057", "0.5563453", "0.53556937", "0.5337099", "0.53344274", "0.5281276", "0.527981", "0.5269079", "0.5265515", "0.525285", "0.52480793", "0.5240557", "0.52051586", "0.51910627", "0.51763344", "0.5176321", "0.51686263", "0.5144555", "0.5110239", "0.5092613", "0.508245", "0.5074791", "0.5074329", "0.50639737", "0.506271", "0.50625265", "0.50449294", "0.50345916", "0.50314456", "0.5023368", "0.50196224", "0.50177526", "0.50175774", "0.5014222", "0.500409", "0.5000323", "0.499705", "0.49964702", "0.49959102", "0.49728876", "0.4972174", "0.49594623", "0.49489886", "0.49405813", "0.49360836", "0.4932126", "0.49307376", "0.49225214", "0.49184194", "0.4918071", "0.49150229", "0.49113235", "0.4910905", "0.4907681", "0.489565", "0.48797047", "0.4873233", "0.48677886", "0.4859438", "0.4859118", "0.4857332", "0.4855385", "0.4848512", "0.48416883", "0.4841047", "0.48171714", "0.48160347", "0.48150662", "0.48133984", "0.4812117", "0.48117533", "0.4808352", "0.48061413", "0.48056602", "0.4805537", "0.48002663", "0.47901824", "0.47888717", "0.47866863", "0.47857544", "0.47856325", "0.47825554", "0.4779944", "0.4775493", "0.4771701", "0.47707683", "0.4755612", "0.4755377", "0.47521353", "0.4751704", "0.47443983", "0.47391185", "0.47378588", "0.47370046", "0.4719003", "0.4717767", "0.4715983" ]
0.7611056
0
Converts message string into ArrayList of meaningful tokens.
public ArrayList<String> tokenizeMessage(String cleanedMessageContent, List<Character> validCharFlags, List<String> validStrFlags, List<String> linkPrefix){ ArrayList<String> tokenizedMessageContent = new ArrayList(); int cleanedMessageLength = cleanedMessageContent.length(); for (int i = 0; i < cleanedMessageLength; i++) { if (validCharFlags.contains(cleanedMessageContent.charAt(i))){ if (i+1 < cleanedMessageLength && validStrFlags.contains("" + cleanedMessageContent.charAt(i) + cleanedMessageContent.charAt(i+1))){ tokenizedMessageContent.add("" + cleanedMessageContent.charAt(i) + cleanedMessageContent.charAt(i)); i++; } else{ tokenizedMessageContent.add(""+cleanedMessageContent.charAt(i)); } } else{ boolean inLink = false; for (String prefix: linkPrefix){ if(i + prefix.length() < cleanedMessageLength && prefix.equals(cleanedMessageContent.substring(i, i+prefix.length()))) { tokenizedMessageContent.add(prefix); i += prefix.length()-1; inLink = true; } } if(!inLink){ tokenizedMessageContent.add(""+cleanedMessageContent.charAt(i)); } } } return tokenizedMessageContent; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ArrayList<String> tokeniseString(String string) {\n ArrayList<String> tokens = new ArrayList<>();\n\n // Regex that tokenises based on the rules of the assignment\n String regex = \"(https?:\\\\/\\\\/[^\\\\s]+)|((www)?[^\\\\s]+\\\\.[^\\\\s]+)|(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\\\"(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21\\\\x23-\\\\x5b\\\\x5d-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])*\\\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\\\x01-\\\\x08\\\\x0b\\\\x0c\\\\x0e-\\\\x1f\\\\x21-\\\\x5a\\\\x53-\\\\x7f]|\\\\\\\\[\\\\x01-\\\\x09\\\\x0b\\\\x0c\\\\x0e-\\\\x7f])+)\\\\])|([A-Z][a-zA-Z0-9-]*)([\\\\s][A-Z][a-zA-Z0-9-]*)+|(?:^|\\\\s)'([^']*?)'(?:$|\\\\s)|[^\\\\s{.,:;”’()?!}]+\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(string);\n\n // Add all terms to the array\n while (matcher.find()) {\n tokens.add(matcher.group());\n }\n\n ArrayList<String> processedTokens = new ArrayList<>();\n\n // Need to remove quotes, commas, etc. leading and trailing\n for (String token : tokens) {\n token = token.trim();\n\n // Remove leading punctuation\n while (token.startsWith(\".\") || token.startsWith(\",\") || token.startsWith(\"'\") || token.startsWith(\"\\\"\") || token.startsWith(\"_\") || token.startsWith(\"[\")) {\n token = token.substring(1);\n }\n\n // Remove trailing punctuation\n while (token.endsWith(\".\") || token.endsWith(\",\") || token.endsWith(\"'\") || token.endsWith(\"\\\"\") || token.endsWith(\"_\") || token.endsWith(\"]\")) {\n token = token.substring(0, token.length() - 1);\n }\n\n // Add to new array\n processedTokens.add(token);\n }\n\n return processedTokens;\n }", "public static List<String> parse(String s) {\r\n\t\tVector<String> rval = new Vector<String>();\r\n\t\tStringTokenizer tkn = new StringTokenizer(s);\r\n\t\twhile (tkn.hasMoreTokens())\r\n\t\t\trval.add(tkn.nextToken());\r\n\t\treturn rval;\r\n\t}", "public static ArrayList<String> parseMessages(String inputstring){\n\t\tArrayList<String> params = new ArrayList<String>();\n\t\t\t\t\n\t\t// get the parameters\n\t\tStringTokenizer st = new StringTokenizer(inputstring,\"~\");\n\t\twhile(st.hasMoreTokens()){\n\t\t\tparams.add(st.nextToken());\n\t\t}\n\t\t\n\t\treturn params;\n\t}", "protected List<String> tokenize(String queue) {\n\n\t\tList<String> tokens = new ArrayList<String>();\n\n\t\tqueue = queue.trim();\n\t\tint offset = 0;\n\t\twhile (offset < queue.length() - 1) {\n\t\t\tString token = \"\";\n\t\t\t\n\t\t\t/** A complicated set of rules. */\n\t\t\t\n\t\t\t/** If the token is '\"', then this is a string that should be tokenized in its total. */\n\t\t\tif ( queue.charAt(offset) == '\"') {\n\t\t\t\tint nextIndex = queue.indexOf('\"', offset + 2);\n\t\t\t\tif (nextIndex == -1) {\n\t\t\t\t\tnextIndex = queue.length() - 1;\n\t\t\t\t}\t\t\t\t\n\t\t\t\ttoken = queue.substring(offset, nextIndex + 1).trim();\n\t\t\t\toffset = nextIndex + 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint nextIndex = queue.indexOf(' ', offset + 1);\n\t\t\t\tif (nextIndex == -1) {\n\t\t\t\t\tnextIndex = queue.length() - 1;\n\t\t\t\t}\t\t\t\t\n\t\t\t\ttoken = queue.substring(offset, nextIndex + 1).trim();\n\t\t\t\toffset = nextIndex + 1;\n\t\t\t}\n\t\t\t\n\t\t\ttokens.add(token);\n\t\t}\n\n\t\treturn tokens;\n\t}", "List<String> getTokens();", "private static Stream<String> getTokensFromRawText(String rawText) {\n return Stream.of(rawText.split(\"\\\\s\"));\n }", "public void tokenize(String input, List<TokenInfo> tokens);", "private static List<Token> tokenize(String source) {\n List<Token> tokens = new ArrayList<Token>();\n\n while (!source.equals(\"\")) {\n int pos = 0;\n TokenType t = null;\n if (Character.isWhitespace(source.charAt(0))) {\n while (pos < source.length() && Character.isWhitespace(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.WHITESPACE;\n } else if (Character.isDigit(source.charAt(0))) {\n while (pos < source.length() && Character.isDigit(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.NUMBER;\n } else if (source.charAt(0) == '+') {\n pos = 1;\n t = TokenType.ADD;\n } else if (source.charAt(0) == '-') {\n pos = 1;\n t = TokenType.SUBTRACT;\n } else if (source.charAt(0) == '*') {\n pos = 1;\n t = TokenType.MULTIPLY;\n } else if (source.charAt(0) == '/') {\n pos = 1;\n t = TokenType.DIVIDE;\n } else if (Character.isLetter(source.charAt(0))) {\n while (pos < source.length() && Character.isLetter(source.charAt(pos))) {\n pos++;\n }\n t = TokenType.IDENTIFIER;\n } else {\n System.err.println(String.format(\"Parse error at: %s\", source));\n System.exit(1);\n }\n\n tokens.add(new Token(t, source.substring(0, pos)));\n source = source.substring(pos, source.length());\n }\n\n return tokens;\n }", "public static List<String> tokenizeString(Analyzer analyzer, String string) {\n\t \t List<String> tokens = new ArrayList<>();\n\t \t //converting a string to array list\n\t \t try (TokenStream tokenStream = analyzer.tokenStream(null, new StringReader(string))) {\n\t \t tokenStream.reset(); // required\n\t \t while (tokenStream.incrementToken()) {\n\t \t tokens.add(tokenStream.getAttribute(CharTermAttribute.class).toString());\n\t \t }\n\t \t } catch (Exception e) {\n\t \t new RuntimeException(e); // Shouldn't happen...\n\t \t }\n\t \t return tokens;\n\t \t\n\t}", "public static List<String> tokenizeString(String s) {\r\n\t\t//Create a list of tokens\r\n\t\tList<String> strings = new ArrayList<String>();\r\n\t\tint count = 0;\r\n\t\t\r\n\t\tint beginning = 0;\r\n\t\tString thisChar = \"\";\r\n\t\tString nextChar = \"\";\r\n\t\tString beginTag = \"\";\r\n\t\tString endTag = \"\";\r\n\t\t\r\n\t\tfor (int i=0; i < s.length(); i++) {\r\n\t\t\t//beginning being greater than i means that those characters have already been grabbed as part of another token\r\n\t\t\tif (i < beginning) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets next char\r\n\t\t\tthisChar = String.valueOf(s.charAt(i));\r\n\t\t\tif (i != s.length()-1) {\r\n\t\t\t\tnextChar = String.valueOf(s.charAt(i+1));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnextChar = \" \";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets this char and the four characters after it\r\n\t\t\tif(i+5 == s.length()) {\r\n\t\t\t\tbeginTag = s.substring(i);\r\n\t\t\t}\r\n\t\t\telse if(i+4 < s.length()) {\r\n\t\t\t\tbeginTag = s.substring(i, i+5);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//gets this char and the five characters after it\r\n\t\t\tif(i+6 == s.length()) {\r\n\t\t\t\tendTag = s.substring(i);\r\n\t\t\t}\r\n\t\t\telse if(i+5 < s.length()) {\r\n\t\t\t\tendTag = s.substring(i, i+6);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//skips the token if it is a whitespace, but increases the count to keep the positions accurate\r\n\t\t\tif (thisChar.matches(\" \")) {\r\n\t\t\t\tbeginning = i+1;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens made of alphabetical letters\r\n\t\t\telse if(thisChar.matches(\"[a-zA-Z]\")) {\r\n\t\t\t\tif(nextChar.matches(\"[^a-zA-Z]\")) {\r\n\t\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\t\tbeginning = i+1;\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens made of numbers\r\n\t\t\telse if(thisChar.matches(\"[0-9]\")) {\r\n\t\t\t\tif(nextChar.matches(\"[^0-9]\")) {\r\n\t\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\t\tbeginning = i+1;\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens holding <PER> and <NER> tags\r\n\t\t\telse if (beginTag.equals(\"<PER>\") || beginTag.equals(\"<NER>\")) {\r\n\t\t\t\tstrings.add(beginTag);\r\n\t\t\t\tbeginning = i+5;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens holding </PER> and </NER> tags\r\n\t\t\telse if (endTag.equals(\"</PER>\") || endTag.equals(\"</NER>\")) {\r\n\t\t\t\tstrings.add(endTag);\r\n\t\t\t\tbeginning = i+6;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//creates tokens of characters that are not alphabetical or numbers\r\n\t\t\telse if (thisChar.matches(\"\\\\W\")) {\r\n\t\t\t\tstrings.add(s.substring(beginning, i+1));\r\n\t\t\t\tbeginning = i+1;\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn strings;\r\n\t}", "protected ArrayList<String> tokenize(String text)\r\n\t{\r\n\t\ttext = text.replaceAll(\"\\\\p{Punct}\", \"\");\r\n\t\tArrayList<String> tokens = new ArrayList<>();\r\n\t\tStringTokenizer tokenizer = new StringTokenizer(text);\r\n\r\n\t\t// P2\r\n\t\twhile (tokenizer.hasMoreTokens()) {\r\n\t\t\ttokens.add(tokenizer.nextToken());\r\n\t\t}\r\n\t\treturn tokens;\r\n\t}", "public static List<String> tokenize(String text){\r\n return simpleTokenize(squeezeWhitespace(text));\r\n }", "public static List<String> tokenize(final String str) {\n\tfinal LinkedList<String> list = new LinkedList<String>();\n\tfinal StringTokenizer tokenizer = new StringTokenizer(str, ALL_DELIMS, true);\n\n\twhile (tokenizer.hasMoreTokens()) {\n\t final String token = tokenizer.nextToken();\n\t // don't add spaces\n\t if (!token.equals(\" \")) {\n\t\tlist.add(token);\n\t }\n\t}\n\n\treturn list;\n }", "private static String[] tokenizeInput(String input) {\r\n\t\tArrayList<String> tokens = new ArrayList<String>(8);\r\n\t\t\r\n\t\tScanner inputScanner = new Scanner(input);\r\n\t\twhile (inputScanner.hasNext()) {\r\n\t\t\ttokens.add(inputScanner.next());\r\n\t\t}\r\n\t\treturn tokens.toArray(new String[tokens.size()]);\r\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate static List<String> splitToken (String token) {\r\n\r\n Matcher m = Contractions.matcher(token);\r\n if (m.find()){\r\n \tString[] contract = {m.group(1), m.group(2)};\r\n \treturn Arrays.asList(contract);\r\n }\r\n String[] contract = {token};\r\n return Arrays.asList(contract);\r\n }", "protected abstract String[] tokenizeImpl(String text);", "private static List<String> simpleTokenize (String text) {\r\n\r\n // Do the no-brainers first\r\n String splitPunctText = splitEdgePunct(text);\r\n\r\n int textLength = splitPunctText.length();\r\n \r\n // BTO: the logic here got quite convoluted via the Scala porting detour\r\n // It would be good to switch back to a nice simple procedural style like in the Python version\r\n // ... Scala is such a pain. Never again.\r\n\r\n // Find the matches for subsequences that should be protected,\r\n // e.g. URLs, 1.0, U.N.K.L.E., 12:53\r\n Matcher matches = Protected.matcher(splitPunctText);\r\n //Storing as List[List[String]] to make zip easier later on \r\n List<List<String>> bads = new ArrayList<List<String>>();\t//linked list?\r\n List<Pair<Integer,Integer>> badSpans = new ArrayList<Pair<Integer,Integer>>();\r\n while(matches.find()){\r\n // The spans of the \"bads\" should not be split.\r\n if (matches.start() != matches.end()){ //unnecessary?\r\n List<String> bad = new ArrayList<String>(1);\r\n bad.add(splitPunctText.substring(matches.start(),matches.end()));\r\n bads.add(bad);\r\n badSpans.add(new Pair<Integer, Integer>(matches.start(),matches.end()));\r\n }\r\n }\r\n\r\n // Create a list of indices to create the \"goods\", which can be\r\n // split. We are taking \"bad\" spans like \r\n // List((2,5), (8,10)) \r\n // to create \r\n /// List(0, 2, 5, 8, 10, 12)\r\n // where, e.g., \"12\" here would be the textLength\r\n // has an even length and no indices are the same\r\n List<Integer> indices = new ArrayList<Integer>(2+2*badSpans.size());\r\n indices.add(0);\r\n for(Pair<Integer,Integer> p:badSpans){\r\n indices.add(p.first);\r\n indices.add(p.second);\r\n }\r\n indices.add(textLength);\r\n\r\n // Group the indices and map them to their respective portion of the string\r\n List<List<String>> splitGoods = new ArrayList<List<String>>(indices.size()/2);\r\n for (int i=0; i<indices.size(); i+=2) {\r\n String goodstr = splitPunctText.substring(indices.get(i),indices.get(i+1));\r\n List<String> splitstr = Arrays.asList(goodstr.trim().split(\" \"));\r\n splitGoods.add(splitstr);\r\n }\r\n\r\n // Reinterpolate the 'good' and 'bad' Lists, ensuring that\r\n // additonal tokens from last good item get included\r\n List<String> zippedStr= new ArrayList<String>();\r\n int i;\r\n for(i=0; i < bads.size(); i++) {\r\n zippedStr = addAllnonempty(zippedStr,splitGoods.get(i), true);\r\n zippedStr = addAllnonempty(zippedStr,bads.get(i), false);\r\n }\r\n zippedStr = addAllnonempty(zippedStr,splitGoods.get(i), true);\r\n \r\n // BTO: our POS tagger wants \"ur\" and \"you're\" to both be one token.\r\n // Uncomment to get \"you 're\"\r\n /*ArrayList<String> splitStr = new ArrayList<String>(zippedStr.size());\r\n for(String tok:zippedStr)\r\n \tsplitStr.addAll(splitToken(tok));\r\n zippedStr=splitStr;*/\r\n \r\n return zippedStr;\r\n }", "public static String[] tokenize (String text) {\n tokens = new Vector();\n findTokens (null, text, 0, text.length());\n return (String[]) tokens.toArray(new String[0]);\n}", "public static List<String> tokenizeRawTweetText(String text) {\r\n List<String> tokens = tokenize(normalizeTextForTagger(text));\r\n return tokens;\r\n }", "public List<List<String>> tokenize(String inputStringParam) {\n\n // Initialization\n this.createSentence = false;\n this.isCandidateAbbrev = false;\n this.inputString = inputStringParam;\n this.tokenList = new ArrayList<>();\n this.sentenceList = new ArrayList<>();\n int il = this.inputString.length();\n int state = 0;\n int start = 0;\n int delimCnt = 0;\n int end = 0;\n char c = '\\0'; // used as dummy instead of nil or null\n\n logger.debug(\"Input (#\" + il + \"): \" + this.inputString);\n\n // This will be a loop which is terminated inside\n while (true) {\n logger.debug(\"Start: \" + start + \" end: \" + end + \" State \" + state + \" c: \" + c);\n // System.out.println(\"Start: \" + start + \" end: \" + end + \" State \" + state + \" c: \" + c);\n\n if (end > il) {\n //if (this.createSentence) {\n // always collect remaining tokens in a last sentence\n this.extendSentenceList();\n //}\n break;\n }\n\n if (end == il) {\n c = '\\0';\n } else {\n c = this.inputString.charAt(end);\n }\n\n if (this.createSentence) {\n this.extendSentenceList();\n }\n\n switch (state) {\n // state actions\n\n case 1: // 1 is the character state, so most likely\n if ((c == '\\0') || TOKEN_SEP_CHARS.contains(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n this.tokenList.add(newToken);\n state = 0;\n start = (1 + end);\n } else {\n if (this.splitString && DELIMITER_CHARS.contains(c)) {\n state = 6;\n delimCnt++;\n } else {\n if (SPECIAL_CHARS.contains(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n this.tokenList.add(newToken);\n this.setCandidateAbbrev(newToken);\n this.tokenList.add(Character.toString(c));\n this.setCreateSentenceFlag(c);\n state = 0;\n start = (1 + end);\n }\n }\n }\n break;\n\n case 0: // state zero covers: space, tab, specials\n if (TOKEN_SEP_CHARS.contains(c)) {\n start++;\n } else if ((c == '\\0')) {\n this.createSentence = true;\n } else {\n if (SPECIAL_CHARS.contains(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n this.tokenList.add(newToken);\n // newToken is a char-string like \"!\"\n this.isCandidateAbbrev = false;\n this.setCreateSentenceFlag(c);\n start++;\n } else {\n if (Character.isDigit(c)) {\n state = 2;\n } else {\n state = 1;\n }\n }\n }\n break;\n\n case 2: // state two: integer part of digit\n if ((c == '\\0') || TOKEN_SEP_CHARS.contains(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n String cardinalString = convertToCardinal(newToken);\n this.tokenList.add(cardinalString);\n state = 0;\n start = (1 + end);\n } else {\n if (c == '.') {\n state = 4;\n } else if (c == ',') {\n state = 3;\n } else if (SPECIAL_CHARS.contains(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n String cardinalString = convertToCardinal(newToken);\n this.tokenList.add(cardinalString);\n this.tokenList.add(Character.toString(c));\n this.setCreateSentenceFlag(c);\n state = 0;\n start = (1 + end);\n } else if (Character.isDigit(c)) {\n // do nothing\n\n } else {\n state = 1;\n }\n\n }\n break;\n\n case 3: // state three: floating point designated by #\\,\n\n if ((c == '\\0') || TOKEN_SEP_CHARS.contains(c)) {\n String newToken = this.makeToken(start, (end - 1), this.lowerCase);\n String cardinalString = convertToCardinal(newToken);\n this.tokenList.add(cardinalString);\n this.tokenList.add(\",\");\n state = 0;\n start = (1 + end);\n } else {\n if (SPECIAL_CHARS.contains(c)) {\n String newToken = this.makeToken(start, (end - 1), this.lowerCase);\n String cardinalString = convertToCardinal(newToken);\n this.tokenList.add(cardinalString);\n this.tokenList.add(\",\");\n this.tokenList.add(Character.toString(c));\n state = 0;\n start = (1 + end);\n } else {\n if (Character.isDigit(c)) {\n // Why not state = 2 ?\n // state = 5;\n state = 2;\n } else {\n String newToken = this.makeToken(start, (end - 1), this.lowerCase);\n String cardinalString = convertToCardinal(newToken);\n this.tokenList.add(cardinalString);\n this.tokenList.add(\",\");\n state = 1;\n start = end;\n }\n }\n }\n break;\n\n case 4: // state four: floating point designated by #\\.\n\n if ((c == '\\0')) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n String numberString = convertToCardinalAndOrdinal(newToken);\n this.tokenList.add(numberString);\n this.tokenList.add(\".\");\n this.createSentence = true;\n state = 0;\n start = (1 + end);\n } else {\n if (TOKEN_SEP_CHARS.contains(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n String numberString = convertToOrdinal(newToken);\n this.tokenList.add(numberString);\n state = 0;\n start = (1 + end);\n } else {\n if (SPECIAL_CHARS.contains(c)) {\n\n String newToken = this.makeToken(start, end, this.lowerCase);\n String numberString = convertToOrdinal(newToken);\n this.tokenList.add(numberString);\n this.tokenList.add(Character.toString(c));\n this.setCreateSentenceFlag(c);\n state = 0;\n start = (1 + end);\n } else {\n if (Character.isDigit(c)) {\n // Why not state = 2 ?\n // state = 5;\n state = 2;\n } else {\n String newToken = this.makeToken(start, end, this.lowerCase);\n String numberString = convertToOrdinal(newToken);\n this.tokenList.add(numberString);\n state = 1;\n start = end;\n }\n }\n }\n }\n break;\n\n case 5: // state five: digits\n if ((c == '\\0') || TOKEN_SEP_CHARS.contains(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n String cardinalString = convertToCardinal(newToken);\n this.tokenList.add(cardinalString);\n state = 0;\n start = (1 + end);\n } else {\n if (SPECIAL_CHARS.contains(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n String cardinalString = convertToCardinal(newToken);\n this.tokenList.add(cardinalString);\n this.tokenList.add(Character.toString(c));\n this.setCreateSentenceFlag(c);\n state = 0;\n start = (1 + end);\n } else {\n if (!Character.isDigit(c)) {\n String newToken = this.makeToken(start, end, this.lowerCase);\n String cardinalString = convertToCardinal(newToken);\n this.tokenList.add(cardinalString);\n state = 1;\n start = end;\n }\n }\n }\n break;\n\n case 6: // state six: handle delimiters like #\\-\n if ((c == '\\0') || TOKEN_SEP_CHARS.contains(c)) {\n String newToken = this.makeToken(start, (end - delimCnt), this.lowerCase);\n this.tokenList.add(newToken);\n state = 0;\n delimCnt = 0;\n start = (1 + end);\n } else {\n if (DELIMITER_CHARS.contains(c)) {\n delimCnt++;\n } else {\n if (SPECIAL_CHARS.contains(c)) {\n String newToken = this.makeToken(start, (end - delimCnt), this.lowerCase);\n this.tokenList.add(newToken);\n this.tokenList.add(Character.toString(c));\n this.setCreateSentenceFlag(c);\n state = 0;\n delimCnt = 0;\n start = (1 + end);\n } else {\n if (Character.isDigit(c)) {\n state = 0;\n } else {\n String newToken = this.makeToken(start, (end - delimCnt), this.lowerCase);\n this.tokenList.add(newToken);\n state = 1;\n delimCnt = 0;\n start = end;\n }\n }\n }\n }\n break;\n default:\n logger.error(\"unknown state \" + state + \", will be ignored\");\n }\n end++;\n }\n\n return this.sentenceList;\n }", "List<String> tokenize0(String doc) {\n List<String> res = new ArrayList<String>();\n\n for (String s : doc.split(\"\\\\s+\"))\n res.add(s);\n return res;\n }", "public ArrayList<Token> listTokensTo(String identifier){\n ArrayList<Token> result = new ArrayList<Token>();\n Token token = getToken();\n int tempCurrentToken = currentToken;\n if(token == null) return result;\n do{\n if(token.identifier.equals(identifier)){\n break;\n }\n result.add(token);\n } while((token = nextToken()) != null);\n currentToken = tempCurrentToken;\n return result;\n\n }", "public ArrayList<String> tokeniseQuery(String query) {\n ArrayList<String> tokens;\n\n tokens = this.tokeniseString(query);\n\n // Normalise the tokens\n tokens = this.normaliseTokens(tokens);\n\n // Remove commas\n tokens = this.removeCommas(tokens);\n\n // Remove the stopwords\n this.removeStopwords(tokens);\n\n // Remove empty tokens that resulted from normalisation\n this.removeEmptyTokens(tokens);\n\n // Stem the tokens\n tokens = this.stemTokens(tokens);\n\n return tokens;\n }", "public static List<Token> tokenize(String source) {\n List<Token> tokens = new ArrayList<>();\n\n String token = \"\";\n TokenizeState state = TokenizeState.DEFAULT;\n\n // Many tokens are a single character, like operators and ().\n String charTokens = \"\\n=+-*/<>(),\";\n TokenType[] tokenTypes = {LINE, EQUALS,\n OPERATOR, OPERATOR, OPERATOR,\n OPERATOR, OPERATOR, OPERATOR,\n LEFT_PAREN, RIGHT_PAREN,COMMA\n };\n\n // Scan through the code one character at a time, building up the list\n // of tokens.\n for (int i = 0; i < source.length(); i++) {\n char c = source.charAt(i);\n switch (state) {\n case DEFAULT:\n // Our comment is two -- tokens so we need to check before\n // assuming its a minus sign\n if ( c == '-' && source.charAt(i+1 ) == '-') {\n state = TokenizeState.COMMENT;\n } else if (charTokens.indexOf(c) != -1) {\n tokens.add(new Token(Character.toString(c),\n tokenTypes[charTokens.indexOf(c)]));\n } else if (Character.isLetter(c) || c=='_') { // We support underbars as WORD start.\n token += c;\n state = TokenizeState.WORD;\n } else if (Character.isDigit(c)) {\n token += c;\n state = TokenizeState.NUMBER;\n } else if (c == '\"') {\n state = TokenizeState.STRING;\n } else if (c == '\\'') {\n state = TokenizeState.COMMENT; // TODO Depricated. Delete me.\n }\n break;\n\n case WORD:\n if (Character.isLetterOrDigit(c) || c=='_' ) { // We allow underbars\n token += c;\n } else if (c == ':') {\n tokens.add(new Token(token, TokenType.LABEL));\n token = \"\";\n state = TokenizeState.DEFAULT;\n } else {\n tokens.add(new Token(token, TokenType.WORD));\n token = \"\";\n state = TokenizeState.DEFAULT;\n i--; // Reprocess this character in the default state.\n }\n break;\n\n case NUMBER:\n // HACK: Negative numbers and floating points aren't supported.\n // To get a negative number, just do 0 - <your number>.\n // To get a floating point, divide.\n if (Character.isDigit(c)) {\n token += c;\n } else {\n tokens.add(new Token(token, TokenType.NUMBER));\n token = \"\";\n state = TokenizeState.DEFAULT;\n i--; // Reprocess this character in the default state.\n }\n break;\n\n case STRING:\n if (c == '\"') {\n tokens.add(new Token(token, TokenType.STRING));\n token = \"\";\n state = TokenizeState.DEFAULT;\n } else {\n token += c;\n }\n break;\n\n case COMMENT:\n if (c == '\\n') {\n state = TokenizeState.DEFAULT;\n }\n break;\n }\n }\n\n // HACK: Silently ignore any in-progress token when we run out of\n // characters. This means that, for example, if a script has a string\n // that's missing the closing \", it will just ditch it.\n return tokens;\n }", "@Override\n public List<Token> getTokens(String text) {\n TokenizerME tokenizerME = new TokenizerME(openNLPTokenizerModel);\n Span[] tokensPos = tokenizerME.tokenizePos(text);\n String[] tokens = tokenizerME.tokenize(text);\n List<Token> tokenList = new ArrayList<>();\n\n for (int i = 0; i < tokens.length; i++) {\n tokenList.add(new Token(tokens[i], tokensPos[i].getStart(), tokensPos[i].getEnd()));\n }\n\n return tokenList;\n }", "private ArrayList parseStringToList(String data){\n ArrayList<String> result = new ArrayList<String>();\n String[] splitResult = data.split(\",\");\n for(String substring : splitResult){\n result.add(substring);\n }\n return result;\n }", "java.util.List<speech_formatting.SegmentedTextOuterClass.TokenSegment> \n getTokenSegmentList();", "private static List<String> tokenize(String expression) {\r\n\t\tString[] arrayTokens = expression.split(\r\n\t\t\t\t\"((?<=\\\\+)|(?=\\\\+))|((?<=\\\\-)|(?=\\\\-))|((?<=\\\\*)|(?=\\\\*))|((?<=\\\\/)|(?=\\\\/))|((?<=\\\\()|(?=\\\\())|((?<=\\\\))|(?=\\\\)))\");\r\n\r\n\t\t// not all minus sign is an operator. It can be the signal of a negative number.\r\n\t\t// The following loop will \"merge\" the minus sign with the next number when it\r\n\t\t// is only a signal\r\n\t\tList<String> listTokens = new ArrayList<String>(Arrays.asList(arrayTokens));\r\n\t\tfor (int i = 0; i < listTokens.size() - 1; i++) {\r\n\t\t\tif (listTokens.get(i).equals(\"-\")) {\r\n\t\t\t\tif (i == 0 || listTokens.get(i - 1).equals(\"(\")) {\r\n\t\t\t\t\tlistTokens.set(i + 1, \"-\" + listTokens.get(i + 1));\r\n\t\t\t\t\tlistTokens.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn listTokens;\r\n\t}", "List<String> tokenize2(String doc) {\n String stemmed = StanfordLemmatizer.stemText(doc);\n List<String> res = new ArrayList<String>();\n\n for (String s : stemmed.split(\"[\\\\p{Punct}\\\\s]+\"))\n res.add(s);\n return res;\n }", "public void buildTokenIdentifierArrayList() {\n\t\t/**\n\t\t * Maintain the order while adding. Give it in a greedy way. The most specific to most common. Eg: DECIMAL Should \n\t\t * be added first then INTEGER else INTEGER will be matched first and '.' will be matched as a TOKEN and then\n\t\t * the succeeding number will be parsed as an INTEGER\n\t\t */\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.DECIMAL), TokenType.DECIMAL_LITERAL));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.IDENTIFIER), TokenType.IDENTIFIER));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.INTEGER), TokenType.INTEGER_LITERAL));\n\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(RegularExpression.STRING), TokenType.STRING_LITERAL));\n\n\t\tfor (String t: new String[] {\"=\", \"\\\\(\",\"\\\\)\", \"\\\\.\",\"\\\\,\"}) {\n\t\t\tlistTokenIdentifier.add(new TokenIdentifier(Pattern.compile(\"^(\" + t + \")\"), TokenType.TOKEN));\t\n\t\t}\n\t}", "protected List<String> getTokens(String pattern)\r\n\t{\r\n\t\tArrayList<String> tokens = new ArrayList<String>();\r\n\t\tPattern tokSplitter = Pattern.compile(pattern);\r\n\t\tMatcher m = tokSplitter.matcher(text);\r\n\t\t\r\n\t\twhile (m.find()) {\r\n\t\t\ttokens.add(m.group());\r\n\t\t}\r\n\t\t\r\n\t\treturn tokens;\r\n\t}", "public static ArrayList<String> getListOfTokens(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tokenSeparatedStr, String delimiter)\n\t{\n\t\tArrayList<String> listOfTokens = new ArrayList<String>();\n\n\t\tif(StringUtil.isInvalidString(tokenSeparatedStr))\n\t\t{\n\t\t\tlistOfTokens.add(tokenSeparatedStr);\n\t\t\treturn listOfTokens;\n\t\t}\n\n\t\t/* Validate and assign a default Token Separator */\n\t\tif(StringUtil.isNull(delimiter))\n\t\t{\n\t\t\tdelimiter = TOKEN_SEPARATOR_COMMA;\n\t\t}\n\n\t\tStringTokenizer st = new StringTokenizer(tokenSeparatedStr, delimiter);\n\n\t\twhile(st.hasMoreTokens())\n\t\t{\n\t\t\tlistOfTokens.add(st.nextToken().trim());\n\t\t}\n\n\t\treturn listOfTokens;\n\t}", "private static List<String> stringToList(String string) {\n\t // Create a tokenize that uses \\t as the delim, and reports\n\t // both the words and the delimeters.\n\t\tStringTokenizer tokenizer = new StringTokenizer(string, \"\\t\", true);\n\t\tList<String> row = new ArrayList<String>();\n\t\tString elem = null;\n\t\tString last = null;\n\t\twhile(tokenizer.hasMoreTokens()) {\n\t\t\tlast = elem;\n\t\t\telem = tokenizer.nextToken();\n\t\t\tif (!elem.equals(\"\\t\")) row.add(elem);\n\t\t\telse if (last.equals(\"\\t\")) row.add(\"\");\n\t\t\t// We need to track the 'last' state so we can treat\n\t\t\t// two tabs in a row as an empty string column.\n\t\t}\n\t\tif (elem.equals(\"\\t\")) row.add(\"\"); // tricky: notice final element\n\t\t\n\t\treturn(row);\n\t}", "public static String[] tokenize(String value, String token) {\n checkNotNull(value);\n checkNotNull(token);\n if (value.trim().length() == 0) {\n return new String[] { };\n }\n return value.split(token);\n }", "public java.util.List<speech_formatting.SegmentedTextOuterClass.TokenSegment> getTokenSegmentList() {\n if (tokenSegmentBuilder_ == null) {\n return java.util.Collections.unmodifiableList(tokenSegment_);\n } else {\n return tokenSegmentBuilder_.getMessageList();\n }\n }", "public static List<String> sentenceToList(String sentence){\n\t\treturn Arrays.asList(sentence.split(\"\\\\s+\"));\n\t}", "public Token toToken(String s);", "public void tokenizeAndParse(){\n StringTokenizer st1 = new StringTokenizer(Strinput, \" \");\n while (st1.hasMoreTokens()){\n String temp = st1.nextToken();\n if(!temp.equals(\"Rs\")&&!temp.equals(\"Ri\")){\n melody.add(Integer.decode(temp.substring(0,2)));\n }\n\n }\n\n }", "public List<Message> parse(String message) {\n msg = new JSONObject(message);\n data = msg.getJSONArray(\"data\");\n List<Message> msgArray = new ArrayList<Message>();\n for (int i=0; i<data.length(); i++){\n Message tmpmsg = new Message();\n JSONObject tmpObj = data.getJSONObject(i);\n tmpmsg.setKey(tmpObj.getString(\"deviceId\"));\n tmpmsg.setEventTimestamp(Instant.parse(tmpObj.getString(\"time\")));\n tmpmsg.setResponseBody(tmpObj.toString());\n msgArray.add(tmpmsg);\n }\n return msgArray;\n }", "public List<String> decode(String s) {\n String[] words = s.split(\" # \", -1);\n List<String> ret = new ArrayList<>();\n for (int i = 0; i < words.length - 1; i++) {\n ret.add(words[i].replaceAll(\"##\", \"#\"));\n }\n return ret;\n }", "protected List<String> convertToList(final String data) {\n\t\tif (data == null || data.length() == 0) {\n\t\t\treturn new ArrayList<String>();\n\t\t}\n\t\tString[] result = data.split(\",\");\n\t\tList<String> list = new ArrayList<String>();\n\t\tfor (String val : result) {\n\t\t\tlist.add(val.trim());\n\t\t}\n\t\treturn list;\n\t}", "public String[] tokenize(String string) {\n String[] result = null;\n\n if (string != null && !\"\".equals(string)) {\n if (normalizer != null) {\n final NormalizedString nString = normalize(string);\n if (nString != null) {\n result = nString.split(stopwords);\n }\n }\n else if (analyzer != null) {\n final List<String> tokens = LuceneUtils.getTokenTexts(analyzer, label, string);\n if (tokens != null && tokens.size() > 0) {\n result = tokens.toArray(new String[tokens.size()]);\n }\n }\n\n if (result == null) {\n final String norm = string.toLowerCase();\n if (stopwords == null || !stopwords.contains(norm)) {\n result = new String[]{norm};\n }\n }\n }\n\n return result;\n }", "public interface Tokenizer {\n\n List<Token> parse(String text);\n}", "private List<PTypes> dissectListTypes(String cellString){\n return Arrays.stream(cellString.split(\",\\\\s+\"))\n .map(PTypes::valueOf)\n .collect(Collectors.toList());\n }", "public ArrayList<String> parse(String STP) {\r\n\t\tArrayList<String> parts2 = new ArrayList<>();\r\n\t\tString[] parts = STP.split(\"!\"); // Splits array of strings at the\r\n\t\t\t\t\t\t\t\t\t\t\t// exclamation point, a separator\r\n\t\t\t\t\t\t\t\t\t\t\t// character\r\n\t\tfor (String s : parts) {\r\n\t\t\tString[] subparts = s.split(\":\"); // Splits the tags of a string\r\n\t\t\t\t\t\t\t\t\t\t\t\t// from the values\r\n\t\t\tfor (String b : subparts) {\r\n\t\t\t\tparts2.add(b);\r\n\t\t\t}\r\n\t\t}\r\n\t\t// for (String s : parts2)\r\n\t\t// System.out.print(s);\r\n\t\treturn parts2;\r\n\t}", "public static List<List<TaggedWord>> getTaggedWordListString(String str) {\n\t\treturn getTaggedWordListReader(new StringReader(str));\n\t}", "public List<String> decode(String s) {\n List<String> ans = new ArrayList<String>();\n int l = 0, r = 0;\n while (r < s.length()) {\n while (s.charAt(r) != '@') r++;\n int len = Integer.parseInt(s.substring(l, r++));\n ans.add(s.substring(r, r+len)); \n l = r = r+len;\n }\n \n return ans;\n }", "public static ExprToken[] Tokenize(String expr) throws ParseException {\n ArrayList<ExprToken> res = new ArrayList<>();\n int i = 0;\n\n while (i < expr.length()) {\n char c = expr.charAt(i);\n\n if (Character.isSpaceChar(c)) {\n i++;\n continue;\n }\n\n if (GetOpPrio(c) != -1) {\n res.add(new ExprToken(ExprToken.Type.Operator, new Character(c)));\n i++;\n } else if (Character.isLetterOrDigit(c)) {\n int start = i++;\n\n while (i < expr.length() && Character.isLetterOrDigit(expr.charAt(i)))\n i++;\n\n res.add(new ExprToken(ExprToken.Type.Word, expr.substring(start, i)));\n } else if (c == '(') {\n res.add(new ExprToken(ExprToken.Type.Bracket, '('));\n i++;\n } else if (c == ')') {\n res.add(new ExprToken(ExprToken.Type.Bracket, ')'));\n i++;\n } else {\n throw new ParseException(\"Unexpected character (\" + c + \")\", i);\n }\n }\n\n return res.toArray(new ExprToken[res.size()]);\n }", "private ArrayList<String> normaliseTokens(ArrayList<String> tokens) {\n ArrayList<String> normalisedTokens = new ArrayList<>();\n\n // Normalise to lower case and add\n for (String token : tokens) {\n token = token.toLowerCase();\n normalisedTokens.add(token);\n }\n\n return normalisedTokens;\n }", "public List<IToken> getTokens();", "private void tokenize() {\n\t\t//Checks char-by-char\n\t\tcharLoop:\n\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\t//Check if there's a new line\n\t\t\tif (input.charAt(i) == '\\n') {\n\t\t\t\ttokens.add(LINE);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//Iterate through the tokens and find if any matches\n\t\t\tfor (Token st : Token.values()) {\n\t\t\t\t//Do not test for these because they have separate cases below\n\t\t\t\tif (st.equals(NUMBER) || st.equals(VARIABLE_NAME) || st.equals(STRING) || st.equals(LINE)) continue;\n\t\t\t\t//Skip whitespace & newlines\n\t\t\t\tif (Character.isWhitespace(input.charAt(i))) continue;\n\t\t\t\t\n\t\t\t\t//Checks for multi-character identifiers\n\t\t\t\ttry {\n\t\t\t\t\tif (input.substring(i, i + st.getValue().length()).equals(st.getValue())) {\n\t\t\t\t\t\ttokens.add(st);\n\t\t\t\t\t\ti += st.getValue().length()-1;\n\t\t\t\t\t\tcontinue charLoop;\n\t\t\t\t\t}\n\t\t\t\t} catch(StringIndexOutOfBoundsException e) {}\n\t\t\t\t//Ignore this exception because the identifiers might be larger than the input string.\n\t\t\t\t\n\t\t\t\t//Checks for mono-character identifiers\n\t\t\t\tif (st.isOneChar() && input.charAt(i) == st.getValue().toCharArray()[0]) {\n\t\t\t\t\ttokens.add(st);\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a string\n\t\t\tif (input.charAt(i) == '\"') {\n\t\t\t\ti++;\n\t\t\t\tif (i >= input.length()) break;\n\t\t\t\tStringBuilder string = new StringBuilder();\n\t\t\t\twhile (input.charAt(i) != '\"') {\n\t\t\t\t\tstring.append(input.charAt(i));\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tstring.insert(0, \"\\\"\");\n\t\t\t\tstring.append(\"\\\"\");\n\t\t\t\ttokens.add(STRING);\n\t\t\t\tmetadata.put(tokens.size()-1, string.toString());\n\t\t\t\tcontinue charLoop;\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a number\n\t\t\tif (Character.isDigit(input.charAt(i))) {\n\t\t\t\tStringBuilder digits = new StringBuilder();\n\t\t\t\twhile (Character.isDigit(input.charAt(i)) || input.charAt(i) == '.') {\n\t\t\t\t\tdigits.append(input.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t}\n\t\t\t\tif (digits.length() != 0) {\n\t\t\t\t\ttokens.add(NUMBER);\n\t\t\t\t\tmetadata.put(tokens.size()-1, digits.toString());\n\t\t\t\t\ti--;\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Check if there is a variable reference/creation\n\t\t\tif (Character.isAlphabetic(input.charAt(i)) && !Character.isWhitespace(input.charAt(i))) {\n\t\t\t\tStringBuilder varName = new StringBuilder();\n\t\t\t\twhile ( ( Character.isAlphabetic(input.charAt(i)) || Character.isDigit(input.charAt(i)) )\n\t\t\t\t\t\t&& !Character.isWhitespace(input.charAt(i))) {\n\t\t\t\t\tvarName.append(input.charAt(i));\n\t\t\t\t\ti++;\n\t\t\t\t\tif (i >= input.length()) break;\n\t\t\t\t}\n\t\t\t\tif (varName.length() != 0) {\n\t\t\t\t\ttokens.add(VARIABLE_NAME);\n\t\t\t\t\tmetadata.put(tokens.size()-1, varName.toString());\n\t\t\t\t\ti--;\n\t\t\t\t\tcontinue charLoop;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List<String> decode(String s) {\n List<String> words = new ArrayList<>();\n if (s.length() == 0) return words;\n int i = 0;\n while (i < s.length()) {\n int d = s.indexOf(\"#\", i);\n int len = Integer.parseInt(s.substring(i , d));\n i = d + 1 + len;\n words.add(s.substring(d + 1, i));\n }\n return words;\n }", "public List<String> decode(String s) {\n List<String> res = new ArrayList<>();\n if(s == null) return res;\n return Arrays.asList(s.split(key,-1));\n }", "public static List<TaggedWord> getFlatTaggedWordListString(String str) {\n\t\treturn getFlatTaggedWordListReader(new StringReader(str));\n\t}", "@Test\n public void testTokenize() {\n String code = \"METAR KTTN 051853Z 04011KT 1 1/2SM VCTS SN FZFG BKN003 OVC010 M02/M02 A3006 RMK AO2 TSB40 SLP176 P0002 T10171017=\";\n String[] tokens = { \"METAR\", \"KTTN\", \"051853Z\", \"04011KT\", \"1 1/2SM\", \"VCTS\", \"SN\", \"FZFG\", \"BKN003\", \"OVC010\", \"M02/M02\", \"A3006\", \"RMK\", \"AO2\", \"TSB40\", \"SLP176\", \"P0002\", \"T10171017\" };\n // WHEN tokenizing the string\n String[] result = getParser().tokenize(code);\n // THEN the visibility part is 1 1/2SM\n assertNotNull(result);\n assertArrayEquals(tokens, result);\n\n }", "private Iterator tokenize(FreeTTSSpeakable speakable) {\n\treturn new FreeTTSSpeakableTokenizer(speakable).iterator();\n }", "public void tokenize(String str) {\n String s = new String(str);\n s = s.replaceAll(\" \", \"\");\n tokens.clear();\n while (!s.equals(\"\")) {\n boolean match = false;\n for (TokenInfo info : tokenInfos) {\n Matcher m = info.regex.matcher(s);\n if (m.find()) {\n match = true;\n\n String tok = m.group().trim();\n tokens.add(new Token(info.token, tok, info.precedence));\n\n s = m.replaceFirst(\"\");\n break;\n\n }\n }\n if (!match) {\n throw new ParserException(\"Unexpected character in input: \" + s);\n }\n }\n }", "private List<String> getMessages(List<Object> args) {\n String inputArgName = \"input\";\n\n List<String> messages = new ArrayList<>();\n if(hasArg(inputArgName, 1, String.class, args)) {\n // the input is a single message as a string\n String msg = getArg(inputArgName, 1, String.class, args);\n messages.add(msg);\n\n } else if(hasArg(inputArgName, 1, List.class, args)) {\n // the input is a list of messages\n List<Object> arg1 = getArg(inputArgName, 1, List.class, args);\n for(Object object: arg1) {\n String msg = String.class.cast(object);\n messages.add(msg);\n }\n\n } else {\n throw new IllegalArgumentException(format(\"Expected a string or list of strings to parse.\"));\n }\n\n return messages;\n }", "public static ArrayList<String> getTokenList(String cyp, boolean DEBUG_PRINT) {\n CypherLexer lexer = new CypherLexer(new ANTLRInputStream(cyp));\n\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n tokens.fill();\n CypherParser parser = new CypherParser(tokens);\n\n // dangerous - comment out if something is going wrong.\n parser.removeErrorListeners();\n\n ParseTree tree = parser.cypher();\n ParseTreeWalker walker = new ParseTreeWalker();\n\n cypherWalker = null;\n cypherWalker = new CypherWalker();\n walker.walk(cypherWalker, tree);\n\n if (DEBUG_PRINT) cypherWalker.printInformation();\n\n ArrayList<String> tokenList = new ArrayList<>();\n\n for (Object t : tokens.getTokens()) {\n CommonToken tok = (CommonToken) t;\n String s = tok.getText().toLowerCase();\n\n // exclude some tokens from the list of tokens. This includes the EOF pointer,\n // semi-colons, and alias artifacts.\n if (!\" \".equals(s) && !\"<eof>\".equals(s) && !\";\".equals(s) && !\"as\".equals(s) &&\n !cypherWalker.getAlias().contains(s)) {\n tokenList.add(s);\n }\n }\n return tokenList;\n }", "private List<String> parse(String str) {\n List<String> res = new ArrayList<>();\n int par = 0;\n StringBuilder sb = new StringBuilder();\n for(char c: str.toCharArray()){\n if(c == '('){\n par++;\n }\n if(c == ')'){\n par--;\n }\n if(par == 0 && c == ' '){\n res.add(new String(sb));\n sb = new StringBuilder();\n }else{\n sb.append(c);\n }\n }\n if(sb.length() > 0){\n res.add(new String(sb));\n }\n return res;\n }", "@Test\r\n public void testTokenize() {\n String code = \"METAR KTTN 051853Z 04011KT 1 1/2SM VCTS SN FZFG BKN003 OVC010 M02/M02 A3006 RMK AO2 TSB40 SLP176 P0002 T10171017=\";\r\n String[] tokens = { \"METAR\", \"KTTN\", \"051853Z\", \"04011KT\", \"1 1/2SM\", \"VCTS\", \"SN\", \"FZFG\", \"BKN003\", \"OVC010\", \"M02/M02\", \"A3006\", \"RMK\", \"AO2\", \"TSB40\", \"SLP176\", \"P0002\", \"T10171017=\" };\r\n // WHEN tokenizing the string\r\n String[] result = getSut().tokenize(code);\r\n // THEN the visibility part is 1 1/2SM\r\n assertNotNull(result);\r\n assertArrayEquals(tokens, result);\r\n\r\n }", "java.util.List<? extends speech_formatting.SegmentedTextOuterClass.TokenSegmentOrBuilder> \n getTokenSegmentOrBuilderList();", "public ArrayList<String> perform(Message token) throws IOException {\n return null;\n }", "private static @NotNull List<String> parse(@Nullable String s) {\n if (s == null) {\n return Collections.emptyList();\n }\n final Pattern COMPONENT_RE = Pattern.compile(\"\\\\d+|[a-z]+|\\\\.|-|.+\");\n final List<String> results = new ArrayList<>();\n final Matcher matcher = COMPONENT_RE.matcher(s);\n while (matcher.find()) {\n final String component = replace(matcher.group());\n if (component == null) {\n continue;\n }\n results.add(component);\n }\n for (int i = results.size() - 1; i > 0; i--) {\n if (\"00000000\".equals(results.get(i))) {\n results.remove(i);\n }\n else {\n break;\n }\n }\n results.add(\"*final\");\n return results;\n }", "protected final List getValuesAsList(String values)\r\n {\r\n List list = new LinkedList();\r\n StringTokenizer tok = new StringTokenizer(values, DELIMITER);\r\n\r\n while(tok.hasMoreTokens())\r\n {\r\n // extract each value, trimming whitespace\r\n list.add(tok.nextToken().trim());\r\n }\r\n\r\n // return the list\r\n return list;\r\n }", "public static List<String> tokenize(String value, String seperator) {\n\n List<String> result = new ArrayList<>();\n StringTokenizer tokenizer = new StringTokenizer(value, seperator);\n while(tokenizer.hasMoreTokens()) {\n result.add(tokenizer.nextToken());\n }\n return result;\n }", "private static List<TokenInfo> parsePara(String args) {\n\t\tList<TokenInfo> tokens = new ArrayList<TokenInfo>();\n\t\tStringBuffer token = new StringBuffer();\n\t\tint status = 0;\n\t\tfor_bp: for (int i = 0; i < args.length(); i++) {\n\t\t\tchar c = args.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase ' ': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '-': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstatus = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\tcase 'd':\n\t\t\tcase 'e':\n\t\t\tcase 'f':\n\t\t\tcase 'g':\n\t\t\tcase 'h':\n\t\t\tcase 'i':\n\t\t\tcase 'j':\n\t\t\tcase 'k':\n\t\t\tcase 'l':\n\t\t\tcase 'm':\n\t\t\tcase 'n':\n\t\t\tcase 'o':\n\t\t\tcase 'p':\n\t\t\tcase 'q':\n\t\t\tcase 'r':\n\t\t\tcase 's':\n\t\t\tcase 't':\n\t\t\tcase 'u':\n\t\t\tcase 'v':\n\t\t\tcase 'w':\n\t\t\tcase 'x':\n\t\t\tcase 'y':\n\t\t\tcase 'z':\n\t\t\tcase 'A':\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'D':\n\t\t\tcase 'E':\n\t\t\tcase 'F':\n\t\t\tcase 'G':\n\t\t\tcase 'H':\n\t\t\tcase 'I':\n\t\t\tcase 'J':\n\t\t\tcase 'K':\n\t\t\tcase 'L':\n\t\t\tcase 'M':\n\t\t\tcase 'N':\n\t\t\tcase 'O':\n\t\t\tcase 'P':\n\t\t\tcase 'Q':\n\t\t\tcase 'R':\n\t\t\tcase 'S':\n\t\t\tcase 'T':\n\t\t\tcase 'U':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'X':\n\t\t\tcase 'Y':\n\t\t\tcase 'Z': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '0':\n\t\t\tcase '1':\n\t\t\tcase '2':\n\t\t\tcase '3':\n\t\t\tcase '4':\n\t\t\tcase '5':\n\t\t\tcase '6':\n\t\t\tcase '7':\n\t\t\tcase '8':\n\t\t\tcase '9': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\ttoken.append('-');\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttokenIn(tokens, token, status);\n\n\t\treturn tokens;\n\t}", "List<String> tokenize1(String doc) {\n List<String> res = new ArrayList<String>();\n\n for (String s : doc.split(\"[\\\\p{Punct}\\\\s]+\"))\n res.add(s);\n return res;\n }", "public static ArrayList<String> parseFeatureLine(String line){\n\t\tArrayList<String> words = new ArrayList<String>();\n\t\t\n\t\tStringTokenizer tokenizer = new StringTokenizer(line);\n\t\t\n\t\twhile( tokenizer.hasMoreTokens() ){\n\t\t\tString word = tokenizer.nextToken();\n\t\t\t\n\t\t\tif( !word.matches(\"[^a-z]+\") ){\n\t\t\t\twords.add(word);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn words;\n\t}", "List<String> tokenize0(String doc) {\r\n List<String> res = new ArrayList<String>();\r\n\r\n for (String s : doc.split(\"\\\\s+\")) {\r\n // implement stemming algorithm if ToStem == true\r\n if (ToStem == true) {\r\n Stemmer st = new Stemmer();\r\n st.add(s.toCharArray(), s.length());\r\n st.stem();\r\n s = st.toString();\r\n }\r\n res.add(s);\r\n }\r\n return res;\r\n }", "private String[] BreakDiscoveryMessageToStrings(String input) {\n return input.split(\"[\" + Constants.STANDART_FIELD_SEPERATOR + \"]\"); //parse the string by the separator char\n }", "public static String[] messageBreakdown(String message) throws Exception {\n if (null == message || message.length() < 1) {\n return null;\n }\n String msg = message.trim();\n int firstspace = msg.indexOf(' ');\n String tenantCode = msg.substring(0, firstspace).trim();\n String trackingNoOrKeyword = msg.substring(tenantCode.length()).trim();\n\n return new String[]{tenantCode, trackingNoOrKeyword};\n }", "public String[] getErrorParserList();", "List<String> mo5877c(String str);", "List<C1113b> mo5874b(String str);", "public static List<List<TaggedWord>> getSentenceStructList(String str){\n\t\treturn getSentenceStructList(new StringReader(str));\n\t}", "public static ArrayList<Netlist> parseString(String str, GateLibrary library) throws Exception {\n\n\t\treturn getNetlists(\"STRING\", new ANTLRInputStream(str), library == null ? new GateLibrary() : library);\n\n\t}", "private List<String[]> convertArgumentsToListOfCommands(String argumentsAsString) {\n List<String> listOfLines = Arrays.asList(argumentsAsString.split(\"\\n\"));\n\n listOfLines.remove(0);\n listOfLines.remove(listOfLines.size());\n\n return listOfLines\n .stream()\n .map(line -> line.split(\" \"))\n .collect(Collectors.toList());\n }", "public List<Token> getTokens() {\n return new ArrayList<>(tokens);\n }", "public static String[] splitMessage(String msg){\n\t\t\n\t\tString content = msg;\n\t\tString[] msgArray = new String[msg.length()/252];\n\t\tint i=0;\n\t\twhile(content.length() >= 252) {\n\t\t msgArray[i] = content.substring(0, 252);\n\t\t i++;\n\t\t content = content.substring(252);\n\t\t}\n\t\treturn msgArray;\n\t}", "String getStringList();", "private ArrayList<String> splitString(String arguments) {\n String[] strArray = arguments.trim().split(REGEX_WHITESPACES);\n return new ArrayList<String>(Arrays.asList(strArray));\n }", "public Tokenizer(String[] s){\n\t\tlist = new ArrayList<String>();\n\t\tfor(int i=0;i<s.length;i++){\n\t\t\tString[] x=s[i].trim().split(\"\\\\s+\");//splits at the spaces\n\t\t\tfor(int j=0;j<x.length;j++){\n\t\t\t\tx[j]=x[j].trim().toLowerCase().replaceAll(\"\\\\W\", \"\");\n\t\t\t\tlist.add(x[j]);\n\t\t\t}//ends for loop that splits up words inside each array\n\t\t}//will go through each array\n\t}", "public List<String> stringToList(String string) {\n List<String> description = new ArrayList<String>();\n String[] lines = string.split(\"%n\");\n\n for (String line : lines) {\n line = addSpaces(line);\n description.add(line);\n }\n\n return description;\n }", "private void tokenizar(){\r\n String patron = \"(?<token>[\\\\(]|\\\\d+|[-+\\\\*/%^]|[\\\\)])\";\r\n Pattern pattern = Pattern.compile(patron);\r\n Matcher matcher = pattern.matcher(this.operacion);\r\n \r\n String token;\r\n \r\n while(matcher.find()){\r\n token = matcher.group(\"token\");\r\n tokens.add(token);\r\n \r\n }\r\n \r\n }", "Map<String, String> getTokens();", "@Override\n public void pushback() {\n if (tokenizer != null) {\n // add 1 to count: when looping through the new tokenizer, we want there to be 1 more token remaining than there is currently.\n int tokensRemaining = tokenizer.countTokens() + 1;\n tokenizer = new StringTokenizer(stringToTokenize, delimiter, includeDelimiterTokens);\n int totalNumberOfTokens = tokenizer.countTokens();\n for (int i = totalNumberOfTokens; i > tokensRemaining; i--) {\n tokenizer.nextToken();\n }\n }\n }", "@Override\r\n public String toString() {\r\n String s = new String();\r\n for (String t : tokenList)\r\n s = s + \"~\" + t;\r\n return s;\r\n }", "public String[] tokenize(String review) throws IOException {\n InputStream is = new FileInputStream(\"en-token.bin\");\n\n TokenizerModel model = new TokenizerModel(is);\n\n TokenizerME tokenizer = new TokenizerME(model);\n\n String tokens[] = tokenizer.tokenize(review);\n\n is.close();\n return tokens;\n }", "public ArrayList<String> processText(String text)\r\n\t{\r\n\t\tArrayList<String> terms = new ArrayList<>();\r\n\r\n\t\t// P2\r\n\t\t// Tokenizing, normalizing, stopwords, stemming, etc.\r\n\t\tArrayList<String> tokens = tokenize(text);\r\n\t\tfor(String term: tokens){\r\n\t\t\tString norm = normalize(term);\r\n\t\t\tif(!isStopWord(norm)){\r\n\t\t\t\tString stem = stem(norm);\r\n\t\t\t\tterms.add(stem);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn terms;\r\n\t}", "public static List<String> deserialize( String value )\n {\n return deserialize( value, DEFAULT_DELIMITER );\n }", "public String[] nextVariableList() throws IOException {\n List<String> l = new ArrayList<String>();\n int tt;\n tt = tok.nextToken();\n //System.out.println(\"vList tok = \" + tok);\n if (tt == '(' || tt == '{') {\n logger.debug(\"variable list\");\n tt = tok.nextToken();\n while (true) {\n if (tt == StreamTokenizer.TT_EOF)\n break;\n if (tt == ')' || tt == '}')\n break;\n if (tt == StreamTokenizer.TT_WORD) {\n //System.out.println(\"TT_WORD: \" + tok.sval);\n l.add(tok.sval);\n }\n tt = tok.nextToken();\n }\n }\n Object[] ol = l.toArray();\n String[] v = new String[ol.length];\n for (int i = 0; i < v.length; i++) {\n v[i] = (String) ol[i];\n }\n return v;\n }", "public static String[] getVariableOrder(String message) {\n\t\tVector<String> variables = new Vector<String>();\n\t\tString[] variableList;\n\t\t//Break string up\n\t\tStringTokenizer st = new StringTokenizer(message,\"<\");\n\t\t \n\t\tString temp = \"\"; //Temporary storage\n\t\tString tempVar = \"\"; //Temporary variable storage\n\t\t \n\t\t//While information remains\n\t\twhile(st.hasMoreTokens()) {\n\t\t\ttemp = st.nextToken();\n\t\t\t//If it is a variable\n\t\t\tif(temp.startsWith(\"Var>\")) {\n\t\t\t\ttempVar = \"\";\n\t\t\t\t//Get the name of the variable\n\t\t\t\tfor(int i=4;i<temp.length();i++) {\n\t\t\t\t\tif(temp.charAt(i)=='<')\n\t\t\t\t\t\tbreak;\n\t\t\t\t\telse\n\t\t\t\t\t\ttempVar = tempVar + temp.charAt(i);\n\t\t\t\t}\n\t\t\t\tvariables.addElement(tempVar); //Store the variable name\n\t\t\t}\n\t\t}\n\t\t//Convert the vector to an array\n\t\tvariableList = new String[variables.size()];\n\t\tfor(int i=0;i<variables.size();i++) {\n\t\t\tvariableList[i] = variables.elementAt(i);\n\t\t}\n\t\treturn variableList;\n\t}", "public ArrayList<Token> getTokens() {\n return clueTokens;\n }", "public static ArrayList<String> getListOfTokens(String csvString)\n\t{\n\t\treturn getListOfTokens(csvString, TOKEN_SEPARATOR_COMMA);\n\t}", "public static List<String> deserialize( String value, String delimiter )\n {\n return Arrays.asList( value.split( delimiter ) );\n }", "private static List<String> toList(ParserRuleContext ctx) {\n \n if (ctx == null) {\n return Collections.emptyList();\n }\n \n List<String> list = new ArrayList<>();\n \n for (int i = 0, m = ctx.getChildCount(); i < m; i += 2) {\n list.add(ctx.getChild(i).getText().trim());\n }\n \n return list;\n }", "private static List<String> splitTypes(String typesString, char delimiter)\r\n {\r\n // Feel free to write a RegEx for that, and compare the\r\n // performance of the RegEx to this approach....\r\n List<String> typeStrings = new ArrayList<String>();\r\n int openBrackets = 0;\r\n StringBuilder sb = new StringBuilder();\r\n for (int i=0; i<typesString.length(); i++)\r\n {\r\n char c = typesString.charAt(i);\r\n if (c == '<')\r\n {\r\n openBrackets++;\r\n sb.append(\"<\");\r\n }\r\n else if (c == '>')\r\n {\r\n openBrackets--;\r\n sb.append(\">\");\r\n }\r\n else if (openBrackets==0 && c == delimiter)\r\n {\r\n typeStrings.add(sb.toString().trim());\r\n sb = new StringBuilder();\r\n }\r\n else\r\n {\r\n sb.append(c); \r\n }\r\n }\r\n if (sb.length() > 0)\r\n {\r\n typeStrings.add(sb.toString().trim());\r\n }\r\n if (openBrackets > 0)\r\n {\r\n throw new IllegalArgumentException(\r\n \"No matching '>' for '<' in input string: \"+typesString);\r\n }\r\n if (openBrackets < 0)\r\n {\r\n throw new IllegalArgumentException(\r\n \"No matching '<' for '>' in input string: \"+typesString);\r\n }\r\n return typeStrings;\r\n }", "public static ArrayList<String> wordTokenizer(String sentence){\n \n ArrayList<String> words = new ArrayList<String>();\n String[] wordsArr = sentence.replaceAll(\"\\n\", \" \").toLowerCase().split(\" \");\n \n for(String s : wordsArr){\n \n if(s.trim().compareTo(\"\") != 0)\n words.add(s.trim());\n \n }\n \n return words;\n \n }", "public List<Token> getTokens() throws IOException, ScannerException {\n List<Token> tokens = new ArrayList<Token>();\n Token token = getNextToken();\n while (!token.getType().equals(RuleResolver.EOF_SYMBOL)) {\n tokens.add(token);\n token = getNextToken();\n }\n return tokens;\n }" ]
[ "0.65965086", "0.6212523", "0.6187798", "0.60839754", "0.60609037", "0.5844375", "0.5736325", "0.5698912", "0.56982756", "0.56665885", "0.56631505", "0.56489784", "0.5646294", "0.56275475", "0.5623422", "0.559361", "0.55434877", "0.5512916", "0.5483623", "0.5474603", "0.5472836", "0.54640174", "0.545269", "0.54482675", "0.54372203", "0.5416952", "0.5414376", "0.53861326", "0.53718936", "0.5362666", "0.53614604", "0.533201", "0.5313551", "0.5301976", "0.52893144", "0.5283368", "0.5280551", "0.52371615", "0.52368236", "0.5235419", "0.5187418", "0.5185678", "0.51726663", "0.5172441", "0.51708883", "0.51579565", "0.5151785", "0.51501584", "0.5146531", "0.51447", "0.5143857", "0.5142215", "0.513339", "0.5107894", "0.5103791", "0.51009107", "0.5094798", "0.5080949", "0.5058106", "0.505385", "0.5047056", "0.5038837", "0.5034554", "0.5028252", "0.5027852", "0.50028306", "0.49960762", "0.49884978", "0.49881512", "0.49875805", "0.49560824", "0.49499694", "0.4947481", "0.49471593", "0.49453068", "0.49245337", "0.49220297", "0.4912788", "0.48957533", "0.48943257", "0.48920557", "0.48852402", "0.4878277", "0.4874746", "0.48684615", "0.48634252", "0.4860954", "0.48581728", "0.48572326", "0.484758", "0.4842499", "0.48370346", "0.48281586", "0.48248568", "0.48240924", "0.48238498", "0.48234335", "0.48180634", "0.48156127", "0.48132765" ]
0.57619405
6
Parses tokens and replaces supported flags with the correct HTML syntax.
public ArrayList<Blob> parseMessage(ArrayList<String> tokenizedMessageContent, List<Character> validCharFlags, List<String> validStrFlags, List<String> linkPrefix, String emojiFlag, Map<String, String[]> markToHtml){ Hashtable<String, Blob> customEmojis = new Hashtable<String, Blob>(); ArrayList<Blob> customEmojisToReturn = new ArrayList<Blob>(); if (emojiStore != null){ customEmojis = emojiStore.getEmojiTable(); } for (int i = 0; i < tokenizedMessageContent.size(); i++){ if (validStrFlags.contains(tokenizedMessageContent.get(i))){ for (int j = tokenizedMessageContent.size() - 1; j > i; j--){ if(tokenizedMessageContent.get(i).equals(tokenizedMessageContent.get(j))){ String mark = tokenizedMessageContent.get(i); tokenizedMessageContent.set(i, markToHtml.get(mark)[0]); tokenizedMessageContent.set(j, markToHtml.get(mark)[1]); break; } } } if (emojiFlag.equals(tokenizedMessageContent.get(i))){ String shortcode = ""; Boolean validSyntax = false; int j; // finds the next emojiFlag, marking the end of the shortcode for (j = i+1; j < tokenizedMessageContent.size(); j++){ if(emojiFlag.equals(tokenizedMessageContent.get(j))){ validSyntax = true; break; } else{ shortcode += tokenizedMessageContent.get(j); } } // if there was a closing emojiFlag and the shortcode is valid // then replace the shortcode and flags with emoji html code // adds custom emoji to arraylist and '|' char to mark location // of the custom emoji if(validSyntax && customEmojis.containsKey(shortcode)){ customEmojisToReturn.add(customEmojis.get(shortcode)); tokenizedMessageContent.set(i, "|"); for (int k = j; k > i; k--){ tokenizedMessageContent.remove(k); } } // inserts the code corresponding to the native emoji shortcode else if (validSyntax && validEmojis.containsKey(shortcode)){ tokenizedMessageContent.set(i, validEmojis.get(shortcode)); for (int k = j; k > i; k--){ tokenizedMessageContent.remove(k); } } } if (linkPrefix.contains(tokenizedMessageContent.get(i))){ // if a link prefix is found, find the next ' ' space character // marking the end of the link, and insert the proper html syntax tokenizedMessageContent.add(i, markToHtml.get("LINK")[0]); for (int j = i+1; j < tokenizedMessageContent.size(); j++){ if (tokenizedMessageContent.get(j).equals(" ") || j == tokenizedMessageContent.size()-1){ if (tokenizedMessageContent.get(j).equals(" ")){ j--; } String linkContents = ""; for (int k = i+1; k < j+1; k++){ linkContents += tokenizedMessageContent.get(k); } tokenizedMessageContent.add(j+1, markToHtml.get("LINK")[1] + linkContents + markToHtml.get("LINK")[2]); i++; break; } } } } return customEmojisToReturn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface UATokenizerConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int WHITESPACE = 1;\n /** RegularExpression Id. */\n int CHAR = 5;\n /** RegularExpression Id. */\n int PICTURES = 6;\n /** RegularExpression Id. */\n int FILLERWORDS = 7;\n /** RegularExpression Id. */\n int THREELETTERWORDS = 8;\n /** RegularExpression Id. */\n int EMAIL = 9;\n /** RegularExpression Id. */\n int PRICES = 10;\n /** RegularExpression Id. */\n int DOMAIN = 11;\n /** RegularExpression Id. */\n int PHONE = 12;\n /** RegularExpression Id. */\n int PHONE2 = 13;\n /** RegularExpression Id. */\n int PHONE3 = 14;\n /** RegularExpression Id. */\n int WORD = 15;\n /** RegularExpression Id. */\n int HTML = 16;\n /** RegularExpression Id. */\n int HTML2 = 17;\n /** RegularExpression Id. */\n int HTMLCOMMENTS = 18;\n /** RegularExpression Id. */\n int NUMBER = 19;\n /** RegularExpression Id. */\n int TOPLEVELDOMAINS = 20;\n /** RegularExpression Id. */\n int SYMBOLS = 21;\n /** RegularExpression Id. */\n int OTHER = 22;\n /** RegularExpression Id. */\n int CHARACTERS = 23;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<CHAR>\",\n \"<PICTURES>\",\n \"<FILLERWORDS>\",\n \"<THREELETTERWORDS>\",\n \"<EMAIL>\",\n \"<PRICES>\",\n \"<DOMAIN>\",\n \"<PHONE>\",\n \"<PHONE2>\",\n \"<PHONE3>\",\n \"<WORD>\",\n \"<HTML>\",\n \"<HTML2>\",\n \"<HTMLCOMMENTS>\",\n \"<NUMBER>\",\n \"<TOPLEVELDOMAINS>\",\n \"<SYMBOLS>\",\n \"<OTHER>\",\n \"<CHARACTERS>\",\n };\n\n}", "public static void encode(ArrayList<Token> tokens) {\n String header = \"<!DOCTYPE html>\\n<html>\\n\\t<style>body { background-color: black; } </style>\\n\";\n String comment = \"\\t<!--\\n\\t\";\n String body = \"\\n\\t<body>\\n\\t\\t<p>\\n\"; \n String type = \"\";\n int count = 1;\n\n for (Token t : tokens) {\n type = t.getType();\n\n if (!(type.equals(\"NEWLINE\") || type.equals(\"TAB\") || type.equals(\"SPACE\"))) {\n comment = comment + t.getTokenString() + \" \";\n\n if (count % 8 == 0) {\n comment += \"\\n\\t\";\n }\n\n count++;\n }\n }\n\n comment += \"\\n\\t-->\";\n\n for (Token t : tokens) {\n body = body + setColour(t);\n }\n \n body = body + \"\\t\\t</p>\\n\\t</body>\\n</html>\";\n System.out.print(header + comment + body);\n }", "private void replaceWithHTML (int tagType, int numberOfChars) {\n\n lineDelete (ix [tagType], numberOfChars);\n lineInsert (ix [tagType], \"<\" + html [tagType] + \">\");\n if (numberOfChars > 1) {\n textIndex--;\n }\n lineDelete (numberOfChars);\n lineInsert (\"</\" + html [tagType] + \">\");\n resetLineIndex (tagType);\n }", "private static void initialize() {\n\n addToken(\"COMMENT1\", \"\\\\/\\\\/.*\");\n addToken(\"COMMENT2\", \"\\\\/\\\\*((?!\\\\*\\\\/)[\\\\w\\\\W])*\\\\*\\\\/\");\n\n // In case of unmatched comment key characters.\n addToken(\"COMMENT_L\", \"\\\\/\\\\*\");\n addToken(\"COMMENT_R\", \"\\\\*\\\\/\");\n\n // addToken(\"EOL\", \"\\\\n\");\n\n // Arithmetic operators.\n addToken(\"PLUS\", \"\\\\+\");\n addToken(\"MINUS\", \"-\");\n addToken(\"MULTIPLY\", \"\\\\*\");\n addToken(\"DIVIDE\", \"\\\\/\");\n\n addToken(\"EQUAL\", \"=\");\n\n addToken(\"LESS_THAN\", \"<\");\n addToken(\"GREATER_THAN\", \"<\");\n\n addToken(\"IF\", \"\\\\bif\\\\b\");\n addToken(\"ELSE\", \"\\\\belse\\\\b\");\n addToken(\"WHILE\", \"\\\\bwhile\\\\b\");\n\n addToken(\"RETURN\", \"\\\\breturn\\\\b\");\n\n addToken(\"THIS\", \"\\\\bthis\\\\b\");\n\n addToken(\"CLASS\", \"\\\\bclass\\\\b\");\n\n addToken(\"PUBLIC\", \"\\\\bpublic\\\\b\");\n addToken(\"PRIVATE\", \"\\\\bprivate\\\\b\");\n\n addToken(\"LENGTH\", \"\\\\blength\\\\b\");\n\n addToken(\"EXTENDS\", \"\\\\bextends\\\\b\");\n\n addToken(\"SYSTEM.OUT.PRINTLN\", \"\\\\bSystem\\\\.out\\\\.println\\\\b\");\n\n addToken(\"STATIC\", \"\\\\bstatic\\\\b\");\n\n addToken(\"NEW\", \"\\\\bnew\\\\b\");\n\n addToken(\"FLOAT\", \"\\\\bfloat\\\\b\");\n addToken(\"INT\", \"\\\\bint\\\\b\");\n addToken(\"CHARACTER\", \"\\\\bchar\\\\b\");\n addToken(\"BOOLEAN\", \"\\\\bboolean\\\\b\");\n addToken(\"String\", \"\\\\bString\\\\b\");\n addToken(\"VOID\", \"\\\\bvoid\\\\b\");\n\n addToken(\"TRUE\", \"\\\\btrue\\\\b\");\n addToken(\"FALSE\", \"\\\\bfalse\\\\b\");\n\n // Brackets.\n addToken(\"LEFT_CURLY_BRACKET\", \"\\\\{\");\n addToken(\"RIGHT_CURLY_BRACKET\", \"\\\\}\");\n addToken(\"LEFT_SQUARE_BRACKET\", \"\\\\[\");\n addToken(\"RIGHT_SQUARE_BRACKET\", \"\\\\]\");\n addToken(\"LEFT_ROUND_BRACKET\", \"\\\\(\");\n addToken(\"RIGHT_ROUND_BRACKET\", \"\\\\)\");\n\n addToken(\"COMMA\", \",\");\n addToken(\"SEMICOLON\", \";\");\n addToken(\"DOT\", \"\\\\.\");\n addToken(\"NOT\", \"\\\\!\");\n\n addToken(\"AND\", \"&&\");\n\n // Literals.\n addToken(\"FLOAT_LITERAL\", \"\\\\b[0-9]*\\\\.[0-9]*\\\\b\");\n addToken(\"INTEGRAL_LITERAL\", \"\\\\b[0-9]+\\\\b\");\n addToken(\"CHARACTER_LITERAL\", \"'.'\");\n addToken(\"STRING_LITERAL\", \"\\\".*\\\"\");\n\n addToken(\"Identifier\", \"\\\\b[a-zA-Z]+\\\\w*\\\\b\");\n\n addToken(\"SINGLE_QUOTE\", \"'\");\n addToken(\"DOUBLE_QUOTE\", \"\\\"\");\n }", "private void doTextualTokenReplacement(final Issue issue, final IssueResolutionAcceptor acceptor, final String label, final String descn, final String replacement) {\n acceptor.accept(issue, label, descn, NO_IMAGE, new IModification() {\n public void apply(final IModificationContext context) throws BadLocationException {\n IXtextDocument xtextDocument = context.getXtextDocument();\n xtextDocument.replace(issue.getOffset(), issue.getLength() + 1, replacement);\n }\n });\n }", "public static String setColour(Token token) {\n switch(token.getType()) {\n case \"RESERVED\":\n return \"\\t\\t\\t<font color=\\\"#FF00E8\\\" size=\\\"14\\\">\" + token.getValue().toLowerCase() + \"</font>\\n\";\n \n case \"ID\":\n int index = Integer.parseInt(token.getValue()) - 1;\n return \"\\t\\t\\t<font color=\\\"#FFF300\\\" size=\\\"14\\\">\" + symbols.get(index) + \"</font>\\n\";\n\n case \"TERMINAL\":\n return \"\\t\\t\\t<font color=\\\"#0FFF00\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n\n case \"INTEGER\":\n return \"\\t\\t\\t<font color=\\\"#005DFF\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n\n case \"DOUBLE\":\n return \"\\t\\t\\t<font color=\\\"#00FFC1\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n \n case \"COMPARATOR\":\n return \"\\t\\t\\t<font color=\\\"#FF9300\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n \n case \"ERROR\":\n return \"\\t\\t\\t<font color=\\\"#FF0000\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n\n case \"SPACE\":\n return \"\\t\\t\\t<font size=\\\"14\\\">&nbsp</font>\\n\";\n\n case \"TAB\":\n return \"\\t\\t\\t<font size=\\\"14\\\">&nbsp&nbsp&nbsp&nbsp</font>\\n\";\n \n case \"NEWLINE\":\n return \"\\t\\t</p>\\n\\t\\t<p>\\n\";\n\n case \"END\":\n return \"\\t\\t\\t<font color=\\\"#FFFFFF\\\" size=\\\"14\\\">\" + token.getValue() + \"</font>\\n\";\n\n }\n\n return \"\";\n }", "void set(ITokenizable aTokenizable);", "private static void buildTokens (Document doc, String block, boolean[] newToken,\n int offset, int nextBlockStart, boolean firstBlock) {\n int tokenStart = 0;\n \tfor (int i=1; i<=block.length(); i++) {\n \t\tif(newToken[i]) {\n \t\t\tint tokenEnd = i;\n \t\t\tFeatureSet fs = null;\n \t\t\t// if number, compute value (set value=-1 if not a number)\n \t\t\tint value = 0;\n \t\t\tfor (int j=tokenStart; j<tokenEnd; j++) {\n \t\t\t\tif (Character.isDigit(block.charAt(j))) {\n \t\t\t\t\tvalue = (value * 10) + Character.digit(block.charAt(j),10);\n \t\t\t\t} else if (block.charAt(j) == ',' && value > 0) {\n \t\t\t\t\t// skip comma if preceded by non-zero digit\n \t\t\t\t} else {\n \t\t\t\t\tvalue = -1;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\tString type = specialTokenType.get(tokenStart + offset);\n \t\t\tif (type != null) {\n \t\t\t\tfs = new FeatureSet (\"type\", type);\n \t\t\t} else if (Character.isUpperCase(block.charAt(tokenStart))) {\n \t\t\t\tif (firstBlock ||\n \t\t\t\t // for ACE\n \t\t\t\t lastToken.equals(\"_\") ||\n \t\t\t\t lastToken.equals(\"\\\"\") || lastToken.equals(\"``\") || lastToken.equals(\"`\")) {\n \t\t\t\t\tfs = new FeatureSet (\"case\", \"forcedCap\");\n \t\t\t\t} else {\n \t\t\t\t\tfs = new FeatureSet (\"case\", \"cap\");\n \t\t\t\t}\n \t\t\t} else if (value >= 0) {\n \t\t\t\tfs = new FeatureSet (\"intvalue\", new Integer(value));\n \t\t\t} else {\n \t\t\t\tfs = new FeatureSet ();\n \t\t\t}\n \t\t\t// create token\n \t\t\tint spanEnd = (tokenEnd == block.length()) ? nextBlockStart : tokenEnd + offset;\n \t\t\tString tokenString = block.substring(tokenStart, tokenEnd);\n \t\t\trecordToken (doc, tokenString, tokenStart + offset, spanEnd, fs);\n \t\t\ttokenStart = tokenEnd;\n \t\t\tlastToken = tokenString;\n \t\t}\n \t}\n\t}", "protected void configureTokenizer()\r\n\t{\r\n\t\tLogger.debug(\"Configuring syntax tokenizer\", Level.GUI,this);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tLogger.debug(\"Setting flags\", Level.GUI,this);\r\n\t\t\t// Use the standard configuration as a base\r\n\t\t\tm_properties = new StandardTokenizerProperties();\r\n\t\t\t// Return token positions and line comments\r\n\t\t\tm_properties.setParseFlags( Flags.F_TOKEN_POS_ONLY | Flags.F_RETURN_LINE_COMMENTS );\r\n\t\t\t// Python comments\r\n\t\t\t// Block comments are parsed manually\r\n\t\t\tm_properties.addLineComment(\"#\");\n\t\t\t// Python strings\r\n\t\t\tm_properties.addString(\"\\\"\", \"\\\"\", \"\\\"\");\r\n\t\t\tm_properties.addString(\"\\'\", \"\\'\", \"\\'\");\r\n\t\t\t// Normal whitespaces\r\n\t\t\tm_properties.addWhitespaces(TokenizerProperties.DEFAULT_WHITESPACES);\r\n\t\t\t// Normal separators\r\n\t\t\tm_properties.addSeparators(TokenizerProperties.DEFAULT_SEPARATORS);\r\n\t\t\t// Add our keywords\r\n\t\t\tLogger.debug(\"Adding keywords\", Level.GUI,this);\r\n\t\t\tfor(String word : m_listFunctions)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listModifiers)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listLanguage)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\tfor(String word : m_listConstants)\r\n\t\t\t{\r\n\t\t\t\tm_properties.addKeyword(word);\r\n\t\t\t}\r\n\t\t\t// Special symbols\r\n\t\t\tLogger.debug(\"Adding symbols\", Level.GUI,this);\r\n\t\t\tm_properties.addSpecialSequence(\"\\\"\\\"\\\"\");\r\n\t\t\tm_properties.addSpecialSequence(\"{\");\r\n\t\t\tm_properties.addSpecialSequence(\"}\");\r\n\t\t\tm_properties.addSpecialSequence(\"(\");\r\n\t\t\tm_properties.addSpecialSequence(\")\");\r\n\t\t\tm_properties.addSpecialSequence(\"[\");\r\n\t\t\tm_properties.addSpecialSequence(\"]\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private boolean performRearrange(List<CommonToken> tokens) throws BadLocationException\n\t{\n\t\tList<TagHolder> topLevelTags=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tint tagLevel=0;\n\t\tfor (int tokenIndex=0;tokenIndex<tokens.size();tokenIndex++)\n\t\t{\n\t\t\tCommonToken token=tokens.get(tokenIndex);\n\t\t\tSystem.out.println(token.getText());\n\t\t\tswitch (token.getType())\n\t\t\t{\n\t\t\t\tcase MXMLLexer.TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttagLevel++;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.END_TAG_OPEN:\n\t\t\t\t\ttagLevel--;\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.TAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.EMPTY_TAG_OPEN:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\t//capture tag\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\taddTagName(holder, tokens, tokenIndex);\n\t\t\t\t\t\tupdateCommentTagNames(topLevelTags, holder.mTagName);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t}\n\t\t\t\t\ttokenIndex=findToken(tokenIndex, tokens, MXMLLexer.EMPTYTAG_CLOSE);\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MXMLLexer.COMMENT:\n\t\t\t\t\tif (tagLevel==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tint previousWSIndex=findPreviousWhitespaceIndex(tokens, tokenIndex-1);\n\t\t\t\t\t\tTagHolder holder=new TagHolder(tokens.get(previousWSIndex), previousWSIndex);\n\t\t\t\t\t\ttopLevelTags.add(holder);\n\t\t\t\t\t\tmarkTopLevelTagEnd(tokenIndex, topLevelTags);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n//\t\t\t\tcase MXMLLexer.DECL_START:\n//\t\t\t\tcase MXMLLexer.CDATA:\n//\t\t\t\tcase MXMLLexer.PCDATA:\n//\t\t\t\tcase MXMLLexer.EOL:\n//\t\t\t\tcase MXMLLexer.WS:\n\t\t\t}\n\t\t}\n\t\t\n\t\tList<TagHolder> unsortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tunsortedList.addAll(topLevelTags);\n\t\t\n\t\t//sort the elements in the tag list based on the supplied ordering\n\t\tString ordering=mPrefs.getString(PreferenceConstants.MXMLRearr_RearrangeTagOrdering);\n\t\tString[] tagNames=ordering.split(PreferenceConstants.AS_Pref_Line_Separator);\n\t\tSet<String> usedTags=new HashSet<String>();\n\t\tfor (String tagName : tagNames) {\n\t\t\tif (!tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant))\n\t\t\t\tusedTags.add(tagName);\n\t\t}\n\t\tList<TagHolder> sortedList=new ArrayList<MXMLRearranger.TagHolder>();\n\t\tfor (String tagName : tagNames) \n\t\t{\n\t\t\tboolean isSpecOther=tagName.equals(PreferenceConstants.MXMLUnmatchedTagsConstant);\n\t\t\t//find all the items that match\n\t\t\tfor (int i=0;i<topLevelTags.size();i++)\n\t\t\t{\n\t\t\t\tTagHolder tagHolder=topLevelTags.get(i);\n\t\t\t\t\n\t\t\t\t//if the tagname matches the current specification \n\t\t\t\t//OR if the current spec is the \"other\" and the current tag doesn't match any in the list\n\t\t\t\tboolean tagMatches=false;\n\t\t\t\tif (!isSpecOther)\n\t\t\t\t{\n\t\t\t\t\tSet<String> testTag=new HashSet<String>();\n\t\t\t\t\ttestTag.add(tagName);\n\t\t\t\t\ttagMatches=matchesRegEx(tagHolder.mTagName, testTag);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttagMatches=(!matchesRegEx(tagHolder.mTagName, usedTags));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (tagMatches)\n\t\t\t\t{\n\t\t\t\t\ttopLevelTags.remove(i);\n\t\t\t\t\tsortedList.add(tagHolder);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsortedList.addAll(topLevelTags);\n\t\t\n\t\t//check for changes: if no changes, do nothing\n\t\tif (sortedList.size()!=unsortedList.size())\n\t\t{\n\t\t\t//error, just kick out\n\t\t\tSystem.out.println(\"Error performing mxml rearrange; tag count doesn't match\");\n\t\t\tmInternalError=\"Internal error replacing text: tag count doesn't match\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tboolean differences=false;\n\t\tfor (int i=0;i<sortedList.size();i++)\n\t\t{\n\t\t\tif (sortedList.get(i)!=unsortedList.get(i))\n\t\t\t{\n\t\t\t\tdifferences=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!differences)\n\t\t\treturn true; //succeeded, just nothing done\n\t\t\n\t\t//reconstruct document in the sorted order\n\t\tString source=mSourceDocument.get();\n\t\tStringBuffer newText=new StringBuffer();\n\t\tfor (TagHolder tagHolder : sortedList) \n\t\t{\n\t\t\tCommonToken startToken=tokens.get(tagHolder.mStartTokenIndex);\n\t\t\tCommonToken endToken=tokens.get(tagHolder.mEndTokenIndex);\n\t\t\tString data=source.substring(startToken.getStartIndex(), endToken.getStopIndex()+1);\n\t\t\tnewText.append(data);\n\t\t}\n\t\t\n\t\tint startOffset=tokens.get(unsortedList.get(0).mStartTokenIndex).getStartIndex();\n\t\tint endOffset=tokens.get(unsortedList.get(unsortedList.size()-1).mEndTokenIndex).getStopIndex()+1;\n\t\tString oldData=mSourceDocument.get(startOffset, endOffset-startOffset);\n\t\tif (!ActionScriptFormatter.validateNonWhitespaceCharCounts(oldData, newText.toString()))\n\t\t{\n\t\t\tmInternalError=\"Internal error replacing text: new text doesn't match replaced text(\"+oldData+\")!=(\"+newText.toString()+\")\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tmSourceDocument.replace(startOffset, endOffset-startOffset, newText.toString());\n\t\t\n\t\treturn true;\n\t}", "public interface LuaTokenTypes extends LuaDocElementTypes {\n //IFileElementType FILE = new IFileElementType(Language.findInstance(LuaLanguage.class));\n /**\n * Wrong token. Use for debugger needs\n */\n IElementType WRONG = TokenType.BAD_CHARACTER;\n\n\n /* **************************************************************************************************\n * Whitespaces & NewLines\n * ****************************************************************************************************/\n\n IElementType NL_BEFORE_LONGSTRING = new LuaElementType(\"newline after longstring stert bracket\");\n IElementType WS = TokenType.WHITE_SPACE;\n IElementType NEWLINE = new LuaElementType(\"new line\");\n\n TokenSet WHITE_SPACES_SET = TokenSet.create(WS, NEWLINE, TokenType.WHITE_SPACE, LDOC_WHITESPACE, NL_BEFORE_LONGSTRING);\n\n /* **************************************************************************************************\n * Comments\n * ****************************************************************************************************/\n\n IElementType SHEBANG = new LuaElementType(\"shebang - should ignore\");\n\n IElementType LONGCOMMENT = new LuaElementType(\"long comment\");\n IElementType SHORTCOMMENT = new LuaElementType(\"short comment\");\n\n IElementType LONGCOMMENT_BEGIN = new LuaElementType(\"long comment start bracket\");\n IElementType LONGCOMMENT_END = new LuaElementType(\"long comment end bracket\");\n\n TokenSet COMMENT_SET = TokenSet.create(SHORTCOMMENT, LONGCOMMENT, SHEBANG, LUADOC_COMMENT, LONGCOMMENT_BEGIN,\n LONGCOMMENT_END);\n\n TokenSet COMMENT_AND_WHITESPACE_SET = TokenSet.orSet(COMMENT_SET, WHITE_SPACES_SET);\n /* **************************************************************************************************\n * Identifiers\n * ****************************************************************************************************/\n\n IElementType NAME = new LuaElementType(\"identifier\");\n\n /* **************************************************************************************************\n * Integers & floats\n * ****************************************************************************************************/\n\n IElementType NUMBER = new LuaElementType(\"number\");\n\n /* **************************************************************************************************\n * Strings & regular expressions\n * ****************************************************************************************************/\n\n IElementType STRING = new LuaElementType(\"string\");\n IElementType LONGSTRING = new LuaElementType(\"long string\");\n\n IElementType LONGSTRING_BEGIN = new LuaElementType(\"long string start bracket\");\n IElementType LONGSTRING_END = new LuaElementType(\"long string end bracket\");\n\n\n\n TokenSet STRING_LITERAL_SET = TokenSet.create(STRING, LONGSTRING, LONGSTRING_BEGIN, LONGSTRING_END);\n\n\n IElementType UNTERMINATED_STRING = new LuaElementType(\"unterminated string\");\n\n\n /* **************************************************************************************************\n * Common tokens: operators, braces etc.\n * ****************************************************************************************************/\n\n\n IElementType DIV = new LuaElementType(\"/\");\n IElementType MULT = new LuaElementType(\"*\");\n IElementType LPAREN = new LuaElementType(\"(\");\n IElementType RPAREN = new LuaElementType(\")\");\n IElementType LBRACK = new LuaElementType(\"[\");\n IElementType RBRACK = new LuaElementType(\"]\");\n IElementType LCURLY = new LuaElementType(\"{\");\n IElementType RCURLY = new LuaElementType(\"}\");\n IElementType COLON = new LuaElementType(\":\");\n IElementType COMMA = new LuaElementType(\",\");\n IElementType DOT = new LuaElementType(\".\");\n IElementType ASSIGN = new LuaElementType(\"=\");\n IElementType SEMI = new LuaElementType(\";\");\n IElementType EQ = new LuaElementType(\"==\");\n IElementType NE = new LuaElementType(\"~=\");\n IElementType PLUS = new LuaElementType(\"+\");\n IElementType MINUS = new LuaElementType(\"-\");\n IElementType GE = new LuaElementType(\">=\");\n IElementType GT = new LuaElementType(\">\");\n IElementType EXP = new LuaElementType(\"^\");\n IElementType LE = new LuaElementType(\"<=\");\n IElementType LT = new LuaElementType(\"<\");\n IElementType ELLIPSIS = new LuaElementType(\"...\");\n IElementType CONCAT = new LuaElementType(\"..\");\n IElementType GETN = new LuaElementType(\"#\");\n IElementType MOD = new LuaElementType(\"%\");\n\n /* **************************************************************************************************\n * Keywords\n * ****************************************************************************************************/\n\n\n IElementType IF = new LuaElementType(\"if\");\n IElementType ELSE = new LuaElementType(\"else\");\n IElementType ELSEIF = new LuaElementType(\"elseif\");\n IElementType WHILE = new LuaElementType(\"while\");\n IElementType WITH = new LuaElementType(\"with\");\n\n IElementType THEN = new LuaElementType(\"then\");\n IElementType FOR = new LuaElementType(\"for\");\n IElementType IN = new LuaElementType(\"in\");\n IElementType RETURN = new LuaElementType(\"return\");\n IElementType BREAK = new LuaElementType(\"break\");\n\n IElementType CONTINUE = new LuaElementType(\"continue\");\n IElementType TRUE = new LuaElementType(\"true\");\n IElementType FALSE = new LuaElementType(\"false\");\n IElementType NIL = new LuaElementType(\"nil\");\n IElementType FUNCTION = new LuaElementType(\"function\");\n\n IElementType DO = new LuaElementType(\"do\");\n IElementType NOT = new LuaElementType(\"not\");\n IElementType AND = new LuaElementType(\"and\");\n IElementType OR = new LuaElementType(\"or\");\n IElementType LOCAL = new LuaElementType(\"local\");\n\n IElementType REPEAT = new LuaElementType(\"repeat\");\n IElementType UNTIL = new LuaElementType(\"until\");\n IElementType END = new LuaElementType(\"end\");\n\n /*\n IElementType MODULE = new LuaElementType(\"module\");\n IElementType REQUIRE = new LuaElementType(\"require\");\n */\n\n\n\n TokenSet KEYWORDS = TokenSet.create(DO, FUNCTION, NOT, AND, OR,\n WITH, IF, THEN, ELSEIF, THEN, ELSE,\n WHILE, FOR, IN, RETURN, BREAK,\n CONTINUE, LOCAL,\n REPEAT, UNTIL, END/*, MODULE, REQUIRE */);\n\n TokenSet BRACES = TokenSet.create(LCURLY, RCURLY);\n TokenSet PARENS = TokenSet.create(LPAREN, RPAREN);\n TokenSet BRACKS = TokenSet.create(LBRACK, RBRACK);\n\n TokenSet BAD_INPUT = TokenSet.create(WRONG, UNTERMINATED_STRING);\n \n TokenSet DEFINED_CONSTANTS = TokenSet.create(NIL, TRUE, FALSE);\n\n TokenSet UNARY_OP_SET = TokenSet.create(MINUS, GETN);\n\n TokenSet BINARY_OP_SET = TokenSet.create(\n MINUS, PLUS, DIV, MULT, EXP, MOD,\n CONCAT);\n\n TokenSet BLOCK_OPEN_SET = TokenSet.create(THEN, RPAREN, DO, ELSE, ELSEIF);\n TokenSet BLOCK_CLOSE_SET = TokenSet.create(END, ELSE, ELSEIF, UNTIL);\n\n TokenSet COMPARE_OPS = TokenSet.create(EQ, GE, GT, LT, LE, NE);\n TokenSet LOGICAL_OPS = TokenSet.create(AND, OR, NOT);\n TokenSet ARITHMETIC_OPS = TokenSet.create(MINUS, PLUS, DIV, EXP, MOD);\n\n TokenSet TABLE_ACCESS = TokenSet.create(DOT, COLON, LBRACK);\n\n TokenSet LITERALS_SET = TokenSet.create(NUMBER, NIL, TRUE, FALSE, STRING, LONGSTRING, LONGSTRING_BEGIN, LONGSTRING_END);\n\n TokenSet IDENTIFIERS_SET = TokenSet.create(NAME);\n\n TokenSet WHITE_SPACES_OR_COMMENTS = TokenSet.orSet(WHITE_SPACES_SET, COMMENT_SET);\n\n TokenSet OPERATORS_SET = TokenSet.orSet(BINARY_OP_SET, UNARY_OP_SET, COMPARE_OPS, TokenSet.create(ASSIGN));\n}", "public static String parseMarkupCodes(String format) {\r\n for (Map.Entry<String, String> entry : markupReplaceMap.entrySet()) {\r\n format = format.replace(entry.getKey(), entry.getValue());\r\n }\r\n return format;\r\n }", "protected void updateTokens(){}", "private void parse() {\n stack.push(documentNode);\n try {\n Token token = lexer.nextToken();\n boolean tagOpened = false;\n\n while (token.getType() != TokenType.EOF) {\n\n if (token.getType() == TokenType.TEXT) {\n TextNode textNode = new TextNode((String) token.getValue());\n ((Node) stack.peek()).addChild(textNode);\n\n } else if (token.getType() == TokenType.TAG_OPEN) {\n if (tagOpened) {\n throw new SmartScriptParserException(\"The tag was previously open but is not yet closed.\");\n }\n tagOpened = true;\n lexer.setState(LexerState.TAG);\n\n } else if (token.getType() == TokenType.TAG_NAME && token.getValue().equals(\"=\")) {\n parseEchoTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ff][Oo][Rr]\")) {\n parseForTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ee][Nn][Dd]\")) {\n parseEndTag();\n tagOpened = false;\n } else {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n token = lexer.nextToken();\n }\n if (!(stack.peek() instanceof DocumentNode)) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n } catch (LexerException | EmptyStackException exc) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n}", "default HtmlFormatter replace(Pattern pattern, String replacement) {\n return andThen(s -> pattern.matcher(s).replaceAll(replacement));\n }", "private static void testAllTokens() throws IOException {\n\t// open input and output files\n\tFileReader inFile = null;\n\tPrintWriter outFile = null;\n\ttry {\n\t inFile = new FileReader(\"inTokens\");\n\t outFile = new PrintWriter(new FileWriter(\"inTokens.out\"));\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inTokens not found.\");\n\t System.exit(-1);\n\t} catch (IOException ex) {\n\t System.err.println(\"inTokens.out cannot be opened.\");\n\t System.exit(-1);\n\t}\n\n\tSystem.err.println(\"TESTING ALL TOKENS: COMPARE inTokens and inTokens.out\\n\");\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\twhile (token.sym != sym.EOF) {\n\t switch (token.sym) {\n\t case sym.INT:\n\t\toutFile.println(\"int\");\n\t\tbreak;\n\t case sym.DBL:\n\t\toutFile.println(\"double\");\n\t\tbreak;\n\t case sym.VOID:\n\t\toutFile.println(\"void\");\n\t\tbreak;\n\t case sym.IF:\n\t\toutFile.println(\"if\");\n\t\tbreak;\n\t case sym.ELSE:\n\t\toutFile.println(\"else\");\n\t\tbreak;\n\t case sym.WHILE:\n\t\toutFile.println(\"while\");\n\t\tbreak;\n\t case sym.RETURN:\n\t\toutFile.println(\"return\");\n\t\tbreak;\n\t case sym.SCANF:\n\t\toutFile.println(\"scanf\");\n\t\tbreak;\n\t case sym.PRINTF:\n\t\toutFile.println(\"printf\");\n\t\tbreak;\n\t case sym.ID:\n\t\toutFile.println(((IdTokenVal)token.value).idVal);\n\t\tbreak;\n\t case sym.INTLITERAL:\n\t\toutFile.println(((IntLitTokenVal)token.value).intVal);\n\t\tbreak;\n\t case sym.DBLLITERAL:\n\t\toutFile.println(((DblLitTokenVal)token.value).dblVal);\n\t\tbreak;\n\t case sym.STRINGLITERAL:\n\t\toutFile.println(((StrLitTokenVal)token.value).strVal);\n\t\tbreak;\n\t case sym.LCURLY:\n\t\toutFile.println(\"{\");\n\t\tbreak;\n\t case sym.RCURLY:\n\t\toutFile.println(\"}\");\n\t\tbreak;\n\t case sym.LPAREN:\n\t\toutFile.println(\"(\");\n\t\tbreak;\n\t case sym.RPAREN:\n\t\toutFile.println(\")\");\n\t\tbreak;\n\t case sym.COMMA:\n\t\toutFile.println(\",\");\n\t\tbreak;\n\t case sym.ASSIGN:\n\t\toutFile.println(\"=\");\n\t\tbreak;\n\t case sym.SEMICOLON:\n\t\toutFile.println(\";\");\n\t\tbreak;\n\t case sym.PLUS:\n\t\toutFile.println(\"+\");\n\t\tbreak;\n\t case sym.MINUS:\n\t\toutFile.println(\"-\");\n\t\tbreak;\n\t case sym.STAR:\n\t\toutFile.println(\"*\");\n\t\tbreak;\n\t case sym.DIVIDE:\n\t\toutFile.println(\"/\");\n\t\tbreak;\n\t case sym.PLUSPLUS:\n\t\toutFile.println(\"++\");\n\t\tbreak;\n\t case sym.MINUSMINUS:\n\t\toutFile.println(\"--\");\n\t\tbreak;\n\t case sym.NOT:\n\t\toutFile.println(\"!\");\n\t\tbreak;\n\t case sym.AND:\n\t\toutFile.println(\"&&\");\n\t\tbreak;\n\t case sym.OR:\n\t\toutFile.println(\"||\");\n\t\tbreak;\n\t case sym.EQUALS:\n\t\toutFile.println(\"==\");\n\t\tbreak;\n\t case sym.NOTEQUALS:\n\t\toutFile.println(\"!=\");\n\t\tbreak;\n\t case sym.LESS:\n\t\toutFile.println(\"<\");\n\t\tbreak;\n\t case sym.GREATER:\n\t\toutFile.println(\">\");\n\t\tbreak;\n\t case sym.LESSEQ:\n\t\toutFile.println(\"<=\");\n\t\tbreak;\n\t case sym.GREATEREQ:\n\t\toutFile.println(\">=\");\n\t\tbreak;\n\t case sym.AMPERSAND:\n\t\toutFile.println(\"&\");\n\t\tbreak;\n\t case sym.INT_FORMAT:\n\t\toutFile.println(\"\\\"%d\\\"\");\n\t\tbreak;\n\t case sym.DBL_FORMAT:\n\t\toutFile.println(\"\\\"%f\\\"\");\n\t\tbreak;\n\t }\n\n\t token = scanner.next_token();\n\t}\n\toutFile.close();\n }", "protected void page () throws HTMLParseException {\r\n while (block.restSize () == 0) {\r\n switch (nextToken) {\r\n case END:\r\n return;\r\n case LT:\r\n lastTagStart = tagStart;\r\n tagmode = true;\r\n match (LT);\r\n tag (lastTagStart);\r\n break;\r\n case COMMENT:\r\n //block.addToken (new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n match (COMMENT);\r\n break;\r\n case SCRIPT:\r\n //block.addToken (new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n addTokenCheck(new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n match (SCRIPT);\r\n break;\r\n case STRING:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n break;\r\n case MT:\r\n if(!tagmode) {\r\n scanString();\r\n }\r\n default:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n }\r\n }\r\n }", "public GenToken scan(ParseString ps, GenToken token) throws ParserException {\n if (token != null) {\n //a token is already found, so handle it here\n GenToken result = token;\n if (token.getType().equals(\"id\")) {\n //token is an identifier\n String name = (String)token.get(\"name\");\n if ((name.equals(\"true\")) || (name.equals(\"false\"))) {\n //token is a boolean constant\n result = new GenToken(\"const\");\n result.add(\"value\", new Boolean(name));\n }\n if (name.equals(\"hash\")) {\n //token is a hash operator\n result = opToken(\"~\");\n }\n }\n return result;\n }\n //no token is found yet\n char ch = ps.nextChar();\n GenToken result = null;\n if (ch == ';') {\n result = new GenToken(\"semicol\");\n } else if (ch == ',') {\n result = new GenToken(\"comma\");\n } else if (ch == '(') {\n result = new GenToken(\"lbrack\");\n } else if (ch == ')') {\n result = new GenToken(\"rbrack\");\n } else if (ch == '{') {\n result = new GenToken(\"lacc\");\n } else if (ch == '}') {\n result = new GenToken(\"racc\");\n } else if (ch == '+') {\n char ach = ps.nextChar();\n if (ach=='=') result = new GenToken(\"plusassign\"); else {\n ps.returnChar(ach);\n result = opToken(\"+\");\n }\n } else if (ch == '-') {\n char ach = ps.nextChar();\n if (ach=='=') result = new GenToken(\"minusassign\"); else {\n ps.returnChar(ach);\n result = opToken(\"-\");\n }\n } else if (ch == '*') {\n result = opToken(\"*\");\n } else if (ch == '/') {\n result = opToken(\"/\");\n } else if (ch == '%') {\n result = opToken(\"%\");\n } else if (ch == '~') {\n result = opToken(\"~\");\n } else if (ch == '|') {\n char ach = ps.nextChar();\n if (ach == '|') result = opToken(\"||\"); else ps.returnChar(ach);\n } else if (ch == '&') {\n char ach = ps.nextChar();\n if (ach == '&') result = opToken(\"&&\"); else ps.returnChar(ach);\n } else if (ch == '=') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"==\"); else\n if (ach == '>') result = opToken(\"=>\"); else {\n ps.returnChar(ach);\n result = new GenToken(\"assign\");\n }\n } else if (ch == '!') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"!=\"); else {\n ps.returnChar(ach);\n result = opToken(\"!\");\n }\n } else if (ch == '<') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"<=\"); else {\n ps.returnChar(ach);\n result = opToken(\"<\");\n }\n } else if (ch == '>') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\">=\"); else {\n ps.returnChar(ach);\n result = opToken(\">\");\n }\n } else if (ch == '\"') {\n StringBuffer aconst = new StringBuffer();\n char ach = ps.nextChar();\n while ( ach != '\"' ) {aconst.append(ach); ach = ps.nextChar();}\n result = new GenToken(\"const\");\n result.add(\"value\", aconst.toString());\n } else if (Character.isDigit(ch)) {\n StringBuffer aconst = new StringBuffer();\n aconst.append(ch);\n char ach = ps.nextChar();\n while ( (Character.isDigit(ach)) || (ch == '.') ) {aconst.append(ach); ach = ps.nextChar();}\n ps.returnChar(ach);\n\n float f = Float.parseFloat(aconst.toString());\n result = new GenToken(\"const\");\n result.add(\"value\", new Float(f));\n } else {\n ps.returnChar(ch);\n }\n return result;\n }", "@Override\n\tpublic void apply(TokenStream stream) throws TokenizerException {\n\t\tcreateList();\n\t\tstream.reset();\n\t\twhile(stream.hasNext()){\n\t\t\tString ans=stream.next();\n\t\t\tans=ans.trim();\n\t\t\tif(ans.matches(\"\")){\n\t\t\t\tstream.previous();\n\t\t\t\tstream.remove();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tObject[] key=tokens.keySet().toArray();\n\t\t\tfor(int i=0 ;i<tokens.size(); i++){\n\t\t\t\tif(ans.contains(key[i].toString())){\n\t\t\t\t\tans=ans.replaceAll(key[i].toString(), tokens.get(key[i].toString()));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tstream.previous();\n\t\t\tstream.set(ans);\n\t\t\tstream.next();\n\n\t\t}\n\t\t//stream.reset();\n\t}", "abstract protected EnumSet<Parser.Flag> getParserFlags();", "protected int match (int token) throws HTMLParseException {\r\n int ts;\r\n\r\n if (nextToken != token)\r\n throw new HTMLParseException (\"Token: \" + getTokenString (token) + \" != \" + getTokenString (nextToken));\r\n\r\n if (pendingComment != null) {\r\n nextToken = LT;\r\n pendingComment = null;\r\n return SCRIPT;\r\n }\r\n while (index < length) {\r\n tagStart = index;\r\n stringValue = null;\r\n switch (pagepart[index++]) {\r\n case (int)' ':\r\n case (int)'\\t':\r\n case (int)'\\n':\r\n case (int)'\\r':\r\n // TODO evaluate strategy here, a continue here may result\r\n // in RabbIT cutting out whitespaces from the html-page.\r\n continue;\r\n case (int)'<':\r\n //System.out.println(\"[index]\" + index);\r\n ts = tagStart;\r\n if (isComment ()) {\r\n nextToken = scanComment ();\r\n tagStart = ts;\r\n return nextToken;\r\n } else{\r\n return nextToken = LT;\r\n }\r\n case (int)'>':\r\n return nextToken = MT;\r\n case (int)'=':\r\n \tif(pagepart[index] == '=' && index < length) {\r\n \t\treturn nextToken = scanString();\r\n \t} else {\r\n \t\tstringValue = \"=\";\r\n return nextToken = EQUALS;\r\n \t}\r\n case (int)'\"':\r\n if (tagmode)\r\n return nextToken = scanQuotedString ();\r\n // else fallthrough...\r\n case (int)'\\'':\r\n if (tagmode)\r\n return nextToken = scanQuotedString ();\r\n // else fallthrough...\r\n default:\r\n return nextToken = scanString ();\r\n }\r\n }\r\n\r\n return nextToken = END;\r\n }", "public interface SimpleGrParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int NumberLit = 6;\n /** RegularExpression Id. */\n int BooleanLit = 7;\n /** RegularExpression Id. */\n int StringLit = 8;\n /** RegularExpression Id. */\n int Null = 9;\n /** RegularExpression Id. */\n int And = 10;\n /** RegularExpression Id. */\n int Or = 11;\n /** RegularExpression Id. */\n int Not = 12;\n /** RegularExpression Id. */\n int Identifier = 13;\n /** RegularExpression Id. */\n int Equal = 14;\n /** RegularExpression Id. */\n int NotEqual = 15;\n /** RegularExpression Id. */\n int LessThan = 16;\n /** RegularExpression Id. */\n int LessEqualThan = 17;\n /** RegularExpression Id. */\n int GreaterThan = 18;\n /** RegularExpression Id. */\n int GreaterEqualThan = 19;\n /** RegularExpression Id. */\n int Plus = 20;\n /** RegularExpression Id. */\n int Minus = 21;\n /** RegularExpression Id. */\n int Div = 22;\n /** RegularExpression Id. */\n int Mult = 23;\n /** RegularExpression Id. */\n int Open = 24;\n /** RegularExpression Id. */\n int Close = 25;\n /** RegularExpression Id. */\n int Comma = 26;\n /** RegularExpression Id. */\n int Letter = 27;\n /** RegularExpression Id. */\n int Digit = 28;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"<NumberLit>\",\n \"<BooleanLit>\",\n \"<StringLit>\",\n \"\\\"NULL\\\"\",\n \"\\\"AND\\\"\",\n \"\\\"OR\\\"\",\n \"\\\"NOT\\\"\",\n \"<Identifier>\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"/\\\"\",\n \"\\\"*\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\",\\\"\",\n \"<Letter>\",\n \"<Digit>\",\n };\n\n}", "private static void testAllTokens(String arg) throws IOException \r\n {\r\n\t// open input file\r\n\tFileReader inFile = null;\r\n\tPrintWriter outFile = null;\r\n /**\r\n * Returns the file after testing to a .out file which contains the output else throws FileNotFoundException\r\n */\r\n\ttry {\r\n\t inFile = new FileReader(arg);\r\n\t outFile = new PrintWriter(new FileWriter(arg+\".out\"));\r\n\t } catch (FileNotFoundException ex) \r\n {\r\n\t System.err.println(\"File \" + arg + \" not found.\");\r\n\t System.exit(-1);\r\n\t } catch (IOException ex)\r\n {\r\n\t\tSystem.err.println(arg + \" cannot be opened. ------SKIPPED\");\r\n\t\treturn;\r\n }\r\n \r\n // create and call the scanner\r\n Yylex scanner = new Yylex(inFile);\r\n Symbol token = scanner.next_token();\r\n while (token.sym != sym.EOF) {\r\n switch (token.sym) {\r\n case sym.INT:\r\n outFile.println(\"Type: INT\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.BOOL:\r\n outFile.println(\"Type: BOOL\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\"); \r\n break;\r\n case sym.VOID:\r\n outFile.println(\"Type: VOID\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.TRUE:\r\n outFile.println(\"Type: TRUE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.FALSE:\r\n outFile.println(\"Type: FALSE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.IF:\r\n outFile.println(\"Type: IF\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.ELSE:\r\n outFile.println(\"Type: ELSE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.WHILE:\r\n outFile.println(\"Type: WHILE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.RETURN:\r\n outFile.println(\"Type: RETURN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.CIN:\r\n outFile.println(\"Type: CIN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.COUT:\r\n outFile.println(\"Type: COUT\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.ID:\r\n outFile.println(\"Type: ID\\nLineNum: \" + ((IdTokenVal)token.value).linenum + \"\\nCharNum: \" + ((IdTokenVal)token.value).charnum \r\n\t\t\t\t+ \"\\nValue: \" + ((IdTokenVal)token.value).idVal + \"\\n\");\r\n break;\r\n case sym.INTLITERAL: \r\n outFile.println(\"Type: INTLITERAL\\nLineNum: \" + ((IntLitTokenVal)token.value).linenum + \"\\nCharNum: \" + ((IntLitTokenVal)token.value).charnum \r\n\t\t\t\t+ \"\\nValue: \" + ((IntLitTokenVal)token.value).intVal + \"\\n\");\r\n break;\r\n case sym.STRINGLITERAL: \r\n outFile.println(\"Type: STRINGLITERAL\\nLineNum: \" + ((StrLitTokenVal)token.value).linenum + \"\\nCharNum: \" + ((StrLitTokenVal)token.value).charnum \r\n\t\t\t\t+ \"\\nValue: \" + ((StrLitTokenVal)token.value).strVal + \"\\n\");\r\n break; \r\n case sym.LCURLY:\r\n outFile.println(\"Type: LCURLY\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.RCURLY:\r\n outFile.println(\"Type: RCURLY\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.LPAREN:\r\n outFile.println(\"Type: LPAREN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.RPAREN:\r\n outFile.println(\"Type: RPAREN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.LSQBRACKET:\r\n outFile.println(\"Type: LSQBRACKET\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.RSQBRACKET:\r\n outFile.println(\"Type: RSQBRACKET\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.COMMA:\r\n outFile.println(\"Type: COMMA\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.ASSIGN:\r\n outFile.println(\"Type: ASSIGN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.SEMICOLON:\r\n outFile.println(\"Type: SEMICOLON\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.PLUS:\r\n outFile.println(\"Type: PLUS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.MINUS:\r\n outFile.println(\"Type: MINUS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.TIMES:\r\n outFile.println(\"Type: TIMES\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.DIVIDE:\r\n outFile.println(\"Type: DIVIDE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.NOT:\r\n outFile.println(\"Type: NOT\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.AND:\r\n outFile.println(\"Type: AND\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.OR:\r\n outFile.println(\"Type: OR\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.EQUALS:\r\n outFile.println(\"Type: EQUALS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.NOTEQUALS:\r\n outFile.println(\"Type: NOTEQUALS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.LESS:\r\n outFile.println(\"Type: LESS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.GREATER:\r\n outFile.println(\"Type: GREATER\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.LESSEQ:\r\n outFile.println(\"Type: LESSEQ\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.GREATEREQ:\r\n outFile.println(\"Type: GREATEREQ\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.WRITE:\r\n outFile.println(\"Type: WRITE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.READ:\r\n outFile.println(\"Type: READ\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n } // end switch\r\n\r\n token = scanner.next_token();\r\n } // end while\r\n outFile.close();\r\n }", "public SpellCheckInner withFlaggedTokens(List<SpellingFlaggedToken> flaggedTokens) {\n this.flaggedTokens = flaggedTokens;\n return this;\n }", "public static String transformGFM(IStoredSettings settings, String input, String repositoryName) {\r\n\t\tString text = input;\r\n\r\n\t\t// strikethrough\r\n\t\ttext = text.replaceAll(\"~~(.*)~~\", \"<s>$1</s>\");\r\n\t\ttext = text.replaceAll(\"\\\\{(?:-){2}(.*)(?:-){2}}\", \"<s>$1</s>\");\r\n\r\n\t\t// underline\r\n\t\ttext = text.replaceAll(\"\\\\{(?:\\\\+){2}(.*)(?:\\\\+){2}}\", \"<u>$1</u>\");\r\n\r\n\t\t// strikethrough, replacement\r\n\t\ttext = text.replaceAll(\"\\\\{~~(.*)~>(.*)~~}\", \"<s>$1</s><u>$2</u>\");\r\n\r\n\t\t// highlight\r\n\t\ttext = text.replaceAll(\"\\\\{==(.*)==}\", \"<span class='highlight'>$1</span>\");\r\n\r\n\t\tString canonicalUrl = settings.getString(Keys.web.canonicalUrl, \"https://localhost:8443\");\r\n\r\n\t\t// emphasize and link mentions\r\n\t\tString mentionReplacement = String.format(\" **[@$1](%1s/user/$1)**\", canonicalUrl);\r\n\t\ttext = text.replaceAll(\"\\\\s@([A-Za-z0-9-_]+)\", mentionReplacement);\r\n\r\n\t\t// link ticket refs\n\t\tString ticketReplacement = MessageFormat.format(\"$1[#$2]({0}/tickets?r={1}&h=$2)$3\", canonicalUrl, repositoryName);\n\t\ttext = text.replaceAll(\"([\\\\s,]+)#(\\\\d+)([\\\\s,:\\\\.\\\\n])\", ticketReplacement);\n\n\t\t// link commit shas\r\n\t\tint shaLen = settings.getInteger(Keys.web.shortCommitIdLength, 6);\r\n\t\tString commitPattern = MessageFormat.format(\"\\\\s([A-Fa-f0-9]'{'{0}'}')([A-Fa-f0-9]'{'{1}'}')\", shaLen, 40 - shaLen);\r\n\t\tString commitReplacement = String.format(\" [`$1`](%1$s/commit?r=%2$s&h=$1$2)\", canonicalUrl, repositoryName);\r\n\t\ttext = text.replaceAll(commitPattern, commitReplacement);\r\n\r\n\t\tString html = transformMarkdown(text);\r\n\t\treturn html;\r\n\t}", "void unexpectedTokenReplaced(Term unexpectedToken, Term replacementToken);", "void tokenize(TextDocument document, TokenFactory tokens) throws IOException;", "protected String parseHtml(String html) {\n\t\tString tokens = new String();\n\t\ttry {\n\t\t\tDocument document = Jsoup.parse(html);\n\t\t\tdocument.select(\"code,pre\").remove();\n\t\t\tString textcontent = document.text();\n\t\t\tArrayList<String> cleaned = removeSpecialChars(textcontent);\n\t\t\tfor (String token : cleaned) {\n\t\t\t\ttokens += token + \" \";\n\t\t\t}\n\t\t} catch (Exception exc) {\n\t\t\t// handle the exception\n\t\t}\n\t\treturn tokens;\n\t}", "public void step2(String theHTML)\n {\n this.messageReceiver2.receiveMessage(targetKeyWords+\":initializing the pattern matcher.....\\n\");\n\t patternMatcher=new PatternMatcher();\n\t\tpatternMatcher.output=messageArea;\n//\t\tpatternMatcher.init(theHTML,\".:;<> !#$%&()=^+*/\\\"@[]{}\\n\\r\");\n\t\tpatternMatcher.init(theHTML);\n\t\tthis.tokens=patternMatcher.getTokens();\n\t\tint i;\n\t\tint l=patternMatcher.sequenceLength;\n//\t\tresultArea.setText(\"contents of this page was tokenized.\\n\");\n }", "private void createTokens(String text) {\n int i;\n StringTokenizer sTokenizer = new StringTokenizer(text, \" \\n\", true);\n String tok;\n TokenNode node;\n String grWord = \"\\\\p{InGreek}*\";\n String enWord = \"[a-zA-Z]*\";\n String number = \"[0-9]*\";\n String prevChar = \"\";\n // The values of prevCharsType and currCharType are:\n // 0. nothing\n // 1. greek character\n // 2. english character\n // 3. digit\n // 4. dot\n // 5. other\n int prevCharsType, currCharType;\n String prevChars;\n char currChar;\n\n while (sTokenizer.hasMoreTokens()) {\n tok = sTokenizer.nextToken();\n if ((tok.compareTo(\" \") == 0) || (tok.compareTo(\"\\n\") == 0)) {\n prevChar = tok;\n } // if\n else {\n // If tok contains only one token, that is if tok is greek word or\n // english word or a number.\n if (Pattern.matches(grWord, tok) || Pattern.matches(enWord, tok) ||\n Pattern.matches(number, tok)) {\n node = new TokenNode(tok, false, prevChar);\n tokens.add(node);\n } // if\n else {\n prevCharsType = 0;\n prevChars = \"\";\n // For each characer of tok.\n for (i = 0; i < tok.length(); i++) {\n currChar = tok.charAt(i);\n // The type of currChar is...\n if (isGrLetter(currChar)) {\n currCharType = 1;\n } // if\n else if (isEnLetter(currChar)) {\n currCharType = 2;\n } // else if\n else if (isDigit(currChar)) {\n currCharType = 3;\n } // else if\n else if (currChar == '.') {\n currCharType = 4;\n } // else\n else {\n currCharType = 5;\n } // else\n\n // If currCharType is same as previousCharsType, add currChar to\n // prevChars. This is the case where prevCharsType is:\n // 1. Greek character\n // 2. English character\n // 3. Digit\n if (currCharType == prevCharsType) {\n prevChars = prevChars.concat(String.valueOf(currChar));\n } // if\n else {\n if (prevCharsType != 0) {\n node = new TokenNode(prevChars, false, prevChar);\n prevChar = \"\";\n tokens.add(node);\n } // if\n if (currCharType == 5) {\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n prevChar = \"\";\n tokens.add(node);\n prevChars = \"\";\n prevCharsType = 0;\n } // if\n else if (currCharType == 4) {\n if ( (i == (tok.length() - 1)) || (i == (tok.length() - 2))) {\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n } // if\n else {\n char ch1 = tok.charAt(i + 1);\n char ch2 = tok.charAt(i + 2);\n if ( (ch1 == '\\\\') && (ch2 == 'y')) {\n node = new TokenNode(String.valueOf(currChar), true, prevChar);\n i += 2;\n } // if\n else {\n if ( (ch1 == '\\\\') && (ch2 == 'n')) {\n i += 2;\n } // if\n node = new TokenNode(String.valueOf(currChar), false, prevChar);\n } // else\n } // else if\n\n prevChar = \"\";\n tokens.add(node);\n prevChars = \"\";\n prevCharsType = 0;\n } // else if\n // If currCharType is:\n // 1. Greek character\n // 2. English character\n // 3. Digit\n else {\n prevChars = String.valueOf(currChar);\n prevCharsType = currCharType;\n } // else\n } // else\n } // for\n if (prevCharsType != 0) {\n node = new TokenNode(prevChars, false, \"\");\n tokens.add(node);\n } // if\n } // else\n } // else\n } // while\n }", "void isToken(String p) {\r\n\t\tint n = 0;\r\n\t\t// switch statement that finds lexemes and tokens and add them to an arrayList\r\n\t\tString x = p;\r\n\t\tswitch (x) {\r\n\r\n\t\tcase \"int\":\r\n\t\t\tlexemes.add(\"int\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"double\":\r\n\t\t\tlexemes.add(\"double\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"<\":\r\n\t\t\tlexemes.add(\"<\");\r\n\t\t\ttokens.add(\"LESS_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"{\":\r\n\t\t\tlexemes.add(\"{\");\r\n\t\t\ttokens.add(\"OPEN_CURLB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"String\":\r\n\t\t\tlexemes.add(\"String\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"char\":\r\n\t\t\tlexemes.add(\"char\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"=\":\r\n\t\t\tlexemes.add(\"=\");\r\n\t\t\ttokens.add(\"ASSIGN_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"float\":\r\n\t\t\tlexemes.add(\"float\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"-\":\r\n\t\t\tlexemes.add(\"-\");\r\n\t\t\ttokens.add(\"SUB_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"+\":\r\n\t\t\tlexemes.add(\"+\");\r\n\t\t\ttokens.add(\"ADD_OPP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"*\":\r\n\t\t\tlexemes.add(\"*\");\r\n\t\t\ttokens.add(\"MUL_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"/\":\r\n\t\t\tlexemes.add(\"/\");\r\n\t\t\ttokens.add(\"DIV_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"%\":\r\n\t\t\tlexemes.add(\"%\");\r\n\t\t\ttokens.add(\"MOD_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \">\":\r\n\t\t\tlexemes.add(\">\");\r\n\t\t\ttokens.add(\"GREAT_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"}\":\r\n\t\t\tlexemes.add(\"}\");\r\n\t\t\ttokens.add(\"CLOSE_CULRB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"[\":\r\n\t\t\tlexemes.add(\"[\");\r\n\t\t\ttokens.add(\"OPEN_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \":\":\r\n\t\t\tlexemes.add(\":\");\r\n\t\t\ttokens.add(\"COLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"]\":\r\n\t\t\tlexemes.add(\"]\");\r\n\t\t\ttokens.add(\"CLOSED_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"(\":\r\n\t\t\tlexemes.add(\"(\");\r\n\t\t\ttokens.add(\"OPEN_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \",\":\r\n\t\t\tlexemes.add(\",\");\r\n\t\t\ttokens.add(\"COMMA\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \")\":\r\n\t\t\tlexemes.add(\")\");\r\n\t\t\ttokens.add(\"CLOSED_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \";\":\r\n\t\t\tlexemes.add(\";\");\r\n\t\t\ttokens.add(\"SEMICOLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlexemes.add(x);\r\n\t\t\ttokens.add(\"IDENT\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "void tokenchange();", "public static void parse(String tokens) {\n\t\tstate.set(STATE_PARSING);\n\t\t\n\t\ttokens = detectAliases(spellPunctuation(tokens));\n\t\t\n\t\tInstructionPossibilities possibilities = new InstructionPossibilities();\n\t\t\n\t\tScanner scanner = new Scanner(tokens);\n\t\tString token;\n\t\tInstructionPossibility instruction = null;\n\t\tboolean unresolved = true;\n\t\tboolean unknownAction = false;\n\t\t\n\t\twhile (scanner.hasNext()) {\n\t\t\tunresolved = true;\n\t\t\t\n\t\t\t//get next token\n\t\t\ttoken = scanner.next();\n\t\t\t\n\t\t\t//update instruction possibilities\n\t\t\tif (possibilities.resolve(token)) {\n\t\t\t\t/*\n\t\t\t\t * If possibilities have resolved into one mapping, fill in the rest of the tokens \n\t\t\t\t * and execute the action or learn the lesson.\n\t\t\t\t */\n\t\t\t\tinstruction = possibilities.finish(scanner);\n\t\t\t\t\n\t\t\t\tif (instruction == null) { //instruction did not match mapping\n\t\t\t\t\tLogger.logError(\"mapping candidate for given instruction failed to resolve\");\n\t\t\t\t\tunresolved = false;\n\t\t\t\t\tunknownAction = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tunresolved = false;\n\t\t\t\t\tCompiler.enqueue(instruction);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * If there are multiple remaining possibilities (or none), pick the best.\n\t\t */\n\t\tif (unresolved) {\n\t\t\tinstruction = possibilities.finish(true);\n\t\t\t\n\t\t\tif (instruction == null) { //there were no remaining possibilities\n\t\t\t\tunknownAction = true;\n\t\t\t\tLogger.logError(\"no mappings matched given instruction\");\n\t\t\t}\n\t\t\telse {\t\t\t\t\n\t\t\t\tCompiler.enqueue(instruction);\n\t\t\t}\n\t\t}\n\t\t\n\t\tscanner.close();\n\t\tif (unknownAction) {\n\t\t\t//notify unknown action\n\t\t\tLogger.log(\"perhaps \\\"\" + tokens + \"\\\" contains actions I've not learned yet?\", Logger.LEVEL_SPEECH);\n\t\t}\n\t\telse {\n\t\t\t//follow through\n\t\t\tCompiler.compile();\n\t\t}\n\t\t\n\t\t\n\t\tstate.set(STATE_DONE);\n\t\tstate.set(STATE_IDLE);\n\t}", "protected void setParsingFlag(eIsParsing flag) {\n \t\tisParsingStack.push(flag);\n \t}", "public void ParseTokens() throws IOException\n\t{\t\n\t\tboolean result = isValidProgram();\n\t\tSystem.out.println(result);\n\t}", "private void addTagName(TagHolder holder, List<CommonToken> tokens, int tokenIndex) \n\t{\n\t\ttokenIndex++;\n\t\tfor (;tokenIndex<tokens.size(); tokenIndex++)\n\t\t{\n\t\t\tCommonToken tok=tokens.get(tokenIndex);\n\t\t\tif (tok.getType()==MXMLLexer.GENERIC_ID)\n\t\t\t{\n\t\t\t\tholder.setTagName(tok.getText());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (tok.getText()!=null && tok.getText().trim().length()>0)\n\t\t\t{\n\t\t\t\t//kick out if non whitespace hit; ideally, we shouldn't ever hit here\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "private static List<TokenInfo> parsePara(String args) {\n\t\tList<TokenInfo> tokens = new ArrayList<TokenInfo>();\n\t\tStringBuffer token = new StringBuffer();\n\t\tint status = 0;\n\t\tfor_bp: for (int i = 0; i < args.length(); i++) {\n\t\t\tchar c = args.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase ' ': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '-': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstatus = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\tcase 'd':\n\t\t\tcase 'e':\n\t\t\tcase 'f':\n\t\t\tcase 'g':\n\t\t\tcase 'h':\n\t\t\tcase 'i':\n\t\t\tcase 'j':\n\t\t\tcase 'k':\n\t\t\tcase 'l':\n\t\t\tcase 'm':\n\t\t\tcase 'n':\n\t\t\tcase 'o':\n\t\t\tcase 'p':\n\t\t\tcase 'q':\n\t\t\tcase 'r':\n\t\t\tcase 's':\n\t\t\tcase 't':\n\t\t\tcase 'u':\n\t\t\tcase 'v':\n\t\t\tcase 'w':\n\t\t\tcase 'x':\n\t\t\tcase 'y':\n\t\t\tcase 'z':\n\t\t\tcase 'A':\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'D':\n\t\t\tcase 'E':\n\t\t\tcase 'F':\n\t\t\tcase 'G':\n\t\t\tcase 'H':\n\t\t\tcase 'I':\n\t\t\tcase 'J':\n\t\t\tcase 'K':\n\t\t\tcase 'L':\n\t\t\tcase 'M':\n\t\t\tcase 'N':\n\t\t\tcase 'O':\n\t\t\tcase 'P':\n\t\t\tcase 'Q':\n\t\t\tcase 'R':\n\t\t\tcase 'S':\n\t\t\tcase 'T':\n\t\t\tcase 'U':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'X':\n\t\t\tcase 'Y':\n\t\t\tcase 'Z': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '0':\n\t\t\tcase '1':\n\t\t\tcase '2':\n\t\t\tcase '3':\n\t\t\tcase '4':\n\t\t\tcase '5':\n\t\t\tcase '6':\n\t\t\tcase '7':\n\t\t\tcase '8':\n\t\t\tcase '9': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\ttoken.append('-');\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttokenIn(tokens, token, status);\n\n\t\treturn tokens;\n\t}", "public void update() {\r\n if (parseStyle == ParseStyle.CHARACTER) {\r\n wrapText();\r\n int begin = getPosition();\r\n int end = getPosition() + 1;\r\n setCurrentItem(new TextItem(begin, end, getText().substring(begin,\r\n end)));\r\n setPosition(end);\r\n } else if (parseStyle == ParseStyle.WORD) {\r\n if (matcher == null) {\r\n return;\r\n }\r\n wrapText();\r\n boolean matchFound = findNextToken();\r\n if (matchFound) {\r\n selectCurrentToken();\r\n } else {\r\n // No match found. Go back to the beginning of the text area\r\n // and select the first token found\r\n setPosition(0);\r\n updateMatcher();\r\n // Having wrapped to the beginning select the next token, if\r\n // there is one.\r\n if (findNextToken()) {\r\n selectCurrentToken();\r\n }\r\n }\r\n }\r\n\r\n }", "private void TokenEndTag(Token token, TreeConstructor treeConstructor) {\n\t\tswitch (token.getValue()) {\r\n\t\tcase \"head\":\r\n\t\tcase \"body\":\r\n\t\tcase \"html\":\r\n\t\tcase \"br\":\r\n\t\t\tTokenAnythingElse(token, treeConstructor, true);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tParserStacks.parseErrors\r\n\t\t\t\t\t.push(\"Unexpected end tag in BeforeHTML insertion mode\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "private void initRegs(){\n\n keyWordReg = \"\";\n\n for (String seg: keyWordMap.keySet()){\n\n keyWordReg += seg + \"|\";\n\n }\n\n symbolReg = \"[\\\\&\\\\*\\\\+\\\\(\\\\)\\\\.\\\\/\\\\,\\\\-\\\\]\\\\;\\\\~\\\\}\\\\|\\\\{\\\\>\\\\=\\\\[\\\\<]\";\n intReg = \"[0-9]+\";\n strReg = \"\\\"[^\\\"\\n]*\\\"\";\n idReg = \"[a-zA-Z_]\\\\w*\";\n\n tokenPatterns = Pattern.compile(idReg + \"|\" + keyWordReg + symbolReg + \"|\" + intReg + \"|\" + strReg);\n }", "public LagartoDOMBuilder enableHtmlMode() {\n\t\tconfig.ignoreWhitespacesBetweenTags = false; // collect all whitespaces\n\t\tconfig.parserConfig.setCaseSensitive(false); // HTML is case insensitive\n\t\tconfig.parserConfig.setEnableRawTextModes(true); // script and style tags are parsed as CDATA\n\t\tconfig.enabledVoidTags = true; // list of void tags\n\t\tconfig.selfCloseVoidTags = false; // don't self close void tags\n\t\tconfig.impliedEndTags = true; // some tags end is implied\n\t\tconfig.parserConfig.setEnableConditionalComments(false); // don't enable IE conditional comments\n\t\tconfig.parserConfig.setParseXmlTags(false); // enable XML mode in parsing\n\t\treturn this;\n\t}", "public interface PhpTokenTypes extends TokenType\n{\n\tIElementType PHP_OPENING_TAG = new PhpElementType(\"php opening tag\"); // <?php or <?\n\tIElementType PHP_ECHO_OPENING_TAG = new PhpElementType(\"php echo opening tag\"); // <?=\n\tIElementType PHP_CLOSING_TAG = new PhpElementType(\"php closing tag\"); // ?>\n\tIElementType UNKNOWN_SYMBOL = new PhpElementType(\"dunno what's that\");\n\tIElementType SYNTAX_ERROR = new PhpElementType(\"syntax error\");\n\n\tIElementType HTML = new PhpElementType(\"html\");\n\n\tIElementType kwIF = new PhpElementType(\"if\");\n\tIElementType kwELSEIF = new PhpElementType(\"elseif\");\n\tIElementType kwELSE = new PhpElementType(\"else\");\n\tIElementType kwFOR = new PhpElementType(\"for\");\n\tIElementType kwFOREACH = new PhpElementType(\"foreach keyword\");\n\tIElementType kwWHILE = new PhpElementType(\"while\");\n\tIElementType kwDO = new PhpElementType(\"do\");\n\tIElementType kwSWITCH = new PhpElementType(\"switch\");\n\tIElementType kwCASE = new PhpElementType(\"case\");\n\tIElementType kwDEFAULT = new PhpElementType(\"default keyword\");\n\tIElementType kwTRY = new PhpElementType(\"try\");\n\tIElementType kwCATCH = new PhpElementType(\"catch\");\n\tIElementType FINALLY_KEYWORD = new PhpElementType(\"FINALLY_KEYWORD\");\n\tIElementType kwDECLARE = new PhpElementType(\"declare\");\n\tIElementType kwBREAK = new PhpElementType(\"break\");\n\tIElementType kwENDIF = new PhpElementType(\"endif\");\n\tIElementType kwENDFOR = new PhpElementType(\"endfor\");\n\tIElementType kwENDFOREACH = new PhpElementType(\"endforeach\");\n\tIElementType kwENDWHILE = new PhpElementType(\"endwhile\");\n\tIElementType kwENDSWITCH = new PhpElementType(\"endswitch\");\n\tIElementType kwENDDECLARE = new PhpElementType(\"enddeclare\");\n\n\tIElementType kwEXIT = new PhpElementType(\"exit\");\n\tIElementType NAMESPACE_KEYWORD = new PhpElementType(\"NAMESPACE_KEYWORD\");\n\tIElementType USE_KEYWORD = new PhpElementType(\"USE_KEYWORD\");\n\tIElementType PRIVATE_KEYWORD = new PhpElementType(\"PRIVATE_KEYWORD\");\n\tIElementType kwFUNCTION = new PhpElementType(\"FUNCTION_KEYWORD\");\n\tIElementType kwNEW = new PhpElementType(\"new\");\n\tIElementType kwINSTANCEOF = new PhpElementType(\"instanceof\");\n\tIElementType kwCONST = new PhpElementType(\"CONST_KEYWORD\");\n\tIElementType kwLIST = new PhpElementType(\"list\");\n\tIElementType kwIMPLEMENTS = new PhpElementType(\"implements\");\n\tIElementType kwEVAL = new PhpElementType(\"eval\");\n\tIElementType FINAL_KEYWORD = new PhpElementType(\"final\");\n\tIElementType kwAS = new PhpElementType(\"as\");\n\tIElementType kwTHROW = new PhpElementType(\"throw\");\n\tIElementType kwEXCEPTION = new PhpElementType(\"exception\");\n\tIElementType kwINCLUDE_ONCE = new PhpElementType(\"include once\");\n\tIElementType kwCLASS = new PhpElementType(\"class\");\n\tIElementType ABSTRACT_KEYWORD = new PhpElementType(\"ABSTRACT_KEYWORD\");\n\tIElementType INTERFACE_KEYWORD = new PhpElementType(\"INTERFACE_KEYWORD\");\n\tIElementType TRAIT_KEYWORD = new PhpElementType(\"TRAIT_KEYWORD\");\n\tIElementType PUBLIC_KEYWORD = new PhpElementType(\"PUBLIC_KEYWORD\");\n\tIElementType STATIC_KEYWORD = new PhpElementType(\"STATIC_KEYWORD\");\n\tIElementType YIELD_KEYWORD = new PhpElementType(\"YIELD_KEYWORD\");\n\tIElementType FROM_KEYWORD = new PhpElementType(\"FROM_KEYWORD\");\n\tIElementType kwCLONE = new PhpElementType(\"clone keyword\");\n\tIElementType kwISSET = new PhpElementType(\"isset keyword\");\n\tIElementType kwEMPTY = new PhpElementType(\"empty keyword\");\n\tIElementType kwRETURN = new PhpElementType(\"return\");\n\tIElementType kwVAR = new PhpElementType(\"var\");\n\tIElementType kwPHP_USER_FILTER = new PhpElementType(\"php user filter\");\n\tIElementType kwCONTINUE = new PhpElementType(\"continue\");\n\tIElementType kwDIE = new PhpElementType(\"die\");\n\tIElementType PROTECTED_KEYWORD = new PhpElementType(\"PROTECTED_KEYWORD\");\n\tIElementType kwPRINT = new PhpElementType(\"print\");\n\tIElementType kwECHO = new PhpElementType(\"echo\");\n\tIElementType kwINCLUDE = new PhpElementType(\"include\");\n\tIElementType kwGLOBAL = new PhpElementType(\"global\");\n\tIElementType kwEXTENDS = new PhpElementType(\"extends\");\n\tIElementType kwUNSET = new PhpElementType(\"unset\");\n\tIElementType kwREQUIRE_ONCE = new PhpElementType(\"require once\");\n\tIElementType kwARRAY = new PhpElementType(\"array\");\n\tIElementType kwREQUIRE = new PhpElementType(\"require\");\n\n\n\tIElementType LINE_COMMENT = new PhpElementType(\"line comment\");\n\t//\tIElementType DOC_COMMENT = new PhpElementType(\"doc comment\");\n\tIElementType C_STYLE_COMMENT = new PhpElementType(\"C style comment\");\n\tIElementType VARIABLE = new PhpElementType(\"variable\");\n\tIElementType VARIABLE_NAME = new PhpElementType(\"variable name\"); // ???\n\tIElementType VARIABLE_OFFSET_NUMBER = new PhpElementType(\"array index\"); // ???\n\tIElementType DOLLAR_LBRACE = new PhpElementType(\"${\"); // ???\n\tIElementType IDENTIFIER = new PhpElementType(\"identifier\");\n\tIElementType ARROW = new PhpElementType(\"arrow\");\n\tIElementType SCOPE_RESOLUTION = new PhpElementType(\"scope resolution\");\n\tIElementType FLOAT_LITERAL = new PhpElementType(\"float\");\n\tIElementType INTEGER_LITERAL = new PhpElementType(\"integer\");\n\tIElementType BINARY_LITERAL = new PhpElementType(\"BINARY_LITERAL\");\n\tIElementType STRING_LITERAL = new PhpElementType(\"string\");\n\tIElementType STRING_LITERAL_SINGLE_QUOTE = new PhpElementType(\"single quoted string\");\n\tIElementType EXEC_COMMAND = new PhpElementType(\"exec command\");\n\tIElementType ESCAPE_SEQUENCE = new PhpElementType(\"escape sequence\");\n\tIElementType HEREDOC_START = new PhpElementType(\"HEREDOC_START\");\n\tIElementType HEREDOC_CONTENTS = new PhpElementType(\"HEREDOC_CONTENTS\");\n\tIElementType HEREDOC_END = new PhpElementType(\"HEREDOC_END\");\n\n\n\tIElementType chDOUBLE_QUOTE = new PhpElementType(\"double quote\");\n\tIElementType chSINGLE_QUOTE = new PhpElementType(\"single quote\");\n\tIElementType chBACKTRICK = new PhpElementType(\"backtrick\");\n\tIElementType LBRACE = new PhpElementType(\"{\");\n\tIElementType RBRACE = new PhpElementType(\"}\");\n\tIElementType LPAREN = new PhpElementType(\"(\");\n\tIElementType RPAREN = new PhpElementType(\")\");\n\tIElementType LBRACKET = new PhpElementType(\"[\");\n\tIElementType RBRACKET = new PhpElementType(\"]\");\n\tIElementType ELVIS = new PhpElementType(\"ELVIS\");\n\n\n\tIElementType opPLUS = new PhpElementType(\"plus\"); //+\n\tIElementType opUNARY_PLUS = new PhpElementType(\"unary plus\"); //+\n\tIElementType opMINUS = new PhpElementType(\"minus\"); //-\n\tIElementType opNEGATE = new PhpElementType(\"negate\"); //-\n\tIElementType opINCREMENT = new PhpElementType(\"increment\"); //++\n\tIElementType opDECREMENT = new PhpElementType(\"decrement\"); //--\n\tIElementType opASGN = new PhpElementType(\"assign\"); //=\n\tIElementType opNOT = new PhpElementType(\"not\"); //!\n\tIElementType opQUEST = new PhpElementType(\"ternary\"); //?\n\tIElementType opCOMMA = new PhpElementType(\"comma\"); //,\n\tIElementType opCONCAT = new PhpElementType(\"dot\"); //.\n\tIElementType opCOLON = new PhpElementType(\"colon\"); //:\n\tIElementType opSEMICOLON = new PhpElementType(\"semicolon\"); //;\n\tIElementType opBIT_AND = new PhpElementType(\"bit and\"); //&\n\tIElementType opBIT_OR = new PhpElementType(\"bit or\"); //|\n\tIElementType opBIT_XOR = new PhpElementType(\"bit xor\"); //^\n\tIElementType opBIT_NOT = new PhpElementType(\"bit not\"); //~\n\tIElementType opLIT_AND = new PhpElementType(\"literal and\"); //and\n\tIElementType opLIT_OR = new PhpElementType(\"literal or\"); //or\n\tIElementType opLIT_XOR = new PhpElementType(\"literal xor\"); //xor\n\tIElementType opEQUAL = new PhpElementType(\"equals\"); //==\n\tIElementType opNOT_EQUAL = new PhpElementType(\"not equals\"); //!=\n\tIElementType opIDENTICAL = new PhpElementType(\"identical\"); //===\n\tIElementType opNOT_IDENTICAL = new PhpElementType(\"not identical\"); //!==\n\tIElementType opPLUS_ASGN = new PhpElementType(\"plus assign\"); //+=\n\tIElementType opMINUS_ASGN = new PhpElementType(\"minus assign\"); //-=\n\tIElementType opMUL_ASGN = new PhpElementType(\"multiply assign\"); //*=\n\tIElementType opDIV_ASGN = new PhpElementType(\"division assign\"); ///=\n\tIElementType opREM_ASGN = new PhpElementType(\"division remainder assign\"); //%=\n\tIElementType opSHIFT_RIGHT = new PhpElementType(\"shift right\"); //>>\n\tIElementType opSHIFT_RIGHT_ASGN = new PhpElementType(\"shift right assign\"); //>>=\n\tIElementType opSHIFT_LEFT = new PhpElementType(\"shift left\"); //<<\n\tIElementType opSHIFT_LEFT_ASGN = new PhpElementType(\"shift left assign\"); //<<=\n\tIElementType opAND_ASGN = new PhpElementType(\"and assign\"); //&&=\n\tIElementType opOR_ASGN = new PhpElementType(\"or assign\"); //||=\n\tIElementType opBIT_AND_ASGN = new PhpElementType(\"bit and assign\"); //&=\n\tIElementType opBIT_OR_ASGN = new PhpElementType(\"bit or assign\"); //|=\n\tIElementType opBIT_XOR_ASGN = new PhpElementType(\"bit xor assign\"); //^=\n\tIElementType opAND = new PhpElementType(\"and\"); //&&\n\tIElementType opOR = new PhpElementType(\"or\"); //||\n\tIElementType opLESS = new PhpElementType(\"less than\"); //<\n\tIElementType opLESS_OR_EQUAL = new PhpElementType(\"less than or equal\"); //<=\n\tIElementType opGREATER = new PhpElementType(\"greater than\"); //>\n\tIElementType opGREATER_OR_EQUAL = new PhpElementType(\"greater than or equal\"); //>=\n\tIElementType opCONCAT_ASGN = new PhpElementType(\"concatenation assign\"); //.=\n\tIElementType opSILENCE = new PhpElementType(\"error silence\"); //@\n\tIElementType opDIV = new PhpElementType(\"division\"); ///\n\tIElementType SLASH = new PhpElementType(\"SLASH\"); // \\\n\tIElementType opMUL = new PhpElementType(\"multiply\"); //*\n\tIElementType opREM = new PhpElementType(\"remainder\"); //%\n\tIElementType HASH_ARRAY = new PhpElementType(\"HASH_ARRAY\"); //=>\n\tIElementType ELLIPSIS = new PhpElementType(\"ELLIPSIS\"); //...\n\n\t//casting\n\tIElementType opINTEGER_CAST = new PhpElementType(\"integer cast\");\n\tIElementType opFLOAT_CAST = new PhpElementType(\"float cast\");\n\tIElementType opBOOLEAN_CAST = new PhpElementType(\"boolean cast\");\n\tIElementType opSTRING_CAST = new PhpElementType(\"string cast\");\n\tIElementType opARRAY_CAST = new PhpElementType(\"array cast\");\n\tIElementType opOBJECT_CAST = new PhpElementType(\"object cast\");\n\tIElementType opUNSET_CAST = new PhpElementType(\"unset cast\");\n\n\tIElementType DOLLAR = new PhpElementType(\"dollar\");\n\n\tIElementType EXPR_SUBST_BEGIN = new PhpElementType(\"expression substitution begin\");\n\tIElementType EXPR_SUBST_END = new PhpElementType(\"expression substitution end\");\n\n\n\tTokenSet tsPHP_OPENING_TAGS = TokenSet.create(PHP_OPENING_TAG, PHP_ECHO_OPENING_TAG);\n\n\tTokenSet tsSTATEMENT_PRIMARY = TokenSet.create(kwIF, kwFOR, kwFOREACH, kwWHILE, kwDO, kwBREAK, kwCONTINUE, kwECHO, kwGLOBAL, kwFUNCTION, kwUNSET, kwSWITCH, kwTRY\n\n\t);\n\n\tTokenSet SOFT_KEYWORDS = TokenSet.create(FROM_KEYWORD);\n\n\tTokenSet KEYWORDS = TokenSet.orSet(tsSTATEMENT_PRIMARY, TokenSet.create(ABSTRACT_KEYWORD, kwARRAY, kwAS, kwBREAK, kwCASE, kwCATCH, kwCLASS, TRAIT_KEYWORD, kwCLONE, kwCONST, kwCONTINUE,\n\t\t\tkwDEFAULT, kwDIE, kwECHO, kwELSE, kwELSEIF, kwEMPTY, kwENDDECLARE, kwENDFOR, kwENDFOREACH, kwENDIF, kwENDSWITCH, kwENDWHILE, kwEVAL, kwEXCEPTION, kwEXIT, kwEXTENDS, FINAL_KEYWORD,\n\t\t\tkwFUNCTION, kwGLOBAL, kwIMPLEMENTS, kwINCLUDE, kwINCLUDE_ONCE, INTERFACE_KEYWORD, kwISSET, kwLIST, kwPHP_USER_FILTER, kwPRINT, PRIVATE_KEYWORD, PROTECTED_KEYWORD, PUBLIC_KEYWORD,\n\t\t\tkwREQUIRE, kwREQUIRE_ONCE, kwRETURN, STATIC_KEYWORD, kwTHROW, kwUNSET, kwVAR, kwNEW, kwINSTANCEOF, NAMESPACE_KEYWORD, USE_KEYWORD, FINALLY_KEYWORD, YIELD_KEYWORD));\n\n\tTokenSet tsMATH_OPS = TokenSet.create(opPLUS, opMINUS, opMUL, opDIV, opNEGATE, opREM);\n\n\tTokenSet tsBIT_OPS = TokenSet.create(opBIT_AND, opBIT_NOT, opBIT_OR, opBIT_XOR, opSHIFT_LEFT, opSHIFT_RIGHT);\n\n\tTokenSet tsASGN_OPS = TokenSet.create(opAND_ASGN, opBIT_AND_ASGN, opBIT_OR_ASGN, opBIT_XOR_ASGN, opCONCAT_ASGN, opMINUS_ASGN, opMUL_ASGN, opOR_ASGN, opPLUS_ASGN, opSHIFT_RIGHT_ASGN,\n\t\t\topSHIFT_LEFT_ASGN, opREM_ASGN, opASGN);\n\n\tTokenSet tsCAST_OPS = TokenSet.create(opINTEGER_CAST, opFLOAT_CAST, opBOOLEAN_CAST, opSTRING_CAST, opARRAY_CAST, opOBJECT_CAST, opUNSET_CAST);\n\n\tTokenSet tsUNARY_PREFIX_OPS = TokenSet.orSet(TokenSet.create(opNOT, opDECREMENT, opINCREMENT, opNEGATE, opBIT_NOT, opSILENCE, opUNARY_PLUS, kwNEW, kwPRINT), tsCAST_OPS);\n\n\tTokenSet tsUNARY_POSTFIX_OPS = TokenSet.create(opDECREMENT, opINCREMENT);\n\n\tTokenSet tsUNARY_OPS = TokenSet.orSet(tsUNARY_PREFIX_OPS, tsUNARY_POSTFIX_OPS);\n\n\tTokenSet tsCOMPARE_OPS = TokenSet.create(opEQUAL, opNOT_EQUAL, opIDENTICAL, opNOT_IDENTICAL, opGREATER, opLESS, opGREATER_OR_EQUAL, opLESS_OR_EQUAL);\n\n\tTokenSet tsLOGICAL_OPS = TokenSet.create(opAND, opOR);\n\n\tTokenSet tsTERNARY_OPS = TokenSet.create(opQUEST/*, opCOLON*/);\n\n\tTokenSet tsBINARY_OPS = TokenSet.orSet(TokenSet.create(opLIT_AND, opLIT_OR, opLIT_XOR, opCONCAT, kwINSTANCEOF), tsASGN_OPS, tsBIT_OPS, tsCOMPARE_OPS, tsMATH_OPS, tsLOGICAL_OPS, tsTERNARY_OPS);\n\n\tTokenSet tsOPERATORS = TokenSet.orSet(tsBINARY_OPS, tsUNARY_OPS);\n\n\tTokenSet tsNUMBERS = TokenSet.create(INTEGER_LITERAL, BINARY_LITERAL, FLOAT_LITERAL);\n\n\tTokenSet tsSTRINGS = TokenSet.create(STRING_LITERAL, STRING_LITERAL_SINGLE_QUOTE);\n\n\tTokenSet tsSTRING_EDGE = TokenSet.create(chDOUBLE_QUOTE, chSINGLE_QUOTE, chBACKTRICK);\n\n\tTokenSet tsEXPR_SUBST_MARKS = TokenSet.create(EXPR_SUBST_BEGIN, EXPR_SUBST_END);\n\n\tTokenSet tsOPENING_BRACKETS = TokenSet.create(LBRACE, LBRACKET, LPAREN);\n\n\tTokenSet tsCLOSING_BRACKETS = TokenSet.create(RBRACE, RBRACKET, RPAREN);\n\n\tTokenSet tsBRACKETS = TokenSet.orSet(tsOPENING_BRACKETS, tsCLOSING_BRACKETS);\n\n\tTokenSet tsREFERENCE_FIRST_TOKENS = TokenSet.create(VARIABLE, IDENTIFIER, DOLLAR);\n\n\tTokenSet tsOPERAND_FIRST_TOKENS = TokenSet.orSet(tsREFERENCE_FIRST_TOKENS, tsNUMBERS, tsSTRING_EDGE, TokenSet.create(kwARRAY, kwEMPTY, kwEXIT, kwISSET));\n\n\tTokenSet tsPRIMARY_TOKENS = TokenSet.orSet(tsOPERAND_FIRST_TOKENS, tsUNARY_OPS, TokenSet.create(LPAREN));\n\n\tTokenSet tsTERMINATOR = TokenSet.create(opSEMICOLON, PHP_CLOSING_TAG);\n\n\tTokenSet tsHEREDOC_IDS = TokenSet.create(HEREDOC_START, HEREDOC_END);\n\n\tTokenSet tsCOMMON_SCALARS = TokenSet.orSet(tsNUMBERS, TokenSet.create(STRING_LITERAL, STRING_LITERAL_SINGLE_QUOTE));\n\n\tTokenSet tsJUNKS = TokenSet.create(HTML, PHP_OPENING_TAG, PHP_ECHO_OPENING_TAG);\n\n\tTokenSet tsMODIFIERS = TokenSet.create(PRIVATE_KEYWORD, PROTECTED_KEYWORD, PUBLIC_KEYWORD, ABSTRACT_KEYWORD, FINAL_KEYWORD, STATIC_KEYWORD);\n\n\tTokenSet tsVARIABLE_MODIFIERS = TokenSet.orSet(tsMODIFIERS, TokenSet.create(kwVAR));\n\n\tTokenSet tsEXPRESSION_FIRST_TOKENS = TokenSet.orSet(tsCOMMON_SCALARS, tsCAST_OPS, TokenSet.create(kwPRINT, kwARRAY, kwEXIT, kwREQUIRE, kwREQUIRE_ONCE, kwINCLUDE, kwINCLUDE_ONCE, kwEVAL, kwEMPTY,\n\t\t\tkwISSET, kwNEW, kwCLONE, kwLIST), TokenSet.create(VARIABLE, VARIABLE_NAME, DOLLAR, IDENTIFIER, opINCREMENT, opDECREMENT, opPLUS, opMINUS, opNOT, opBIT_NOT, opSILENCE, LPAREN,\n\t\t\tchDOUBLE_QUOTE, chBACKTRICK, HEREDOC_START));\n\n\tTokenSet tsSTATEMENT_FIRST_TOKENS = TokenSet.create(kwIF, kwWHILE, kwDO, kwFOR, kwSWITCH, kwBREAK, kwCONTINUE, kwRETURN, kwGLOBAL, STATIC_KEYWORD, kwECHO, kwUNSET, kwFOREACH, kwDECLARE, kwTRY,\n\t\t\tkwTHROW);\n}", "private void TokenAnythingElse(Token token,\r\n\t\t\tTreeConstructor treeConstructor, boolean reprocessToken) {\n\t\tnew StackUpdater().updateStack(\"html\", \"element\");\r\n\t\tParser.currentMode = InsertionMode.before_head;\r\n\t\tif (reprocessToken)\r\n\t\t\ttreeConstructor.processToken(token);\r\n\t}", "public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}", "@Override\n\tprotected void highlightText(int start, int length) {\n\n\t\tsuper.highlightText(start, length);\n\n\t\ttry {\n\t\t\tint end = this.getLength();\n\n\t\t\tString content = this.getText(0, end);\n\n\t\t\t// TODO :: actually use the start and length passed in as arguments!\n\t\t\t// (currently, they are just being ignored...)\n\t\t\tstart = 0;\n\t\t\tend -= 1;\n\n\t\t\tchar lastDelimiter = ' ';\n\n\t\t\twhile (start <= end) {\n\n\t\t\t\t// while we have a delimiter...\n\t\t\t\tchar curChar = content.charAt(start);\n\t\t\t\twhile (isDelimiter(curChar)) {\n\n\t\t\t\t\tlastDelimiter = curChar;\n\n\t\t\t\t\t// ... check for the start of an object\n\t\t\t\t\tif (curChar == '{') {\n\t\t\t\t\t\tstart = highlightObject(content, start, end);\n\n\t\t\t\t\t// ... check for a comment (which starts with a delimiter)\n\t\t\t\t\t} else if (isCommentStart(content, start, end)) {\n\t\t\t\t\t\tstart = highlightComment(content, start, end);\n\n\t\t\t\t\t// ... and check for a quoted string\n\t\t\t\t\t} else if (isStringDelimiter(content.charAt(start))) {\n\n\t\t\t\t\t\t// then let's get that string!\n\t\t\t\t\t\tboolean singleForMultiline = false;\n\t\t\t\t\t\tboolean threeForMultiline = false;\n\t\t\t\t\t\tstart = highlightString(content, start, end, singleForMultiline, threeForMultiline);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// please highlight the delimiter in the process ;)\n\t\t\t\t\t\tif (!Character.isWhitespace(curChar)) {\n\t\t\t\t\t\t\tthis.setCharacterAttributes(start, 1, attrReservedChar, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (start < end) {\n\n\t\t\t\t\t\t// jump forward and try again!\n\t\t\t\t\t\tstart++;\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tcurChar = content.charAt(start);\n\t\t\t\t}\n\n\t\t\t\t// or any other token instead?\n\t\t\t\tstart = highlightOther(content, start, end, lastDelimiter);\n\t\t\t}\n\n\t\t} catch (BadLocationException e) {\n\t\t\t// oops!\n\t\t}\n\t}", "private static String parseToken(String pattern, int[] indexRef) {\n StringBuilder buf = new StringBuilder();\n\n int i = indexRef[0];\n int length = pattern.length();\n\n char c = pattern.charAt(i);\n if (c == '%' && i + 1 < length && pattern.charAt(i+1) != '%') {\n //Grab pattern tokens\n c = pattern.charAt(++i);\n //0 is ignored for input, and this ignores alternative religious eras\n if ((c == '0' || c == 'E') && i + 1 >= length) c = pattern.charAt(++i);\n buf.append('%');\n buf.append(c);\n } else { // Grab all else as text\n buf.append('\\''); // mark literals with ' in first place\n buf.append(c);\n for (i++; i < length;i++) {\n c = pattern.charAt(i);\n if (c == '%' ) { // consume literal % otherwise break\n if (i + 1 < length && pattern.charAt(i + 1) == '%') i++;\n else { i--; break; }\n }\n buf.append(c);\n }\n }\n\n indexRef[0] = i;\n return buf.toString();\n }", "public void tokenize(InputSource is) throws SAXException, IOException {\n if (is == null) {\n throw new IllegalArgumentException(\"InputSource was null.\");\n }\n swallowBom = true;\n this.systemId = is.getSystemId();\n this.publicId = is.getPublicId();\n this.reader = is.getCharacterStream();\n CharsetDecoder decoder = decoderFromExternalDeclaration(is.getEncoding());\n if (this.reader == null) {\n InputStream inputStream = is.getByteStream();\n if (inputStream == null) {\n throw new SAXException(\"Both streams in InputSource were null.\");\n }\n if (decoder == null) {\n this.reader = new HtmlInputStreamReader(inputStream,\n errorHandler, this, this);\n } else {\n this.reader = new HtmlInputStreamReader(inputStream,\n errorHandler, this, this, decoder);\n }\n }\n contentModelFlag = ContentModelFlag.PCDATA;\n escapeFlag = false;\n inContent = true;\n pos = -1;\n cstart = -1;\n line = 1;\n linePrev = 1;\n col = 0;\n colPrev = 0;\n colPrevPrev = 0;\n prev = '\\u0000';\n bufLen = 0;\n nonAsciiProhibited = false;\n alreadyComplainedAboutNonAscii = false;\n html4 = false;\n alreadyWarnedAboutPrivateUseCharacters = false;\n metaBoundaryPassed = false;\n tokenHandler.start(this);\n for (int i = 0; i < characterHandlers.length; i++) {\n CharacterHandler ch = characterHandlers[i];\n ch.start();\n }\n wantsComments = tokenHandler.wantsComments();\n try {\n if (swallowBom) {\n // Swallow the BOM\n char c = read();\n if (c == '\\uFEFF') {\n col = 0;\n } else {\n unread(c);\n }\n }\n dataState();\n } finally {\n systemIdentifier = null;\n publicIdentifier = null;\n doctypeName = null;\n tagName = null;\n attributeName = null;\n tokenHandler.eof();\n for (int i = 0; i < characterHandlers.length; i++) {\n CharacterHandler ch = characterHandlers[i];\n ch.end();\n }\n reader.close();\n }\n }", "private void printToken(String tokenType, String token) {\n tabPrinter();\n if (tokenType.equals(JackTokenizer.SYMBOL_TOKEN_TYPE)) {\n tagBracketPrinter(tokenType, FULL_TAG_BRACKET, replaceOpSymbol(token.charAt(0)));\n } else if (tokenType.equals(JackTokenizer.STRING_CONST_TOKEN_TYPE)) {\n tagBracketPrinter(tokenType, FULL_TAG_BRACKET, replaceOpSymbol(token));\n } else {\n tagBracketPrinter(tokenType, FULL_TAG_BRACKET, token);\n }\n }", "public TokensParser(Token<?>... tokens) {\n this.tokens = tokens;\n\n setParserName(\"tokens\");\n }", "private static String convertForHTML(final String src) {\n String s = src;\n for (Map.Entry<String, String> entry: HTML_CONVERSIONS.entrySet()) s = s.replace(entry.getKey(), entry.getValue());\n return s;\n }", "public static String replaceBlock(String text, String token, String replacement)\n {\n String newText = \"\";\n String remainder = text;\n while(true){\n int index = remainder.indexOf(token);\n if(index < 0)\n break;\n // Determine indent level\n String left = remainder.substring(0,index);\n int newLineIndex = left.lastIndexOf(\"\\n\");\n int indent = index - newLineIndex - 1;\n String indented = hangingIndent(replacement,indent);\n String right = remainder.substring(index);\n String newRight = right.replaceFirst(token,indented);\n newText += left + newRight.substring(0,indented.length());\n remainder = newRight.substring(indented.length());\n remainder = remainder;\n }\n return newText + remainder;\n }", "private void updateToken() throws IOException\n\t{\n\t\ttheCurrentToken = theNextToken;\n\t\ttheNextToken = theScanner.GetToken();\n\t}", "public void tokenize(String input, List<TokenInfo> tokens);", "public void run()\n {\n mkdStack = translateMacroStack(mkdStack);\n //translate mkd to html\n translateMkdToHtml();\n //send html string to global variable\n Compiler.htmlString = htmlStackToString();\n }", "public void writeTokens() throws IOException {\r\n FileOutputStream fOutStream = new FileOutputStream(\"output.txt\");\r\n PrintStream outFS = new PrintStream(fOutStream);\r\n\r\n for (int i = 0; i < tokenList.size(); i++) {\r\n outFS.println(tokenList.get(i).evaluate());\r\n }\r\n fOutStream.close();\r\n outFS.close();\r\n }", "private void makeReplacementText() throws IOException {\n valueBuf.clear();\n Token t = new Token();\n int start = currentTokenStart + 1;\n final int end = bufStart - 1;\n try {\n for (;;) {\n\tint tok;\n\tint nextStart;\n\ttry {\n\t tok = Tokenizer.tokenizeEntityValue(buf, start, end, t);\n\t nextStart = t.getTokenEnd();\n\t}\n\tcatch (ExtensibleTokenException e) {\n\t tok = e.getTokenType();\n\t nextStart = end;\n\t}\n\thandleEntityValueToken(valueBuf, tok, start, nextStart, t);\n\tstart = nextStart;\n }\n }\n catch (PartialTokenException e) {\n currentTokenStart = end;\n fatal(\"NOT_WELL_FORMED\");\n }\n catch (InvalidTokenException e) {\n currentTokenStart = e.getOffset();\n reportInvalidToken(e);\n }\n catch (EmptyTokenException e) { }\n }", "public void updateSyntaxStyles() {\n }", "private void tokenizar(){\r\n String patron = \"(?<token>[\\\\(]|\\\\d+|[-+\\\\*/%^]|[\\\\)])\";\r\n Pattern pattern = Pattern.compile(patron);\r\n Matcher matcher = pattern.matcher(this.operacion);\r\n \r\n String token;\r\n \r\n while(matcher.find()){\r\n token = matcher.group(\"token\");\r\n tokens.add(token);\r\n \r\n }\r\n \r\n }", "public ReplaceFeatureGate pretty(String pretty) {\n put(\"pretty\", pretty);\n return this;\n }", "public interface PerlTokenSets extends PerlElementTypes, MooseElementTypes {\n TokenSet OPERATORS_TOKENSET = TokenSet.create(\n OPERATOR_CMP_NUMERIC,\n OPERATOR_LT_NUMERIC,\n OPERATOR_GT_NUMERIC,\n\n OPERATOR_CMP_STR,\n OPERATOR_LE_STR,\n OPERATOR_GE_STR,\n OPERATOR_EQ_STR,\n OPERATOR_NE_STR,\n OPERATOR_LT_STR,\n OPERATOR_GT_STR,\n\n OPERATOR_HELLIP,\n OPERATOR_FLIP_FLOP,\n OPERATOR_CONCAT,\n\n OPERATOR_PLUS_PLUS,\n OPERATOR_MINUS_MINUS,\n OPERATOR_POW,\n\n OPERATOR_RE,\n OPERATOR_NOT_RE,\n\n //\t\t\tOPERATOR_HEREDOC, // this is an artificial operator, not the real one; fixme uncommenting breaks parsing of print $of <<EOM\n OPERATOR_SHIFT_LEFT,\n OPERATOR_SHIFT_RIGHT,\n\n OPERATOR_AND,\n OPERATOR_OR,\n OPERATOR_OR_DEFINED,\n OPERATOR_NOT,\n\n OPERATOR_ASSIGN,\n\n QUESTION,\n COLON,\n\n OPERATOR_REFERENCE,\n\n OPERATOR_DIV,\n OPERATOR_MUL,\n OPERATOR_MOD,\n OPERATOR_PLUS,\n OPERATOR_MINUS,\n\n OPERATOR_BITWISE_NOT,\n OPERATOR_BITWISE_AND,\n OPERATOR_BITWISE_OR,\n OPERATOR_BITWISE_XOR,\n\n OPERATOR_AND_LP,\n OPERATOR_OR_LP,\n OPERATOR_XOR_LP,\n OPERATOR_NOT_LP,\n\n COMMA,\n FAT_COMMA,\n\n OPERATOR_DEREFERENCE,\n\n OPERATOR_X,\n OPERATOR_FILETEST,\n\n // syntax operators\n OPERATOR_POW_ASSIGN,\n OPERATOR_PLUS_ASSIGN,\n OPERATOR_MINUS_ASSIGN,\n OPERATOR_MUL_ASSIGN,\n OPERATOR_DIV_ASSIGN,\n OPERATOR_MOD_ASSIGN,\n OPERATOR_CONCAT_ASSIGN,\n OPERATOR_X_ASSIGN,\n OPERATOR_BITWISE_AND_ASSIGN,\n OPERATOR_BITWISE_OR_ASSIGN,\n OPERATOR_BITWISE_XOR_ASSIGN,\n OPERATOR_SHIFT_LEFT_ASSIGN,\n OPERATOR_SHIFT_RIGHT_ASSIGN,\n OPERATOR_AND_ASSIGN,\n OPERATOR_OR_ASSIGN,\n OPERATOR_OR_DEFINED_ASSIGN,\n\n OPERATOR_GE_NUMERIC,\n OPERATOR_LE_NUMERIC,\n OPERATOR_EQ_NUMERIC,\n OPERATOR_NE_NUMERIC,\n OPERATOR_SMARTMATCH\n );\n\n TokenSet DEFAULT_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_MY,\n RESERVED_OUR,\n RESERVED_STATE,\n RESERVED_LOCAL,\n RESERVED_ELSIF,\n RESERVED_ELSE,\n RESERVED_GIVEN,\n RESERVED_DEFAULT,\n RESERVED_CONTINUE,\n RESERVED_FORMAT,\n RESERVED_SUB,\n RESERVED_PACKAGE,\n RESERVED_USE,\n RESERVED_NO,\n RESERVED_REQUIRE,\n RESERVED_UNDEF,\n RESERVED_PRINT,\n RESERVED_PRINTF,\n RESERVED_SAY,\n RESERVED_GREP,\n RESERVED_MAP,\n RESERVED_SORT,\n RESERVED_DO,\n RESERVED_EVAL,\n RESERVED_GOTO,\n RESERVED_REDO,\n RESERVED_NEXT,\n RESERVED_LAST,\n RESERVED_RETURN,\n\n RESERVED_Y,\n RESERVED_TR,\n RESERVED_Q,\n RESERVED_S,\n RESERVED_M,\n RESERVED_QW,\n RESERVED_QQ,\n RESERVED_QR,\n RESERVED_QX,\n\n RESERVED_IF,\n RESERVED_UNTIL,\n RESERVED_UNLESS,\n RESERVED_FOR,\n RESERVED_FOREACH,\n RESERVED_WHEN,\n RESERVED_WHILE\n );\n\n TokenSet TRY_CATCH_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_TRY,\n RESERVED_CATCH,\n RESERVED_FINALLY,\n RESERVED_CATCH_WITH,\n RESERVED_EXCEPT,\n RESERVED_OTHERWISE,\n RESERVED_CONTINUATION\n );\n\n TokenSet METHOD_SIGNATURES_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_METHOD,\n RESERVED_FUNC\n );\n\n TokenSet KEYWORDS_TOKENSET = TokenSet.orSet(\n DEFAULT_KEYWORDS_TOKENSET,\n MOOSE_RESERVED_TOKENSET,\n METHOD_SIGNATURES_KEYWORDS_TOKENSET,\n TRY_CATCH_KEYWORDS_TOKENSET\n );\n\n TokenSet ANNOTATIONS_KEYS = TokenSet.create(\n ANNOTATION_DEPRECATED_KEY,\n ANNOTATION_RETURNS_KEY,\n ANNOTATION_OVERRIDE_KEY,\n ANNOTATION_METHOD_KEY,\n ANNOTATION_ABSTRACT_KEY,\n ANNOTATION_INJECT_KEY,\n ANNOTATION_NOINSPECTION_KEY,\n ANNOTATION_TYPE_KEY\n\n );\n\n TokenSet STRING_CONTENT_TOKENSET = TokenSet.create(\n STRING_CONTENT,\n STRING_CONTENT_XQ,\n STRING_CONTENT_QQ\n );\n\n TokenSet HEREDOC_BODIES_TOKENSET = TokenSet.create(\n HEREDOC,\n HEREDOC_QQ,\n HEREDOC_QX\n );\n\n\n TokenSet QUOTE_MIDDLE = TokenSet.create(REGEX_QUOTE, REGEX_QUOTE_E);\n\n TokenSet QUOTE_OPEN_ANY = TokenSet.orSet(\n TokenSet.create(REGEX_QUOTE_OPEN, REGEX_QUOTE_OPEN_E),\n PerlParserUtil.OPEN_QUOTES,\n QUOTE_MIDDLE\n );\n\n TokenSet QUOTE_CLOSE_FIRST_ANY = TokenSet.orSet(\n TokenSet.create(REGEX_QUOTE_CLOSE),\n QUOTE_MIDDLE,\n CLOSE_QUOTES\n );\n\n TokenSet QUOTE_CLOSE_PAIRED = TokenSet.orSet(\n CLOSE_QUOTES,\n TokenSet.create(REGEX_QUOTE_CLOSE)\n );\n\n TokenSet SIGILS = TokenSet.create(\n SIGIL_SCALAR, SIGIL_ARRAY, SIGIL_HASH, SIGIL_GLOB, SIGIL_CODE, SIGIL_SCALAR_INDEX\n );\n\n TokenSet STATEMENTS = TokenSet.create(\n STATEMENT, USE_STATEMENT, NO_STATEMENT\n );\n\n TokenSet LAZY_CODE_BLOCKS = TokenSet.create(LP_CODE_BLOCK, LP_CODE_BLOCK_WITH_TRYCATCH);\n\n TokenSet LAZY_PARSABLE_REGEXPS = TokenSet.create(\n LP_REGEX_REPLACEMENT,\n LP_REGEX,\n LP_REGEX_X,\n LP_REGEX_XX\n );\n\n TokenSet HEREDOC_ENDS = TokenSet.create(HEREDOC_END, HEREDOC_END_INDENTABLE);\n /**\n * Quote openers with three or four quotes\n */\n TokenSet COMPLEX_QUOTE_OPENERS = TokenSet.create(\n RESERVED_S,\n RESERVED_TR,\n RESERVED_Y\n );\n TokenSet SIMPLE_QUOTE_OPENERS = TokenSet.create(\n RESERVED_Q,\n RESERVED_QQ,\n RESERVED_QX,\n RESERVED_QW,\n RESERVED_QR,\n RESERVED_M\n );\n}", "public void replaceFormats(List<Format> formats);", "private void TokenStartTag(Token token, TreeConstructor treeConstructor) {\n\t\tif (token.getValue().equals(\"html\"))\r\n\t\t\tTokenAnythingElse(token, treeConstructor, false);\r\n\t\telse\r\n\t\t\tTokenAnythingElse(token, treeConstructor, true);\r\n\t}", "private void printToken() {\n tabPrinter();\n\n if (jackTokenizer.tokenType().equals(JackTokenizer.SYMBOL_TOKEN_TYPE)) {\n\n tagBracketPrinter(currTokenType, FULL_TAG_BRACKET, replaceOpSymbol(currentToken.charAt(0)));\n } else if (jackTokenizer.tokenType().equals(JackTokenizer.STRING_CONST_TOKEN_TYPE)) {\n currentToken = currentToken.substring(1, currentToken.length() - 1);\n tagBracketPrinter(currTokenType, FULL_TAG_BRACKET, replaceOpSymbol(currentToken));\n } else {\n\n tagBracketPrinter(currTokenType, FULL_TAG_BRACKET, currentToken);\n }\n }", "private void setTokenLength() {\n\t\tfor (Token ts : Token.values()) {\n\t\t\tif (ts.getValue().length() == 1) ts.setOneChar(true);\n\t\t\telse ts.setOneChar(false);\n\t\t}\n\t}", "public void format(final List<BlancoApexToken> tokenList) {\n // process relative normalize.\n\n internalFormat(tokenList, new BlancoApexSyntaxBlockToken());\n }", "void setToken(String aKey, ITokenizable aTokenizable);", "protected void addTextTokens(IScriptToken token, String text, ILocation location)\n {\n char[] buffer = text.toCharArray();\n int state = STATE_START;\n int blockStart = 0;\n int blockLength = 0;\n int expressionStart = -1;\n int expressionLength = 0;\n int i = 0;\n int braceDepth = 0;\n \n while (i < buffer.length)\n {\n char ch = buffer[i];\n \n switch (state)\n {\n case STATE_START :\n \n if (ch == '$')\n {\n state = STATE_DOLLAR;\n i++;\n continue;\n }\n \n blockLength++;\n i++;\n continue;\n \n case STATE_DOLLAR :\n \n if (ch == '{')\n {\n state = STATE_COLLECT_EXPRESSION;\n i++;\n \n expressionStart = i;\n expressionLength = 0;\n braceDepth = 1;\n \n continue;\n }\n \n state = STATE_START;\n continue;\n \n case STATE_COLLECT_EXPRESSION :\n \n if (ch != '}')\n {\n if (ch == '{')\n braceDepth++;\n \n i++;\n expressionLength++;\n continue;\n }\n \n braceDepth--;\n \n if (braceDepth > 0)\n {\n i++;\n expressionLength++;\n continue;\n }\n \n // Hit the closing brace of an expression.\n \n // Degenerate case: the string \"${}\".\n \n if (expressionLength == 0)\n blockLength += 3;\n \n if (blockLength > 0)\n token.addToken(constructStatic(text, blockStart, blockLength, location));\n \n if (expressionLength > 0)\n {\n String expression =\n text.substring(expressionStart, expressionStart + expressionLength);\n \n token.addToken(new InsertToken(expression, location));\n }\n \n i++;\n blockStart = i;\n blockLength = 0;\n \n // And drop into state start\n \n state = STATE_START;\n \n continue;\n }\n \n }\n \n // OK, to handle the end. Couple of degenerate cases where\n // a ${...} was incomplete, so we adust the block length.\n \n if (state == STATE_DOLLAR)\n blockLength++;\n \n if (state == STATE_COLLECT_EXPRESSION)\n blockLength += expressionLength + 2;\n \n if (blockLength > 0)\n token.addToken(constructStatic(text, blockStart, blockLength, location));\n }", "void putToken(String name, String value);", "public interface BibtexConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int COMMENT = 5;\r\n /** RegularExpression Id. */\r\n int COMMENT_START = 6;\r\n /** RegularExpression Id. */\r\n int PREAMBLE_START = 7;\r\n /** RegularExpression Id. */\r\n int STRING_START = 8;\r\n /** RegularExpression Id. */\r\n int COMMENT_ENTRY = 9;\r\n /** RegularExpression Id. */\r\n int OPEN_ENTRY = 11;\r\n /** RegularExpression Id. */\r\n int CLOSE_ENTRY = 12;\r\n /** RegularExpression Id. */\r\n int START_B_CONTENT = 14;\r\n /** RegularExpression Id. */\r\n int CLOSE_B_CONTENT = 15;\r\n /** RegularExpression Id. */\r\n int START_Q_CONTENT = 18;\r\n /** RegularExpression Id. */\r\n int CLOSE_Q_CONTENT = 19;\r\n /** RegularExpression Id. */\r\n int CONTENT_TEXT = 20;\r\n /** RegularExpression Id. */\r\n int ID = 21;\r\n /** RegularExpression Id. */\r\n int SEPARATOR = 22;\r\n /** RegularExpression Id. */\r\n int EQUALS = 23;\r\n /** RegularExpression Id. */\r\n int NUMBER = 24;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_ENTRY = 1;\r\n /** Lexical state. */\r\n int IN_ENTRY_TYPE = 2;\r\n /** Lexical state. */\r\n int IN_COMMENT_ENTRY = 3;\r\n /** Lexical state. */\r\n int IN_PREAMBLE = 4;\r\n /** Lexical state. */\r\n int IN_BRACED_CONTENT = 5;\r\n /** Lexical state. */\r\n int IN_BRACED_NESTED_CONTENT = 6;\r\n /** Lexical state. */\r\n int IN_QUOTED_CONTENT = 7;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"<COMMENT>\",\r\n \"\\\"comment\\\"\",\r\n \"\\\"preamble\\\"\",\r\n \"\\\"string\\\"\",\r\n \"<COMMENT_ENTRY>\",\r\n \"<token of kind 10>\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"<token of kind 13>\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\"\\\\\\\"\\\"\",\r\n \"\\\"\\\\\\\"\\\"\",\r\n \"<CONTENT_TEXT>\",\r\n \"<ID>\",\r\n \"\\\",\\\"\",\r\n \"\\\"=\\\"\",\r\n \"<NUMBER>\",\r\n \"\\\"#\\\"\",\r\n };\r\n\r\n}", "private boolean UpdateToken()\n\t{\n\t\ttry\n\t\t{\n\t\t\tToken tempToken = scanner.GetNextToken();\n\t\t\tif(tempToken.GetTokenType() == TokenType.ERROR)\n\t\t\t{\n\t\t\t\tcurrentToken = tempToken;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(tempToken.GetTokenType() == TokenType.META)\n\t\t\t{\n\t\t\t\tnewFile.write(tempToken.GetTokenName() + \"\\n\");\n\t\t\t\treturn UpdateToken();\n\t\t\t}\n\t\t\tcurrentToken = tempToken;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "public TokenString(Token[] tokens) {\n\tthis.tokens = tokens;\n}", "private void extendedNext() {\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& Character.isWhitespace(data[currentIndex])) {\n\t\t\tcurrentIndex++;\n\t\t\tcontinue;\n\t\t} // we arw now on first non wmpty space\n\t\tif (data.length <= currentIndex) {\n\t\t\ttoken = new Token(TokenType.EOF, null); // null reference\n\t\t\treturn;\n\t\t}\n\t\tstart = currentIndex;\n\t\t// System.out.print(data);\n\t\t// System.out.println(\" \"+data[start]);;\n\t\tswitch (data[currentIndex]) {\n\t\tcase '@':\n\t\t\tcurrentIndex++;\n\t\t\tcreateFunctName();\n\t\t\treturn;\n\t\tcase '\"':// string\n\t\t\tcreateString();// \"\" are left\n\t\t\treturn;\n\t\tcase '*':\n\t\tcase '+':\n\t\tcase '/':\n\t\tcase '^':\n\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\tbreak;\n\t\tcase '$':\n\t\t\tString value = \"\";\n\t\t\tif (currentIndex + 1 < data.length && data[currentIndex] == '$'\n\t\t\t\t\t&& data[currentIndex + 1] == '}') {\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\tvalue += data[currentIndex++];\n\t\t\t\ttoken = new Token(TokenType.WORD, value);\n\t\t\t}\n\t\t\tbreak;\n\t\tcase '=':\n\t\t\ttoken = new Token(TokenType.Name,\n\t\t\t\t\tString.valueOf(data[currentIndex++]));\n\t\t\treturn;\n\t\tcase '-':\n\t\t\tif (currentIndex + 1 >= data.length\n\t\t\t\t\t|| !Character.isDigit(data[currentIndex + 1])) {\n\t\t\t\ttoken = new Token(TokenType.Operator, data[currentIndex++]);\n\t\t\t\tbreak;\n\t\t\t}\n\t\tdefault:\n\t\t\t// if we get here,after - is definitely a number\n\t\t\tif (data[currentIndex] == '-'\n\t\t\t\t\t|| Character.isDigit(data[currentIndex])) {\n\t\t\t\t// if its decimal number ,it must starts with 0\n\t\t\t\tcreateNumber();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (Character.isLetter(data[currentIndex])) {\n\t\t\t\tvalue = name();\n\t\t\t\ttoken = new Token(TokenType.Name, value);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow new LexerException(\n\t\t\t\t\t\"No miningful tag starts with \" + data[currentIndex]);\n\t\t\t// createWord();\n\n\t\t}\n\t}", "public void Mini_Parser(){\n Lista_ER Nuevo=null;\n String Nombre=\"\";\n String Contenido=\"\";\n ArrayList<String> tem = new ArrayList<String>();\n //este boleano sirve para concatenar la expresion regular\n int Estado=0;\n for (int x = 0; x < L_Tokens.size(); x++) {\n switch(Estado){\n //ESTADO 0\n case 0:\n //Conjuntos\n if(L_Tokens.get(x).getLexema().equals(\"CONJ\")){\n if(L_Tokens.get(x+1).getLexema().equals(\":\")){\n if(L_Tokens.get(x+2).getDescripcion().equals(\"Identificador\")){\n //Son conjuntos \n Nombre=L_Tokens.get(x+2).getLexema();\n Estado=1;\n x=x+4;\n }\n }\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n //pasaa estado de expresion regular\n Nombre=L_Tokens.get(x).getLexema();\n Estado=2;\n }\n break;\n \n case 1:\n //ESTADO 1\n //Concatena los conjuntos\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Digito\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n for(int i=6;i<=37;i++){\n if(L_Tokens.get(x).getID()==i){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n }\n //conjunto sin llaves\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n if(L_Tokens.get(x-1).getLexema().equals(\",\")){\n }else{\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n Estado=0;\n Contenido=\"\";\n\n }\n }else{\n Contenido+=L_Tokens.get(x).getLexema();\n }\n \n\n break;\n case 2:\n //ESTADO 2\n if(L_Tokens.get(x).getLexema().equals(\"-\")){\n if(L_Tokens.get(x+1).getLexema().equals(\">\")){\n //se mira que es expresion regular\n \n Lista_ER nuevo=new Lista_ER(L_Tokens.get(x-1).getLexema());\n Nuevo=nuevo;\n L_Tokens_ER.add(nuevo);\n x++;\n Estado=3;\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\":\")){\n //se mira que es lexema\n Estado=4;\n }\n break;\n case 3: \n //ESTADO 3\n //Concatenacion de Expresion Regular\n \n //System.out.println(\"---------------------------------\"+ L_Tokens.get(x).getLexema());\n if(L_Tokens.get(x).getDescripcion().equals(\"Punto\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Barra Vetical\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Interrogacion\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Asterisco\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Signo Mas\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Lexema de Entrada\")){ \n String tem1='\"'+L_Tokens.get(x).getLexema()+'\"';\n Nuevo.setER(tem1);\n \n }\n if(L_Tokens.get(x).getLexema().equals(\"{\")){ \n String tem1=\"\";\n if(L_Tokens.get(x+2).getLexema().equals(\"}\")){\n tem1=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n Nuevo.setER(tem1);\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n Estado=0;\n }\n break;\n case 4:\n// System.out.println(L_Tokens.get(x).getLexema());\n Contenido=L_Tokens.get(x+1).getLexema();\n L_Tokens_Lex.add(new Lista_LexemasE(L_Tokens.get(x-2).getLexema(), Contenido));\n Estado=0;\n \n break;\n }//fin switch\n }//Fin for\n }", "private void getToken(){\n\t\tboolean primaryFirst=false;\t\t\t// determines whether the current token is a primary (true) or an operator (false)\n\t\tboolean primaryIsReal=false;\t\t// determines whether the current primary is a numerical number (true) or a name (false)\n\t\tboolean checkedPrimaryType=false;\t// determine whether the primary type has already been checked (true) or not (false)\n\t\t\n\t\twhile(true){\n\t\t\tcurr_pos++;\n\t\t\tif(curr_pos>input.length()-1){\n\t\t\t\tcurr_tok=token_value.END;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(\n\t\t\t\tinput.charAt(curr_pos)=='+' ||\n\t\t\t\tinput.charAt(curr_pos)=='-' ||\n\t\t\t\tinput.charAt(curr_pos)=='*'\t||\t\n\t\t\t\tinput.charAt(curr_pos)=='/'\t||\n\t\t\t\tinput.charAt(curr_pos)=='('\t||\n\t\t\t\tinput.charAt(curr_pos)==')'\t||\n\t\t\t\tinput.charAt(curr_pos)=='^'\t||\n\t\t\t\tinput.charAt(curr_pos)=='_'\t||\n\t\t\t\tinput.charAt(curr_pos)=='='\n\t\t\t){\n\t\t\t\tif(!primaryFirst){\n\t\t\t\t\tfor(int i=0; i<charToEnum.length; i++){\n\t\t\t\t\t\tif(input.charAt(curr_pos) == charToEnum[i]){\n\t\t\t\t\t\t\tcurr_tok=token_value.values()[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcurr_pos--;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(!checkedPrimaryType){\n\t\t\t\t\tcheckedPrimaryType=true;\n\t\t\t\t\tint num = (int)input.charAt(curr_pos);\n\t\t\t\t\tif(num > 47 && num < 58){ // number case\n\t\t\t\t\t\tprimaryIsReal=true;\n\t\t\t\t\t}\n\t\t\t\t\tstring_value=\"\";\n\t\t\t\t}\n\t\t\t\tprimaryFirst=true;\n\t\t\t\tstring_value+=input.charAt(curr_pos);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(primaryFirst){\n\t\t\tif(primaryIsReal){\n\t\t\t\tnumber_value = Double.parseDouble(string_value);\n\t\t\t\tcurr_tok=token_value.NUMBER;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcurr_tok=token_value.NAME;\n\t\t\t}\n\t\t}\n\t}", "public ArrayList<String> tokenizeMessage(String cleanedMessageContent,\n List<Character> validCharFlags,\n List<String> validStrFlags,\n List<String> linkPrefix){\n ArrayList<String> tokenizedMessageContent = new ArrayList();\n int cleanedMessageLength = cleanedMessageContent.length();\n for (int i = 0; i < cleanedMessageLength; i++) {\n if (validCharFlags.contains(cleanedMessageContent.charAt(i))){\n if (i+1 < cleanedMessageLength && validStrFlags.contains(\"\" +\n cleanedMessageContent.charAt(i) + cleanedMessageContent.charAt(i+1))){\n tokenizedMessageContent.add(\"\" +\n cleanedMessageContent.charAt(i) + cleanedMessageContent.charAt(i));\n i++;\n }\n else{\n tokenizedMessageContent.add(\"\"+cleanedMessageContent.charAt(i));\n }\n }\n else{\n boolean inLink = false;\n for (String prefix: linkPrefix){\n if(i + prefix.length() < cleanedMessageLength &&\n prefix.equals(cleanedMessageContent.substring(i, i+prefix.length()))) {\n tokenizedMessageContent.add(prefix);\n i += prefix.length()-1;\n inLink = true;\n }\n }\n if(!inLink){\n tokenizedMessageContent.add(\"\"+cleanedMessageContent.charAt(i));\n }\n }\n }\n return tokenizedMessageContent;\n }", "public interface Tokenization {\r\n\t\r\n\t/**\r\n\t * The method to implement for tokenization.\r\n\t * \r\n\t * @param input\tInput string to tokenize\r\n\t * @param tokens\t The list of tokens to populate\r\n\t */\r\n public void tokenize(String input, List<TokenInfo> tokens);\r\n\r\n}", "public void setHTML(String html);", "protected void arglist (Tag tag) throws HTMLParseException {\r\n String key = null;\r\n\r\n //System.err.println (\"parsing arglist for tag: '\" + tag + \"'\");\r\n while (true) {\r\n //System.err.println (\"nextToken: \" + nextToken + \" => \" + getTokenString (nextToken));\r\n switch (nextToken) {\r\n case MT:\r\n tagmode = false;\r\n // ok, this is kinda ugly but safer this way\r\n if (tag.getLowerCaseType () != null &&\r\n (tag.getLowerCaseType ().equals (\"script\") ||\r\n tag.getLowerCaseType ().equals (\"style\"))) {\r\n Token text = scanCommentUntilEnd (tag.getLowerCaseType ());\r\n if (text != null) {\r\n setPendingComment (text);\r\n } else {\r\n tagmode = false;\r\n return;\r\n }\r\n } else {\r\n match (MT);\r\n }\r\n return;\r\n case STRING:\r\n key = stringValue;\r\n match (STRING);\r\n String value = value ();\r\n tag.addArg (key, value, false);\r\n break;\r\n case END:\r\n return;\r\n case DQSTRING:\r\n String ttype = tag.getType ();\r\n if (ttype != null && ttype.charAt (0) == '!') {\r\n // Handle <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\r\n // and similar cases.\r\n tag.addArg (stringValue, null, false);\r\n match (nextToken);\r\n } else {\r\n //System.err.println (\"hmmm, strange arglist..: \" + tag);\r\n // this is probably due to something like:\r\n // ... framespacing=\"0\"\">\r\n // we backstep and change the second '\"' to a blank and restart from that point...\r\n index -= stringValue.length ();\r\n pagepart[index] = (byte)' ';\r\n match (nextToken);\r\n tag.getToken ().setChanged (true);\r\n }\r\n break;\r\n case LT: // I consider this an error (in the html of the page) but handle it anyway.\r\n String type = tag.getLowerCaseType ();\r\n if (type == null || // <<</font.... etc\r\n (type.equals (\"table\") && // <table.. width=100% <tr>\r\n stringValue == null)) {\r\n tagmode = false;\r\n return;\r\n }\r\n // fall through.\r\n default:\r\n // this is probably due to something like:\r\n // <img src=someimagead;ad=40;valu=560>\r\n // we will break at '=' and split the tag to something like:\r\n // <img src=someimagead;ad = 40;valu=560> if we change it.\r\n // the html is already broken so should we fix it? ignore for now..\r\n if (stringValue != null)\r\n tag.addArg (stringValue, null, false);\r\n match (nextToken);\r\n }\r\n }\r\n }", "@Test\n void shouldExpandTokenMacro() {\n WorkflowJob job = createPipelineWithWorkspaceFilesWithSuffix(\"checkstyle1.xml\", \"checkstyle2.xml\");\n\n configureToken(job, \"checkstyle1\");\n\n AnalysisResult baseline = scheduleBuildAndAssertStatus(job, Result.SUCCESS);\n verifyConsoleLog(baseline, 3, 0, 0);\n\n configureToken(job, \"checkstyle2\");\n\n AnalysisResult result = scheduleBuildAndAssertStatus(job, Result.SUCCESS);\n\n verifyConsoleLog(result, 4, 3, 2);\n }", "@Override\n protected void reportUnwantedToken(Parser recognizer) {\n super.reportUnwantedToken(recognizer);\n System.exit(SYNTAX_ERROR_CODE);\n }", "private void eatModifier() {\n\n if (currentTokenPointer >= tokenCount) {\n\n raiseParseProblem(\"run out of tokens to process\", expansionString.length());\n\n }\n\n Token token = tokens.get(currentTokenPointer);\n\n TokenKind k = token.kind;\n\n if (currentVersionComponent > 3) {\n\n raiseParseProblem(\"too many version components specified, only major.minor.micro.qualifier is allowed. Found '\" + string(token)\n\n + \"' at position \" + token.start, token.start);\n\n }\n\n if (k == TokenKind.EQUALS) {\n\n processEquals();\n\n } else if (k == TokenKind.WORD) {\n\n processWord();\n\n } else if (k == TokenKind.NUMBER) {\n\n processNumeric();\n\n } else if (k == TokenKind.PLUSNUMBER || k == TokenKind.NEGATIVENUMBER) {\n\n processNumericModifier();\n\n } else {\n\n if (currentVersionComponent < 3) {\n\n raiseParseProblem(\"expected one of: '=' '+nnn' '-nnn' or 'nnn' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n } else {\n\n raiseParseProblem(\"expected one of: '=' '+nnn' '-nnn' 'nnn' or 'xxx' but found '\" + string(token) + \"' at position \" + token.start,\n\n token.start);\n\n }\n\n }\n\n currentTokenPointer++;\n\n }", "public interface ParserMASConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int SINGLE_LINE_COMMENT = 9;\r\n /** RegularExpression Id. */\r\n int FORMAL_COMMENT = 10;\r\n /** RegularExpression Id. */\r\n int MULTI_LINE_COMMENT = 11;\r\n /** RegularExpression Id. */\r\n int COLON = 13;\r\n /** RegularExpression Id. */\r\n int AT = 14;\r\n /** RegularExpression Id. */\r\n int COMMA = 15;\r\n /** RegularExpression Id. */\r\n int NRAGENTS = 16;\r\n /** RegularExpression Id. */\r\n int IDENTIFIER = 17;\r\n /** RegularExpression Id. */\r\n int FILENAME = 18;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_SINGLE_LINE_COMMENT = 1;\r\n /** Lexical state. */\r\n int IN_FORMAL_COMMENT = 2;\r\n /** Lexical state. */\r\n int IN_MULTI_LINE_COMMENT = 3;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"%\\\"\",\r\n \"\\\"//\\\"\",\r\n \"<token of kind 7>\",\r\n \"\\\"/*\\\"\",\r\n \"<SINGLE_LINE_COMMENT>\",\r\n \"\\\"*/\\\"\",\r\n \"\\\"*/\\\"\",\r\n \"<token of kind 12>\",\r\n \"\\\":\\\"\",\r\n \"\\\"@\\\"\",\r\n \"\\\",\\\"\",\r\n \"<NRAGENTS>\",\r\n \"<IDENTIFIER>\",\r\n \"<FILENAME>\",\r\n };\r\n\r\n}", "protected void tag (int ltagStart) throws HTMLParseException {\r\n Tag tag = new Tag ();\r\n Token token = new Token (tag, false);\r\n switch (nextToken) {\r\n case STRING:\r\n tag.setType (stringValue);\r\n match (STRING);\r\n arglist (tag);\r\n if (tagmode) {\r\n block.setRest (lastTagStart);\r\n } else {\r\n token.setStartIndex (ltagStart);\r\n //block.addToken (token);\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(token);\r\n }\r\n break;\r\n case MT:\r\n tagmode = false;\r\n match (MT);\r\n break;\r\n case END:\r\n block.setRest (lastTagStart);\r\n tagmode = false;\r\n return;\r\n default:\r\n arglist (tag);\r\n }\r\n }", "void computeHTMLFeatures() throws Exception{\n\t\tcountTagStatistics();\n\t\thtmlGlobalTagStatistics();\n\t\ttagInHeadStatistics();\n\t\thtmlStatisticsDiv();\n\t\thtmlStaticsticsParagraphs();\n\t\thtmlKeyWords();\n\t\tnormalizeData();\n\t}", "public String format(String markup) {\n markup = markup.replace(\"[[\", \"^^LEFT$$\").replace(\"]]\", \"^^RIGHT$$\");\n // This is a hacky way of removing emphasis (as EmphasisResolver seems to be buggy; since it's\n // also used by stripAllButInternalLinksAndEmphasis, we need to remove emphasis manually first)\n markup = markup.replaceAll(\"'{6}\", \"'\");\n markup = markup.replaceAll(\"'{5}\", \"\");\n markup = markup.replaceAll(\"'{4}\", \"'\");\n markup = markup.replaceAll(\"'{3}\", \"\");\n markup = markup.replaceAll(\"'{2}\", \"\");\n markup = stripper.stripInternalLinks(markup, null);\n markup = stripper.stripExcessNewlines(markup);\n markup = StringEscapeUtils.unescapeHtml(markup);\n markup = markup.replace('\\u2019', '\\'');\n // Contract multiple whitespaces.\n markup = markup.replaceAll(\"\\\\s+\", \" \");\n return markup;\n }", "private void updateRefreshTokenUI(boolean status) {\n\n TextView rt = (TextView) findViewById(R.id.rtStatus);\n\n if (rt.getText().toString().contains(getString(R.string.noToken))\n || rt.getText().toString().contains(getString(R.string.tokenPresent))) {\n rt.setText(R.string.RT);\n }\n if (status) {\n rt.setText(rt.getText() + \" \" + getString(R.string.tokenPresent));\n } else {\n rt.setText(rt.getText() + \" \" + getString(R.string.noToken) + \" or Invalid\");\n }\n }", "private String replaceToken(final AbstractBuild<?, ?> build, final BuildListener listener, final String input) {\n try {\n return TokenMacro.expandAll(build, listener, input);\n } catch (final Exception e) {\n listener.getLogger()\n .println(String.format(\"Failed to resolve parameters in string %s due to following error:\\n%s\",\n input, e.getMessage()));\n }\n return input;\n }", "private void closeTagOpenState() throws SAXException, IOException {\n // this can't happen in PLAINTEXT, so using not PCDATA as the condition\n if (contentModelFlag != ContentModelFlag.PCDATA\n && contentModelElement != null) {\n /*\n * If the content model flag is set to the RCDATA or CDATA states\n * but no start tag token has ever been emitted by this instance of\n * the tokeniser (fragment case), or, if the content model flag is\n * set to the RCDATA or CDATA states and the next few characters do\n * not match the tag name of the last start tag token emitted (case\n * insensitively), or if they do but they are not immediately\n * followed by one of the following characters: + U+0009 CHARACTER\n * TABULATION + U+000A LINE FEED (LF) + U+000B LINE TABULATION +\n * U+000C FORM FEED (FF) + U+0020 SPACE + U+003E GREATER-THAN SIGN\n * (>) + U+002F SOLIDUS (/) + EOF\n * \n * ...then emit a U+003C LESS-THAN SIGN character token, a U+002F\n * SOLIDUS character token, and switch to the data state to process\n * the next input character.\n */\n // Let's implement the above without lookahead. strBuf holds\n // characters that need to be emitted if looking for an end tag\n // fails.\n // Duplicating the relevant part of tag name state here as well.\n clearStrBuf();\n for (int i = 0; i < contentModelElement.length(); i++) {\n char e = contentModelElement.charAt(i);\n char c = read();\n char folded = c;\n if (c >= 'A' && c <= 'Z') {\n folded += 0x20;\n }\n if (folded != e) {\n if (i > 0 || (folded >= 'a' && folded <= 'z')) {\n if (html4) {\n err((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but it was not the start of the end tag. (HTML4-only error)\");\n } else {\n warn((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but this did not close the element.\");\n }\n }\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n emitStrBuf();\n unread(c);\n return;\n }\n appendStrBuf(c);\n }\n endTag = true;\n tagName = contentModelElement;\n char c = read();\n switch (c) {\n case ' ':\n case '\\t':\n case '\\n':\n case '\\u000B':\n case '\\u000C':\n /*\n * U+0009 CHARACTER TABULATION U+000A LINE FEED (LF) U+000B\n * LINE TABULATION U+000C FORM FEED (FF) U+0020 SPACE Switch\n * to the before attribute name state.\n */\n beforeAttributeNameState();\n return;\n case '>':\n /* U+003E GREATER-THAN SIGN (>) Emit the current tag token. */\n emitCurrentTagToken();\n /*\n * Switch to the data state.\n */\n return;\n case '\\u0000':\n /*\n * EOF Parse error.\n */\n err(\"Expected \\u201C>\\u201D but saw end of file instead.\");\n /*\n * Emit the current tag token.\n */\n emitCurrentTagToken();\n /* Reconsume the character in the data state. */\n unread(c);\n return;\n case '/':\n /*\n * U+002F SOLIDUS (/) Parse error unless this is a permitted\n * slash.\n */\n // never permitted here\n err(\"Stray \\u201C/\\u201D in end tag.\");\n /* Switch to the before attribute name state. */\n beforeAttributeNameState();\n return;\n default:\n if (html4) {\n err((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but it was not the start of the end tag. (HTML4-only error)\");\n } else {\n warn((contentModelFlag == ContentModelFlag.CDATA ? \"CDATA\"\n : \"RCDATA\")\n + \" element \\u201C\"\n + contentModelElement\n + \"\\u201D contained the string \\u201C</\\u201D, but this did not close the element.\");\n }\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n emitStrBuf();\n cstart = pos; // don't drop the character\n return;\n }\n } else {\n /*\n * Otherwise, if the content model flag is set to the PCDATA state,\n * or if the next few characters do match that tag name, consume the\n * next input character:\n */\n char c = read();\n if (c >= 'A' && c <= 'Z') {\n /*\n * U+0041 LATIN CAPITAL LETTER A through to U+005A LATIN CAPITAL\n * LETTER Z Create a new end tag token,\n */\n endTag = true;\n clearStrBuf();\n /*\n * set its tag name to the lowercase version of the input\n * character (add 0x0020 to the character's code point),\n */\n appendStrBuf((char) (c + 0x20));\n /*\n * then switch to the tag name state. (Don't emit the token yet;\n * further details will be filled in before it is emitted.)\n */\n tagNameState();\n return;\n } else if (c >= 'a' && c <= 'z') {\n /*\n * U+0061 LATIN SMALL LETTER A through to U+007A LATIN SMALL\n * LETTER Z Create a new end tag token,\n */\n endTag = true;\n clearStrBuf();\n /*\n * set its tag name to the input character,\n */\n appendStrBuf(c);\n /*\n * then switch to the tag name state. (Don't emit the token yet;\n * further details will be filled in before it is emitted.)\n */\n tagNameState();\n return;\n } else if (c == '>') {\n /* U+003E GREATER-THAN SIGN (>) Parse error. */\n err(\"Saw \\u201C</>\\u201D.\");\n /*\n * Switch to the data state.\n */\n return;\n } else if (c == '\\u0000') {\n /* EOF Parse error. */\n err(\"Saw \\u201C</\\u201D immediately before end of file.\");\n /*\n * Emit a U+003C LESS-THAN SIGN character token and a U+002F\n * SOLIDUS character token.\n */\n tokenHandler.characters(LT_SOLIDUS, 0, 2);\n /*\n * Reconsume the EOF character in the data state.\n */\n unread(c);\n return;\n } else {\n /* Anything else Parse error. */\n err(\"Garbage after \\u201C</\\u201D.\");\n /*\n * Switch to the bogus comment state.\n */\n clearLongStrBuf();\n appendToComment(c);\n bogusCommentState();\n return;\n }\n }\n }", "public void analyzer(){\n i = 0;\n while (i<temp.length()){\n if(temp.charAt(i)=='p' || temp.charAt(i)=='q' || temp.charAt(i)=='r' || temp.charAt(i)=='s'){\n i++;\n if(i !=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(1);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(1);\n }\n } else if (temp.charAt(i)=='n') {\n i++;\n if(temp.charAt(i)=='o'){\n i++;\n if(temp.charAt(i)=='t'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(2);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(2); i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if (temp.charAt(i)=='a'){\n i++;\n if(temp.charAt(i)=='n'){\n i++;\n if(temp.charAt(i)=='d'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(3);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(3);\n break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(temp.charAt(i)=='x' && i!=temp.length()){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='o'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='r'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(5);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(3); i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(temp.charAt(i)=='o' & i!=temp.length()){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='r'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(4);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(4);\n i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(i!=temp.length()&&temp.charAt(i)=='i'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='f'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)=='f'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(8);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(8);\n i++;\n }\n } else if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(6);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(6);\n i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(i!=temp.length()&&temp.charAt(i)=='t'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='h'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='e'){\n i++;\n if(i!=temp.length()&&temp.charAt(i)=='n'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(7);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(7);\n i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n } else if(i!=temp.length()&&temp.charAt(i)=='('){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i)==' '){\n token.add(9);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(9);\n i++;\n }\n } else if(i!=temp.length()&&temp.charAt(i)==')'){\n i++;\n if(i!=temp.length()){\n if(temp.charAt(i) == ' '){\n token.add(10);\n i++;\n } else {\n System.out.println(\"error\"); break;\n }\n } else {\n token.add(10);\n i++;\n }\n } else {\n System.out.println(\"error\"); break;\n }\n }\n \n //menyimpan data input dan array token kedalam class biasa\n Tahap1 a = new Tahap1(temp,token);\n lex.add(a);\n \n //reset untuk next use\n a = null;\n temp = \"\";\n }", "public void setLastTokenMinus(boolean flag){\r\n _isLastTokenMinus=flag;\r\n }", "public void setUp() {\n getRef().println(\"'token image' [offset, length]; tokenID name; tokenID id; token category name; <list of token context names>\\n--------------------\\n\");\n }", "public JAXPParser(Map<String, Boolean> parserFeatures) {\n this();\n loadDocumentBuilderFactory();\n try {\n if(null != parserFeatures) {\n for(Entry<String, Boolean> entry : parserFeatures.entrySet()) {\n documentBuilderFactory.setFeature(entry.getKey(), entry.getValue());\n }\n }\n } catch(Exception e) {\n throw XMLPlatformException.xmlPlatformParseException(e);\n }\n }", "void compileTermAdvanceHelper(String tokenType, String token) throws IOException {\n if (currentToken.equals(OPEN_SQUARE_BRACKET_SYMBOL)) {\n printToken(tokenType, token);\n printToken();\n getNextToken();\n compileExpression();\n printToken();\n getNextToken();\n\n } else if (currentToken.equals(OPEN_BRACKET_SYMBOL)) {\n printToken(tokenType, token);\n printToken();\n compileExpressionList();\n printToken();\n getNextToken();\n\n } else if (currentToken.equals(DOT_SYMBOL)) {\n\n printToken(tokenType, token);\n for (int i = 0; i < 2; i++) {\n printToken();\n getNextToken();\n }\n printToken();\n compileExpressionList();\n printToken();\n getNextToken();\n } else {\n printToken(tokenType, token);\n }\n }", "static void init() {\n ReplaceRule.define(\"endcomment\",\r\n new Regex(\"\\\\*/\",\"*/${POP}</font>\"));\r\n Comment3 = (new Regex(\"/\\\\*\",\"<font color=\"+\r\n CommentColor+\">/*${+endcomment}\"));\r\n\r\n // Jasmine stuff\r\n Regex.define(\"JasmineEnabled\",\"\",new Validator() {\r\n public int validate(String src,int begin,int end) {\r\n return jasmine_enabled ? end : -1;\r\n }\r\n });\r\n colorize.add(\r\n \"s{(??JasmineEnabled)^\\\\s*;\\\\s*&gt;&gt;.*}\"+\r\n \"{<HR><H3>$&</H3>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)(?:^|\\\\s)\\\\s*;.*}\"+\r\n \"{<font color=\"+CommentColor+\">$&</font>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)\\\\b(?:catch|class|end|field|\"+\r\n \"implements|interface|limit|line|method|source|super|\"+\r\n \"throws|var|stack|locals)\\\\b}{<font color=\"+\r\n DirectiveColor+\"><b>$&</b></font>}\");\r\n colorize.add(\r\n \"s{(??JasmineEnabled)^\\\\w+:}{<font color=\"+\r\n LabelColor+\"><b>$&</b></font>}\");\r\n\r\n // stick all replacement rules into the Transformer\r\n colorize.add(DQuotes);\r\n colorize.add(SQuotes);\r\n colorize.add(Comment1);\r\n colorize.add(Comment2);\r\n colorize.add(Comment3);\r\n colorize.add(PrimitiveTypes);\r\n colorize.add(Keywords);\r\n colorize.add(java_lang);\r\n colorize.add(oper);\r\n colorize.add(Regex.perlCode(\r\n \"s'\\\\w*(Error|Exception|Throwable)\\\\b'<font color=red>$&</font>'\"));\r\n\r\n ReplaceRule.define(\"colorize\",colorize);\r\n\r\n ReplaceRule.define(\"jascode\",new ReplaceRule() {\r\n public void apply(StringBufferLike sb,RegRes rr) {\r\n String s1 = rr.stringMatched(1);\r\n if(s1 != null && s1.equals(\"jas\"))\r\n jasmine_enabled = true;\r\n }\r\n });\r\n\r\n Regex r = new Regex(\"(?i)<(java|jas)code([^>]*?)>\\\\s*\",\r\n \"<!-- made by java2html, \"+\r\n \"see http://javaregex.com -->\"+\r\n \"<table $2 ><tr><td bgcolor=\"+\r\n DocumentBackgroundColor+\r\n \"><pre>${jascode}${+colorize}\");\r\n r.optimize();\r\n\r\n colorize.add(new Regex(\"(?i)\\\\s*</(?:java|jas)code>\",\r\n \"</pre></td></tr></table>${POP}\"));\r\n\r\n html_replacer = r.getReplacer();\r\n\r\n Transformer DoPre = new Transformer(true);\r\n DoPre.add(\"s'(?i)\\\\s*</(?:jav|jas)acode>'$&$POP'\");\r\n DoPre.add(\"s'<'&lt;'\");\r\n DoPre.add(\"s'>'&gt;'\");\r\n DoPre.add(\"s'&'&amp;'\");\r\n ReplaceRule.define(\"DOPRE\",DoPre);\r\n pretran_html = new Regex(\"(?i)<javacode[^>]*>\",\"$&${+DOPRE}\").getReplacer();\r\n pretran_java = DoPre.getReplacer();\r\n }", "private void outputParseFunction(PrintWriter out, String startRuleName) {\n\t\t\n\t\tString tokenname = prefix + \"Token\";\n\t\t\n\t\tout.println(\" public \" + node(startRuleName) + \" parse() throws \" + prefix + \"ParserException, \" + prefix + \"TokenizerException {\");\n\t\tout.println(\" \" + tokenname + \" curToken;\");\n\t\tout.println();\n\t\tout.println(\" GrammarState curState;\");\n\t\tout.println();\n\t\tout.println(\" Stack<GrammarState> stateStack = new Stack<GrammarState>();\");\n\t\tout.println();\n\t\tout.println(\" \" + node(startRuleName) + \" parseTree = null;\");\n\t\tout.println(\" \" + prefix + \"ASTNode curNode = null;\");\n\t\tout.println();\n\t\tout.println(\" stateStack.push(new GrammarState(startRuleName, GrammarState.RULE));\");\n\t\tout.println();\n\t\tout.println(\" curToken = tokenizer.nextToken();\");\n\t\tout.println();\n\t\tout.println(\" while ( true ) {\");\n\t\tout.println();\n\t\tout.println(\" curState = stateStack.pop();\");\n\t\tout.println();\n\t\tout.println(\" if (curState == null) {\");\n\t\tout.println();\n\t\tout.println(\" \" + prefix + \"ASTNode nextNode = curNode.getParent();\");\n\t\tout.println();\n\t\tout.println(\" if (curNode.isMultiChild() && curNode.numChildren() == 1) {\");\n\t\tout.println(\" \" + prefix + \"ASTNode parentNode = curNode.getParent();\");\n\t\tout.println(\" parentNode.removeChild(curNode);\");\n\t\tout.println();\n\t\tout.println(\" \" + prefix + \"ASTNode childNode = curNode.getChild(0);\");\n\t\tout.println(\" curNode.removeChild(childNode);\");\n\t\tout.println(\" parentNode.addChild(childNode);\");\n\t\tout.println(\" }\");\n\t\tout.println(\" else if (curNode.numChildren() == 0) {\");\n\t\tout.println(\" curNode.getParent().removeChild(curNode);\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" curNode = nextNode;\");\n\t\tout.println();\n\t\tout.println(\" }\"); \n\t\tout.println(\" else if (curState.type == GrammarState.TOKEN) {\");\n\t\tout.println();\n\t\tout.println(\" if (!curState.name.equals(curToken.name)) {\");\n\t\tout.println(\" throw new \" + prefix + \"ParserException(\\\"Invalid token \\\\\\\"\\\" + curToken.value + \\\"\\\\\\\" (\\\" + curToken.name + \\\"), expected token (\\\" + curState.name + \\\")\\\"\t, curToken.line, curToken.column);\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" if (curToken.name.equals(\\\"eof\\\")) break;\");\n\t\tout.println();\n\t\tout.println(\" curNode.addChild(new \" + prefix + \"ASTToken(curToken.name, curToken.value));\");\n\t\tout.println();\t\t\n\t\tout.println(\" curToken = tokenizer.nextToken();\");\n\t\tout.println();\n\t\tout.println(\" }\");\n\t\tout.println(\" else if (curState.type == GrammarState.RULE) {\");\n\t\tout.println();\n\t\tout.println(\" GrammarRule newrule = table.get(curState.name).get(curToken.name);\");\n\t\tout.println();\t\t\t\t\n\t\tout.println(\" if (newrule == null) {\");\n\t\tout.println(\" String expected = \\\"\\\";\");\n\t\tout.println(\" for (String t : table.get(curState.name).keySet()) if (t != null) expected += t + \\\", \\\";\");\n\t\tout.println(\" throw new \" + prefix + \"ParserException(\\\"Invalid token \\\\\\\"\\\" + curToken.value + \\\"\\\\\\\" (\\\" + curToken.name + \\\") for rule \\\\\\\"\\\" + curState.name.replaceAll(\\\"\\\\\\\\{.*\\\", \\\"\\\") + \\\"\\\\\\\", expected one of (\\\" + expected.substring(0, expected.length()-2) + \\\")\\\", curToken.line, curToken.column);\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" if (!newrule.subrule) {\");\n\t\tout.println(\" if (parseTree == null) {\");\n\t\tout.println(\" curNode = parseTree = new \" + node(startRuleName) + \"(newrule.name, null, newrule.multi_child);\");\n\t\tout.println(\" } else {\");\n\t\tout.println(\" \" + prefix + \"ASTNode newnode = makenode(newrule.name, null, newrule.multi_child);\");\n\t\tout.println(\" curNode.addChild(newnode);\");\n\t\tout.println(\" curNode = newnode;\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" stateStack.push(null);\");\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" for (int i = newrule.graph.length-1; i >= 0; i--) {\");\n\t\tout.println(\" stateStack.push(newrule.graph[i]);\");\n\t\tout.println(\" }\");\n\t\tout.println(\" }\");\n\t\tout.println(\" else if (curState.type == GrammarState.EPSILON) {\");\n\t\tout.println(\" continue; //do nothing\");\n\t\tout.println(\" }\");\n\t\tout.println();\t\t\t\t\n\t\tout.println(\" }\");\n\t\tout.println();\n\t\tout.println(\" return parseTree;\");\n\t\tout.println();\n\t\tout.println(\" }\");\n\t\t\n\t}", "public void applySubstitutions() throws Exception {\n\t\tStringBuffer sql = new StringBuffer();\n\t\t\n\t\tPattern p = Pattern.compile(Pattern.quote(LM_PARAM_PREFIX) + \"<([^>]+)>\");\n\t\tMatcher m = p.matcher(sqlText);\n\t\t\n\t\twhile(m.find()) {\n\t\t\tlog.debug(\"matcher: \"+m.toString());\n\t\t\tlog.debug(\"SQL Subst: \"+m.group(1)+\" --> \" + subs.get(m.group(1)));\n\t\t\t\n\t\t\tm.appendReplacement(sql, subs.get(m.group(1)));\n\t\t}\n\t\tm.appendTail(sql);\n\t\tlog.debug(\"Expanded SQL: \"+ sql.toString());\n\t\tsqlText = sql.toString();\n\t}", "public void testContentsFormatting() throws Throwable{\n long start = System.currentTimeMillis();\n PluginTokenizer tokenizer = new PluginTokenizer();\n Token token;\n int len;\n int inPRE = 0;\n\n System.out.println(\"\\nStart formatting contents in \\\"\" + _path + \"\\\"\");\n \n tokenizer.setSource(new InputStreamSource(_reader));\n tokenizer.setParseFlags( Tokenizer.F_NO_CASE \n | Tokenizer.F_TOKEN_POS_ONLY \n | Tokenizer.F_RETURN_WHITESPACES);\n tokenizer.setSeparators(null);\n tokenizer.setWhitespaceHandler(this);\n tokenizer.setSequenceHandler(this);\n\n len = 0;\n while (tokenizer.hasMoreToken()) {\n token = tokenizer.nextToken();\n switch (token.getType()) {\n case Token.NORMAL:\n System.out.print(tokenizer.current());\n if (inPRE <= 0) {\n len += token.getLength();\n }\n break;\n \n case Token.SPECIAL_SEQUENCE:\n if (token.getCompanion() == PRE_START_COMPANION) {\n System.out.println();\n len = 0;\n inPRE++;\n } else if (token.getCompanion() == PRE_END_COMPANION) {\n System.out.println();\n len = 0;\n inPRE--;\n } else {\n System.out.print((String)token.getCompanion());\n }\n break;\n \n case Token.BLOCK_COMMENT:\n if (len > 0) {\n System.out.println();\n len = 0;\n }\n break;\n \n case Token.WHITESPACE:\n if (inPRE > 0) {\n System.out.print(tokenizer.current());\n } else if (len > 75) {\n System.out.println();\n len = 0;\n } else if (len > 0) {\n System.out.print(' ');\n len++;\n }\n break;\n }\n }\n\n long diff = System.currentTimeMillis() - start;\n System.out.println(\"Finished after \" + diff + \" milliseconds\");\n }", "public void parse(Lexer lex);", "private void formatCode() {\n isLongComment = false;\n\n for (int i = 0; i < formattedCode.size(); i++) {\n String line = formattedCode.get(i);\n // format each line\n String handledLine = handleLine(line);\n\n // if not empty, replace given line with its formatted version\n if (handledLine != null && !handledLine.equals(\"\"))\n formattedCode.set(i, handledLine);\n else\n // else remove the line without any instructions\n formattedCode.remove(i--);\n }\n }", "@Override\n protected void generateCommonConstants(StringBuilder outputCode) {\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Matches all tags, HTML comments, and DOCTYPEs in tag soup HTML.\\n\")\n .append(\" * By removing these, and replacing any '<' or '>' characters with\\n\")\n .append(\" * entities we guarantee that the result can be embedded into a\\n\")\n .append(\" * an attribute without introducing a tag boundary.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$HTML_TAG_REGEX_ = \")\n .append(convertFromJavaRegex(EscapingConventions.HTML_TAG_CONTENT))\n .append(\"g;\\n\");\n\n outputCode\n .append(\"\\n\")\n .append(\"/**\\n\")\n .append(\" * Matches all occurrences of '<'.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$LT_REGEX_ = /</g;\\n\");\n\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Maps lower-case names of innocuous tags to true.\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!Object<string, boolean>}\\n\")\n .append(\" */\\n\")\n .append(\"const $$SAFE_TAG_WHITELIST_ = \")\n .append(toJsStringSet(TagWhitelist.FORMATTING.asSet()))\n .append(\";\\n\");\n\n outputCode\n .append('\\n')\n .append(\"/**\\n\")\n .append(\" * Pattern for matching attribute name and value, where value is single-quoted\\n\")\n .append(\" * or double-quoted.\\n\")\n .append(\" * See http://www.w3.org/TR/2011/WD-html5-20110525/syntax.html#attributes-0\\n\")\n .append(\" *\\n\")\n .append(\" * @type {!RegExp}\\n\")\n .append(\" */\\n\")\n .append(\"const $$HTML_ATTRIBUTE_REGEX_ = \")\n .append(convertFromJavaRegex(Sanitizers.HTML_ATTRIBUTE_PATTERN))\n .append(\"g;\\n\");\n }" ]
[ "0.5104952", "0.50968343", "0.49755427", "0.49157578", "0.48836347", "0.48217583", "0.4811723", "0.47205937", "0.46502963", "0.46314365", "0.46225223", "0.46165213", "0.45950893", "0.45793545", "0.45564818", "0.45491546", "0.4510152", "0.44871902", "0.44866183", "0.4466891", "0.44427904", "0.44373426", "0.44362736", "0.44312814", "0.44294965", "0.4413558", "0.43969622", "0.43949613", "0.43728572", "0.4369625", "0.4366068", "0.4359611", "0.43413147", "0.4299612", "0.42958108", "0.4292858", "0.4276193", "0.4271306", "0.42574903", "0.4231628", "0.4228692", "0.42054784", "0.42040354", "0.42027095", "0.41949478", "0.4191115", "0.41844273", "0.41776627", "0.41657618", "0.41637516", "0.41506216", "0.41504475", "0.41474214", "0.41449007", "0.41362324", "0.41269243", "0.4123065", "0.41190398", "0.4100497", "0.40989578", "0.40942734", "0.40926325", "0.4084363", "0.40831092", "0.40817338", "0.40809673", "0.40737876", "0.4070963", "0.40676922", "0.40573198", "0.40519574", "0.40492785", "0.40425035", "0.40418434", "0.40326178", "0.40292957", "0.40252006", "0.4021724", "0.40179074", "0.40137854", "0.40096402", "0.40045163", "0.40035394", "0.4000881", "0.39918017", "0.3984926", "0.3984516", "0.398447", "0.3981053", "0.39799094", "0.39730686", "0.3972279", "0.39670113", "0.39606827", "0.39519507", "0.3942327", "0.39414403", "0.39411682", "0.39379925", "0.39370903" ]
0.51144147
0
This function fires when a user submits the form on the chat page. It gets the loggedin username from the session, the conversation title from the URL, and the chat message from the submitted form data. It creates a new Message from that data, adds it to the model, and then redirects back to the chat page.
@Override public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { String username = (String) request.getSession().getAttribute("user"); if (username == null) { // user is not logged in, don't let them add a message response.sendRedirect("/login"); return; } User user = userStore.getUser(username); if (user == null) { // user was not found, don't let them add a message response.sendRedirect("/login"); return; } String requestUrl = request.getRequestURI(); String conversationTitle = requestUrl.substring("/chat/".length()); Conversation conversation = conversationStore.getConversationWithTitle(conversationTitle); if (conversation == null) { // couldn't find conversation, redirect to conversation list response.sendRedirect("/conversations"); return; } String messageContent = request.getParameter("message"); // this removes any HTML from the message content String cleanedMessageContent = Jsoup.clean(messageContent, Whitelist.none()); int cleanedMessageLength = cleanedMessageContent.length(); //character and string representations of supported markdown flags List<Character> validCharFlags = Arrays.asList('*', '_', '`'); List<String> validStrFlags = Arrays.asList("*", "_", "`", "**", "__"); List<String> linkPrefix = Arrays.asList("http://", "https://", "www."); //use this to surround emoji shortcodes (:thumbsup:) String emojiFlag = ":"; Map<String, String[]> markToHtml = new HashMap<>(); markToHtml.put("*", new String[]{"<em>", "</em>"}); markToHtml.put("_", new String[]{"<em>", "</em>"}); markToHtml.put("`", new String[]{"<code>", "</code>"}); markToHtml.put("**", new String[]{"<strong>", "</strong>"}); markToHtml.put("__", new String[]{"<strong>", "</strong>"}); markToHtml.put("LINK", new String[]{"<a href=\"", "\" target=\"_blank\">","</a>"}); // tokenizes message into array list of strings ArrayList<String> tokenizedMessageContent = tokenizeMessage(cleanedMessageContent, validCharFlags, validStrFlags, linkPrefix); // matches valid pairs of tokens and replaces with html syntax ArrayList<Blob> requestedCustomEmojis = parseMessage(tokenizedMessageContent, validCharFlags, validStrFlags,linkPrefix, emojiFlag, markToHtml); // converts ArrayList to string String parsedMessageContent = ""; for (String token:tokenizedMessageContent){ parsedMessageContent += token; } Message message; Part filePart = request.getPart("image"); // Retrieves <input type="file" name="image"> String checkboxOut = request.getParameter("emoji-checkbox"); String shortcode = request.getParameter("shortcode"); boolean messageToSend = true; if (checkboxOut == null){ checkboxOut = "off"; } if(checkboxOut.equals("on") && filePart != null && !filePart.getSubmittedFileName().equals("") && shortcode != null && !shortcode.equals("")){ //user wants their uploaded image to be an emoji // Handles when the user uploads a new custom emoji InputStream fileContent = filePart.getInputStream(); ImagesService imagesService = ImagesServiceFactory.getImagesService(); Image originalImage = ImagesServiceFactory.makeImage(IOUtils.toByteArray(fileContent)); Transform resize = ImagesServiceFactory.makeResize(20, 20); Image resizedImage = imagesService.applyTransform(resize, originalImage); Blob image = new Blob(resizedImage.getImageData()); emojiStore.addEmoji(shortcode, image); messageToSend = false; message = //not needed, but gets rid of compiler error "might not be initialized" new Message( UUID.randomUUID(), conversation.getId(), user.getId(), parsedMessageContent, Instant.now()); } else if(filePart != null && !filePart.getSubmittedFileName().equals("") && requestedCustomEmojis.size() > 0){ // Handles when the user uploads an image and includes custom emojis in their message InputStream fileContent = filePart.getInputStream(); ImagesService imagesService = ImagesServiceFactory.getImagesService(); Image originalImage = ImagesServiceFactory.makeImage(IOUtils.toByteArray(fileContent)); Transform resize = ImagesServiceFactory.makeResize(350, 600); Image resizedImage = imagesService.applyTransform(resize, originalImage); Blob image = new Blob(resizedImage.getImageData()); message = new Message( UUID.randomUUID(), conversation.getId(), user.getId(), parsedMessageContent, Instant.now(), image, requestedCustomEmojis); } else if(filePart != null && !filePart.getSubmittedFileName().equals("")){ // Handles when the user uploads an image InputStream fileContent = filePart.getInputStream(); ImagesService imagesService = ImagesServiceFactory.getImagesService(); Image originalImage = ImagesServiceFactory.makeImage(IOUtils.toByteArray(fileContent)); Transform resize = ImagesServiceFactory.makeResize(350, 600); Image resizedImage = imagesService.applyTransform(resize, originalImage); Blob image = new Blob(resizedImage.getImageData()); message = new Message( UUID.randomUUID(), conversation.getId(), user.getId(), parsedMessageContent, Instant.now(), image); } else if(requestedCustomEmojis.size() > 0){ // Handles when the user includes custom emojis in their message message = new Message( UUID.randomUUID(), conversation.getId(), user.getId(), parsedMessageContent, Instant.now(), requestedCustomEmojis); } else{ // Handles plain text messages message = new Message( UUID.randomUUID(), conversation.getId(), user.getId(), parsedMessageContent, Instant.now()); } if(messageToSend){ //send notification List <String> tokens = conversation.getSubscribersTokens(); for(String token:tokens) { sendNotification.sendMsg(parsedMessageContent, token, notificationTokenStore.getMessagingAPIKey()); } messageStore.addMessage(message); } // redirect to a GET request response.sendRedirect("/chat/" + conversationTitle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"\", method = RequestMethod.POST, params = {\"postMessage\"})\n public String processMessages(@RequestParam String message,\n @CookieValue(value = \"loggedInCookie\") String loggedInUserId) {\n int userId = Integer.parseInt(loggedInUserId);\n User thisUser = userDao.findOne(userId);\n Message newMessage = new Message(message);\n newMessage.setAuthor(thisUser);\n\n messageDao.save(newMessage);\n\n String subject = \"New Home Manager message from \" + newMessage.getAuthor().getName();\n String text = newMessage.getMessage();\n mailService.sendToAll(subject, text);\n return \"redirect:/messages\";\n }", "@PostMapping(\"/main\")\n public String add(\n @AuthenticationPrincipal User user,\n @Valid Message message,\n BindingResult bindingResult,\n Model model\n ) {\n message.setAuthor(user);\n if (bindingResult.hasErrors()) {\n final Map<String, String> errors = ControllerUtils.getErrors(bindingResult);\n model.mergeAttributes(errors);\n model.addAttribute(\"message\", message);\n } else {\n model.addAttribute(\"message\", null);\n msgRepo.save(message);\n }\n final Iterable<Message> msgs = msgRepo.findAll();\n model.addAttribute(\"messages\", msgs);\n return \"main\";\n }", "public void onClick(ClickEvent event) {\n\t\t\t\tString msgtxt = view.getCreateMessageText().getText().trim();\n\n\t\t\t\t// 2. Lock input, show sending indicator: goto 3\n\t\t\t\tview.lockCreateMessageInput();\n\n\t\t\t\t// 3. Validate input: valid ? goto 4 : goto e1\n\t\t\t\tif(msgtxt.isEmpty()) {\n\t\t\t\t\t// TODO: Show warning message: goto 6\n\n\t\t\t\t\t// 6. Unlock input, remove sending indicator, set focus to inputText: goto 1\n\t\t\t\t\tview.unlockCreatemessageInput();\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tMessage msg = new MessageImpl();\n\t\t\t\tmsg.setText(msgtxt);\n\t\t\t\tservice.createMessage(msg, new AsyncCallback<Void>() {\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Void result) {\n\t\t\t\t\t\tGWT.log(\"INFO: Message saved succesfully.\");\n\n\t\t\t\t\t\t// 5. Clear input: goto 6\n\t\t\t\t\t\tview.getCreateMessageText().setText(\"\");\n\n\t\t\t\t\t\t// 6. Unlock input, remove sending indicator, set focus to inputText: goto 1\n\t\t\t\t\t\tview.unlockCreatemessageInput();\t\t\t\t\t\n\t\t\t\t\t}\t\t\t\t\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tGWT.log(caught.getMessage());\n\n\t\t\t\t\t\t// TODO: Show error message: goto 6\n\n\t\t\t\t\t\t// 6. Unlock input, remove sending indicator, set focus to inputText: goto 1\n\t\t\t\t\t\tview.unlockCreatemessageInput();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}", "@RequestMapping(value = \"/welcome\", method = RequestMethod.POST)\r\n\tpublic String welcome(@ModelAttribute User user, @ModelAttribute(\"newMsg\") Message newMsg, Model model) throws SQLException {\t\r\n\t\tmodel.addAttribute(\"userId\", user.getUserID());\r\n\t\tnewMsg.setFromUser(user.getUserID());\r\n\t\t//Get the Spring Context\r\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(\"spring.xml\");\r\n \r\n //Get the Beans; connect to both classes\r\n UserDAO userDao = ctx.getBean(\"userDao\", UserDAO.class);\r\n MessageDAO msgDao = ctx.getBean(\"messageDao\", MessageDAO.class);\r\n if(userDao.userExists(newMsg.getToUser())) {\r\n \t// create message\r\n \tmsgDao.createMessage(newMsg);\r\n \tmodel.addAttribute(\"message\", \"Message Sent!\");\r\n }\r\n else\r\n \tmodel.addAttribute(\"message\",\"Error: User doesn't exist\");\r\n model.addAttribute(\"newMsg\", new Message());\r\n\t\treturn \"welcome\";\r\n\t}", "@Override\n public void onClick(View view) {\n if(input.getText().toString()!=null){\n msg.child(\"convensation\").child(encry(chatTo)+\"\").push()\n .setValue(new MessagesModel(input.getText().toString(),\n FirebaseAuth.getInstance()\n .getCurrentUser()\n .getDisplayName(),\n ChatName,\n FirebaseAuth.getInstance()\n .getCurrentUser()\n .getEmail(),chatTo,false)\n );\n mAdapter.notifyDataSetChanged();\n input.setText(\"\");\n updateConvensation();\n listOfMessages.scrollToPosition(mAdapter.getItemCount());\n }\n }", "@Override\n public void onClick(View view) {\n ChatMessage Message = new\n ChatMessage(mMessageEditText.getText().toString(),\n mUsername,\n null, dateAndTime);\n mFirebaseDatabaseReference.child(chatRoomPath)\n .push().setValue(Message);\n mMessageEditText.setText(\"\");\n\n }", "@Override\r\n public boolean onSubmit(CharSequence input) {\r\n\r\n //make a message\r\n long systemNenoTime = System.nanoTime();\r\n\r\n _Message message = new _Message(\r\n systemNenoTime + \"::\" + socketManager.getSocketID(), //just make incremental,\r\n // need for chat kit only (No need socket id ref, in this project, but may be future)\r\n systemNenoTime, // this will need for me as primary key, because chatkit abnormally demand ID as String\r\n //but i need long for realm operation\r\n me.getRoomName(), //pass 1-1 unique room name\r\n me, //responsible person is me for this message\r\n input.toString(), //text of message\r\n new Date());\r\n\r\n //check is user valid and ready to broadcast his message\r\n if (socketManager.isUserValid()) {\r\n\r\n //save new submitted message to realm\r\n saveOrUpdateNewMessageRealm(message);\r\n\r\n //emit submitted messages to socket IO for broadcast in current room\r\n socketManager.performEmit(\"newMessage\", message);\r\n\r\n runOnUiThread(() -> {\r\n //submitted message should be view immediately\r\n messagesAdapter.addToStart(message, true);\r\n\r\n //update last chat incremental id\r\n lastMessageIncrementalID = message.getIncrementalID();\r\n });\r\n\r\n\r\n //know the adapter submission has completed\r\n return true;\r\n\r\n } else {\r\n\r\n Toast.makeText(ChatMessageActivity.this, \"Please wait until valid connection confirmed. \" +\r\n \"Try again after sometime! In real project there should be a progress bar.\", Toast.LENGTH_LONG).show();\r\n\r\n //alas adapter will omit submission\r\n return false;\r\n\r\n }\r\n\r\n }", "@RequestMapping(value = \"/post\", method = RequestMethod.POST)\n public String receivePost(@Valid @ModelAttribute Message message, BindingResult result, RedirectAttributes redirect) {\n if(result.hasErrors()){\n redirect.addFlashAttribute(\"org.springframework.validation.BindingResult.message\" ,result);\n redirect.addFlashAttribute(\"message\", message);\n return \"redirect:/post\";\n }\n\n messageService.save(message);\n\n return \"redirect:/\";\n }", "protected void saveMessage(HttpServletRequest request, String msg) {\r\n List messages = (List) request.getSession().getAttribute(\"messages\");\r\n if (messages == null) {\r\n messages = new ArrayList();\r\n }\r\n messages.add(msg);\r\n request.getSession().setAttribute(\"messages\", messages);\r\n }", "@Secured(\"ROLE_SUBSCRIBED\")\n @RequestMapping(value = \"/{id}/add-message\", method = RequestMethod.POST)\n public String addMessageToTrip(@AuthenticationPrincipal User _user,\n @PathVariable(\"id\") Integer _idTrip,\n @RequestParam(\"message\") String _message,\n HttpServletRequest request,\n ModelAndView modelAndView)\n {\n try {\n request.setCharacterEncoding(\"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n if (!_message.contentEquals(\"\"))\n {\n _message = _message.replaceAll(\"[\\r\\n]+\", \"\\n\");\n _message = _message.replaceAll(\"\\n\", \"<br />\");\n\n messageService.create(new Message(_message, tripService.findById(_idTrip), _user));\n }\n\n return \"redirect:/trips/\" + _idTrip + \"#messagesList\";\n }", "@RequestMapping(\"/post\")\n public String createPost(Model model) {\n if(!model.containsAttribute(\"message\")){\n model.addAttribute(\"message\", new Message());\n }\n\n return \"form\";\n }", "private void sendMessage() {\n Log.d(\"FlashChat\", \"I sent something\");\n // get the message the user typed\n String userInput = mInputText.getText().toString();\n\n if (! (userInput.length() == 0)){\n\n InstantMessage message = new InstantMessage(userInput, mUserMe);\n // push the message to Firebase DB\n mDatabaseReference.child(mLocation).push().setValue(message);\n mInputText.setText(\"\");\n }\n\n }", "private void createNewChat() {\n if (advertisement.getUniqueOwnerID().equals(dataModel.getUserID())) {\n view.showCanNotSendMessageToYourselfToast();\n return;\n }\n\n dataModel.createNewChat(advertisement.getUniqueOwnerID(), advertisement.getOwner(), advertisement.getUniqueID(),\n advertisement.getImageUrl(), chatID -> view.openChat(chatID));\n }", "@Override\r\n\tpublic void addMessage(String ChatMessageModel) {\n\t\t\r\n\t}", "@Override\n public void onClick(View view) {\n Message message = new Message(null, getDate(), address, mMessageEditText.getText().toString());\n // To create a new message node in the database\n mMessagesDatabaseReference.push().setValue(message);\n // Clear input box\n mMessageEditText.setText(\"\");\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString text = getCurUser() + \" : \" + textField.getText();\n\t\t\t\ttextField.setText(\"\");\n\t\t\t\tfinal ChatMessage msg = new ChatMessage();\n\t\t\t\tmsg.setMessage(text);\n\t\t\t\tmainFrame.sendMessage(msg);\n\t\t\t\t\n\t\t\t}", "@POST\n\t@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\t@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })\n\t@Path(\"/{sendignUserName}/{receivingUserName}\")\n\tpublic Response saveChatMessage(@PathParam(\"sendignUserName\") String sendignUserName, \n\t\t\t@PathParam(\"receivingUserName\") String receivingUserName, Message message)\n\t{\n\t\tLog.enter(sendignUserName, receivingUserName);\n\t\tMessage resp = new Message();\n\t\tMessagePO po = new MessagePO();\n\t\ttry\n\t\t{\n\t\t\tIMessageDAO dao = DAOFactory.getInstance().getMessageDAO();\n\t\t\tpo = ConverterUtils.convert(message);\n\t\t\tpo.setMessageType(\"CHAT\");\n\t\t\tpo.setAuthor(sendignUserName);\n\t\t\tpo.setTarget(receivingUserName);\n\t\t\tdao.save(po);\n\t\t\tresp = ConverterUtils.convert(po);\n\t\t\tSystem.out.println(\"@@@@@@@@@@@@@@@@@@@@@\"+resp.getAuthor()+\";\"+resp.getTarget());\n\t\t} catch (Exception e) {\n\t\t\thandleException(e);\n\t\t} finally {\n\t\t\tLog.exit();\n\t\t}\n\t\t\n\t\treturn created(resp);\n\t}", "@MessageMapping(\"/chat.addUser\")\n @SendTo(\"/topic/publicChatRoom\")\n public Message addUser(@Payload Message chatMessage, SimpMessageHeaderAccessor headerAccessor) {\n headerAccessor.getSessionAttributes().put(\"username\", chatMessage.getSender());\n headerAccessor.getSessionAttributes().put(\"usercolor\", \"red\");\n\n return chatMessage;\n }", "@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }", "@Override\n\tpublic void insertMessage(String ToUserName, String FromUserName,\n\t\t\tString CreateTime, String MsgType, String Content, String MsgId,\n\t\t\tString PicUrl, String MediaId, String Format, String ThumbMediaId,\n\t\t\tString Location_X, String Location_Y, String Scale, String Label,\n\t\t\tString Title, String Description, String Url, String Event,\n\t\t\tString EventKey, String Ticket, String Latitude, String Longitude,\n\t\t\tString Precision, String Recognition, int sessionid) {\n\t\t\n\t}", "@Override\n protected void onSubmit() {\n getCommander().resetUserHistory( getUser().getUsername(), true );\n redirectHere();\n }", "@PostMapping(\"/chat-messages\")\n @Timed\n public ResponseEntity<ChatMessage> createChatMessage(@RequestBody ChatMessage chatMessage) throws URISyntaxException {\n log.debug(\"REST request to save ChatMessage : {}\", chatMessage);\n if (chatMessage.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new chatMessage cannot already have an ID\")).body(null);\n }\n ChatMessage result = chatMessageRepository.save(chatMessage);\n return ResponseEntity.created(new URI(\"/api/chat-messages/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void onClickSendMessage(View v) {\n\n String error = \"\";\n\n if (isEmpty(messageTittle)) {\n error = \"entra un titulo valido\";\n } else if (isEmpty(messageText)) {\n error = \"entra un mensaje valido\";\n } else {\n msgtittle = messageTittle.getText().toString();\n msgtext = messageText.getText().toString();\n\n }\n\n if (!error.equals(\"\")) {\n Toast.makeText(this, error, Toast.LENGTH_SHORT).show();\n } else {\n try {\n JMessage jmsg;\n jmsg = new JMessage(msgtext, msgtittle, gson.fromJson(MainActivity.juser, JUser.class), 1, jgroup.getGroupId());\n jmsg.setIdParent(1);\n\n\n Log.d(TAG, \"este es el jmessage a crear =\" + jmsg);\n NewMessage nm = new NewMessage(gson.toJson(jmsg));\n nm.execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "@MessageMapping(\"/chat.addUser\")\n @SendTo(\"/topic/public\")\n public ResponseEntity<Boolean> addUser(@Payload ChatMessage chatMessage,\n SimpMessageHeaderAccessor headerAccessor) {\n headerAccessor.getSessionAttributes().put(\"username\", chatMessage.getSender());\n return new ResponseEntity<>(true, HttpStatus.OK);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tString query =\"insert into message (username, msg) values (?,?)\";\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\n\t\t\t\t\tpst.setString(1, touserFeild.getText());\n\t\t\t\t\tpst.setString(2, msgFeild.getText());\n\t\t\t\t\t\n\t\t\t\t\tpst.execute();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"post message success\");\n\t\t\t\t\t\n\t\t\t\t\tpst.close();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch (Exception e7)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"post message fail\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Message Failed to post\");\n\t\t\t\t}\n\t\t\t\t//msgObject.refreshTable();\n\t\t\t\tdispose();\n\t\t\t}", "@RequestMapping(value = \"/blog/newpost\", method = RequestMethod.POST)\n\tpublic String newPost(HttpServletRequest request, Model model) {\n\t\tString title=request.getParameter(\"title\");\n\t\tString body=request.getParameter(\"body\");\n\t\t\n\t\t//Validate parameters if not valid send back to form w/ error message\n\t\tif (title==\"\" || body==\"\"){\n\t\t\tif (title!=\"\"){\n\t\t\t\tmodel.addAttribute(\"title\",title);\n\t\t\t}\n\t\t\tif(body!=\"\"){\n\t\t\t\tmodel.addAttribute(\"body\",body);\n\t\t\t}\n\t\t\tmodel.addAttribute(\"error\",\"Post must have a Title and Body!\");\n\t\t\treturn \"newpost\";\n\t\t}\n\t\t\n\t\t//if they validate, create a new post\n\t\tInteger userId = (Integer) request.getSession().getAttribute(AbstractController.userSessionKey);\n\t\tUser author= userDao.findByUid(userId);\n\t\tPost post = new Post(title,body,author);\n\t\tpostDao.save(post);\n\t\tmodel.addAttribute(\"post\", post);\n\t\treturn \"redirect:\"+ post.getAuthor().getUsername()+\"/\"+ post.getUid(); \t\t\n\t}", "@Override\n public void onClick(View v){\n EditText newMessageView=(EditText) findViewById(R.id.new_message);\n String newMessageView1 = newMessageView.getText().toString();\n newMessageView.setText(\"\");\n com.arunya.aarunya.Message msg = new com.arunya.aarunya.Message();\n msg.setmDate(new Date());\n msg.setmText(\"newMessage\");\n msg.setmSender(\"Raj\");\n\n MessageDataSource.saveMessage(msg,mConvoId); /*fetches message from edit text add to the message object */\n\n\n\n }", "@Override\n public boolean handleMessage(Message message) {\n String respuestPostMensaje=(String) message.obj;\n Log.d(\"RespuestaPost\",respuestPostMensaje.toString());\n\n if(respuestPostMensaje.contains(\"correctamente\"))\n {\n Log.d(\"SeGeneroUser\",respuestPostMensaje.toString());\n //mostrar mensaje\n Toast toast1 = Toast.makeText(vistaRegistro.getActividad(),\"Se creo el usuario\", Toast.LENGTH_SHORT);\n toast1.setGravity(Gravity.CENTER,0,500);\n toast1.show();\n vistaRegistro.getActividad().finish();\n\n } else\n {\n Log.d(\"No se puedo crear User\",\"No se puedo crear User\");\n Toast toast1 = Toast.makeText(vistaRegistro.getActividad(),\"No se puedo crear el usuario\", Toast.LENGTH_SHORT);\n toast1.setGravity(Gravity.CENTER,0,500);\n toast1.show();\n vistaRegistro.getActividad().finish();\n\n }\n\n\n return true;\n }", "public void sendMessage() {\n String userMessage = textMessage.getText();\n if (!userMessage.isBlank()) {//проверяю а есть ли что то в текстовом поле\n textMessage.clear();//очищаю текстовое поле на форме\n\n //пока оставлю\n //sb.append(userMessage).append(\"\\n\");\n\n //в общее поле добавляю сообщение\n areaMessage.appendText(userMessage+\"\\n\");\n }\n\n }", "@RequestMapping(value = \"/sendMessage\", method = RequestMethod.POST)\n\tpublic String sendMessage(@RequestParam(value = \"senderName\") String senderName,\n\t\t\t@RequestParam(value = \"message\") String mess, ModelMap map) {\n\n\t\tmessage.setMessage(mess);\n\t\tmessage.setSenderName(senderName);\n\t\tmessageDao.sendMessage(message);\n\t\treturn \"redirect:/\";\n\n\t}", "@PostMapping(\"/sendMessage\")\r\n public String sendMessage(@ModelAttribute(\"post\") PostDTO postDTO, Model model) {\r\n try {\r\n jdbcTemplate.execute(\"INSERT INTO Posts(Nickname, Message, PostDate)\\n\" +\r\n \"VALUES ('\" + postDTO.getNickname() + \"', '\" + postDTO.getMessage() + \"', '\" +\r\n new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()) + \"')\");\r\n } catch (DataAccessException exception) {\r\n LOGGER.warn(exception.getMessage());\r\n }\r\n return goToForumPage(model);\r\n }", "@Override\n public void onSuccess(long time) {\n ChatMessageBean message = new ChatMessageBean();\n message.setBelongUserMobileNo(currentUser.getMobilePhoneNumber());\n message.setContent(chatMessage);\n message.setSendTime(String.valueOf(time*1000L));\n message.setTargetUserMobileNo(friend.getMobilePhoneNumber());\n\n message.save(FriendsChatActivity.this);\n\n ImSdkUtil.sendTextMessage(friend.getMobilePhoneNumber(), chatMessage);\n\n chatAdapter.add(message);\n mChatListView.setSelection(chatAdapter.getCount() - 1);\n }", "@Override\n\tpublic void enteradoCambioMensaje(EventObject event) {\n\t\tList<MensajeWhatsApp> newMsgs = ((MensajeEvent) event).getNewMensajes();\n\t\tList<MensajeWhatsApp> oldMsgs = ((MensajeEvent) event).getOldMensajes();\n\t\t// Makes no sense to identify the contact as the person's actual name!\n\t\tif (!newMsgs.equals(oldMsgs)) {\n\t\t\tOptional<MensajeWhatsApp> WAmsg = newMsgs.stream()\n\t\t\t\t\t.filter(msg -> !msg.getAutor().equals(currentUser.getName())).findFirst();\n\t\t\tif (WAmsg != null) {\n\t\t\t\tString contactName = WAmsg.get().getAutor();\n\t\t\t\tOptional<Contacto> contact = currentUser.getContacts().stream()\n\t\t\t\t\t\t.filter(c -> c.getName().equals(contactName)).findFirst();\n\t\t\t\tif (contact.isPresent()) {\n\t\t\t\t\tnewMsgs.stream().forEach(msg -> {\n\t\t\t\t\t\tint speakerId = 0;\n\t\t\t\t\t\tif (msg.getAutor().equals(currentUser.getName()))\n\t\t\t\t\t\t\tspeakerId = currentUser.getId();\n\t\t\t\t\t\telse if (msg.getAutor().equals(contactName))\n\t\t\t\t\t\t\tspeakerId = contact.get().getId();\n\t\t\t\t\t\tif (speakerId != 0) {\n\t\t\t\t\t\t\taddMessage(msg.getTexto(), 0, contact.get());\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}", "@GetMapping(\"message-path\") //URL to which the form submits\n\tpublic ModelAndView messageMethod( //name of the method\n\t\t\t@RequestParam(required=false, defaultValue=\"«silence»\") String submittedMessage) {\n\t\tYeller goat = new Yeller(submittedMessage); //waiting for an instance of Yeller to fill the variable, sets it equal to the parameter from the user\n\t\tString allCaps = goat.caps();\t\t//converts to upper case and stores in a variable\n\t\t\n\t\t\n\t\tModelAndView mv = new ModelAndView(\"helloworld/message\"); //specifies what view you want to use (found in message.html file within templates folder)\n\t\t//full path: src/main/resources/templates/helloworld/message.html; must specify path below templates\n\t\tmv.addObject(\"title\", title);\n\t\tmv.addObject(\"message\", allCaps); //message is what you look for (the key found in template), then find the associated value of allCaps\n\t\treturn mv;\n\t}", "@Override\n public String performPost(HttpServletRequest request) {\n HttpSession session = request.getSession();\n if (session.getAttribute(\"user\") == null) {\n return \"login.do\";\n }\n List<String> errors = new ArrayList<>();\n session.setAttribute(\"errors\", errors);\n CreateBlogForm createBlogForm = new CreateBlogForm(request);\n session.setAttribute(\"form\", createBlogForm);\n errors.addAll(createBlogForm.getValidationErrors());\n if (errors.size() > 0) {\n return \"myblogs.do\";\n }\n // create a new blog\n User user = (User) session.getAttribute(\"user\");\n Blog blog = new Blog();\n blog.setAuthor(user.getFirstname() + \" \" + user.getLastname());\n blog.setContent(createBlogForm.getContent());\n blog.setDate(new Date());\n blog.setEmail(user.getEmail());\n try {\n blogDAO.create(blog);\n return \"myblogs.do\";\n } catch (RollbackException e) {\n e.printStackTrace();\n return \"errors.jsp\";\n }\n }", "@RequestMapping(value=\"/messageAll\", method = RequestMethod.POST)\n\tpublic String sendAccountMessage(HttpServletRequest request, Model model, \n\t\t\t@ModelAttribute(\"messageForm\") @Valid MessageForm messageForm, BindingResult bindingResult) {\n\t\tif (bindingResult.hasErrors()) {\n\t\t\tlogger.debug(\"Has errors\");\n\t\t\tmodel.addAttribute(\"error\", \"Form errors\");\n\t\t\treturn \"admin/messageAll\";\n }\n\t\tlogger.debug(\"Send Message Form: \"+messageForm.toString());\n\t\tif(!request.isUserInRole(AccountPrivilege.MODIFY.getName())) {\n\t\t\tmodel.addAttribute(\"error\", \"You do not have access to modify data (which is required to send messages)\");\n\t\t\tLoginForm loginForm = new LoginForm();\n\t\t\tmodel.addAttribute(\"loginForm\", loginForm);\n\t\t\tAccountCreateForm accountCreateForm = new AccountCreateForm();\n\t\t\tmodel.addAttribute(\"accountCreateForm\", accountCreateForm);\n\t\t\treturn \"index\";\n\t\t}\n\t\t\n\t\taccountMessageService.createAll(messageForm.getMessage(), null, null);\n\t\t\n\t\tmodel.addAttribute(\"message\", \"Message sent to all account\");\n\t\t\n\t\treturn \"admin/messageAll\";\n\t}", "@Override\r\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tif (!chatTextBox.getText().equalsIgnoreCase(\"\")) {\r\n\t\t\t\t\tstoryTimeService.sendRoomChatMessage(roomData.roomName, chatTextBox.getText(), new AsyncCallback<Void>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onSuccess(Void result) {\r\n\t\t\t\t\t\t\tif (DEBUG)\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Client: Sent message: \" + chatTextBox.getText());\r\n\t\t\t\t\t\t\tchatTextBox.setText(\"\");\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t}", "private void userMessageEvent(){\n message = UI.getMessage(); //Get object\r\n message.addKeyListener(new KeyListener() {\r\n @Override\r\n public void keyTyped(KeyEvent e) {}\r\n\r\n @Override\r\n public void keyPressed(KeyEvent e) {\r\n if(e.getKeyCode() == KeyEvent.VK_ENTER){ //Check if enter button is pressed\r\n if(!UI.getMessage().getText().equalsIgnoreCase(\"\")){ //If the message is not empty\r\n for (UserLogic t : threads) { //Go through users\r\n if(((String)UI.getContacts().getSelectedValue()).equals(groupChat)) { //If the chat is a group chat\r\n groupChatSend(t);\r\n }\r\n else { //Current User\r\n individualSend(t);\r\n }\r\n }\r\n UI.getMessage().setText(\"\"); //Clear message\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent e) {}\r\n });\r\n }", "public void doPost(HttpServletRequest req, HttpServletResponse res)\n\t\t\tthrows ServletException, IOException {\n\t\tThread userSideCheck = new Thread(this);\n\t\t/*\n\t\t * starts thread that determines which users are no longer connected -\n\t\t * removes those users from the list\n\t\t */\n\t\tuserSideCheck.start();\n\t\tString user;\n\t\tString message;\n\t\tString[] receivers, users;\n\t\tint count = 0;\n\t\tStringBuffer out = new StringBuffer(\"\");\n\t\t// get current session\n\t\tHttpSession session = req.getSession(true);\n\n\t\tout\n\t\t\t\t.append(\"<HTML><HEAD><TITLE>Chat form</TITLE></HEAD><BODY BGCOLOR='#FFFFFF'>\");\n\t\t/*\n\t\t * if user session doesn't have a name, and one is provided from form,\n\t\t * well - use it!\n\t\t */\n\t\tif ((session.getValue(\"com.mrstover.name\") == null)\n\t\t\t\t&& ((user = req.getParameter(\"name\")) != null)) {\n\t\t\t// but only if no one else is using that name\n\t\t\tboolean allowed = false;\n\t\t\tint x = 0;\n\t\t\twhile (x < allowedUsers.length)\n\t\t\t\tif (user.equals(allowedUsers[x++]))\n\t\t\t\t\tallowed = true;\n\n\t\t\tif (!checkUserExist(user) && allowed)\n\t\t\t\tsession.putValue(\"com.mrstover.name\", user);\n\t\t\telse\n\t\t\t\tout\n\t\t\t\t\t\t.append(\"A user with that name already exists. Please choose another<P>\");\n\t\t}\n\n\t\t/*\n\t\t * If we know user's name, we have a message, and name is not blank,\n\t\t * then we graciously accept the message and add to our list\n\t\t */\n\t\tif ((session.getValue(\"com.mrstover.name\") != null)\n\t\t\t\t&& ((message = req.getParameter(\"message\")) != null)\n\t\t\t\t&& (!((user = (String) session.getValue(\"com.mrstover.name\"))\n\t\t\t\t\t\t.equals(\"\")))) {\n\t\t\t// adds the user's session to our list of sessions, if necessary\n\t\t\taddUser(user, session);\n\t\t\tif (!message.equals(\"\")) {\n\t\t\t\t// add message and the desired receivers to our list\n\t\t\t\tif ((receivers = req.getParameterValues(\"receivers\")) != null)\n\t\t\t\t\taddMessage(user, message, receivers);\n\t\t\t\telse\n\t\t\t\t\taddMessage(user, message);\n\t\t\t}\n\t\t\t// reprint the message form\n\t\t\tout.append(\"<FORM ACTION='\" + thisServlet + \"' METHOD='POST'>\");\n\t\t\tout.append(\"<CENTER><TABLE>\");\n\t\t\tout\n\t\t\t\t\t.append(\"<TR><TD>Message:<BR> <TEXTAREA NAME='message'\"\n\t\t\t\t\t\t\t+ \" COLS='50' ROWS='2' WRAP='VIRTUAL'></TEXTAREA></TD>\"\n\t\t\t\t\t\t\t+ \"<TD><B>Send to:</B><BR><SELECT NAME='receivers' MULTIPLE><OPTION VALUE='all'>all\");\n\t\t\tusers = getUsers();\n\t\t\t// select box with list of current chat users\n\t\t\twhile (count < users.length) {\n\t\t\t\tout\n\t\t\t\t\t\t.append(\"<OPTION VALUE=\" + users[count] + \">\"\n\t\t\t\t\t\t\t\t+ users[count]);\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t\tout.append(\"</SELECT></TR>\");\n\t\t\tout.append(\"</TABLE>\");\n\t\t\tout.append(\"<INPUT TYPE='SUBMIT' VALUE='SUBMIT'>\");\n\t\t\tout.append(\"</CENTER></FORM></BODY></HTML>\");\n\t\t}\n\t\t// else we need to know who you are first\n\t\telse {\n\t\t\tout.append(\"<FORM ACTION='\" + thisServlet + \"' METHOD='POST'>\");\n\t\t\tout.append(\"<CENTER><TABLE>\");\n\t\t\tout\n\t\t\t\t\t.append(\"<TR><TD>Please Tell me your name: <INPUT TYPE='TEXT' NAME='name' VALUE=''></TD></TR>\");\n\t\t\tout\n\t\t\t\t\t.append(\"<TR><TD>Message:<BR> <TEXTAREA NAME='message'\"\n\t\t\t\t\t\t\t+ \" COLS='50' ROWS='2' WRAP='VIRTUAL'></TEXTAREA></TD></TR>\");\n\t\t\tout.append(\"</TABLE>\");\n\t\t\tout.append(\"<INPUT TYPE='SUBMIT' VALUE='SUBMIT'>\");\n\t\t\tout.append(\"</CENTER></FORM></BODY></HTML>\");\n\t\t}\n\t\toutputToBrowser(res, out.toString());\n\t}", "@Override\n public void onClick(View v) {\n String message = etMessage.getText().toString();\n // buat objek chat\n Chat chat = new Chat(\"yogi\", message);\n // kirim chat ke database\n chatReference.push().setValue(chat);\n // kosongkan inputan\n etMessage.getText().clear();\n }", "@PostMapping(\"/new\")\n @ResponseStatus(HttpStatus.CREATED)\n public Boolean newChat(@RequestBody NewChatEvent event) {\n notificationService.notifyAboutNewChat(event.getChatId(), event.getDepartmentId());\n scheduleService.scheduleReassignment(event.getChatId());\n return Boolean.TRUE;\n }", "public void sendMessage(View view) {\n EditText editText = findViewById(R.id.user_message);\n String message = editText.getText().toString();\n\n Intent intent = new Intent(this, MessageActivity.class);\n\n intent.putExtra(\"EXTRA_MESSAGE\", message);\n\n startActivity(intent);\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tEditText edtMessage = (EditText) findViewById(R.id.edtMessage);\n\t\t\t\t\t\tString message = edtMessage.getText().toString();\n\t\t\t\t\t\tedtMessage.setText(\"\");\n\n\t\t\t\t\t\tUserMessage userMessage = new UserMessage();\n\t\t\t\t\t\tuserMessage.setFromUser( application.getLoginUser() );\n\t\t\t\t\t\tUser toUser = new User();\n\t\t\t\t\t\ttoUser.setUserID( messageInfo.get(\"fromUserID\").toString() );\n\t\t\t\t\t\tuserMessage.setToUser( toUser );\n\t\t\t\t\t\tuserMessage.setMessage(message);\n\t\t\t\t\t\tsetProgressBarIndeterminateVisibility(true);\n\t\t\t\t\t\tsendHttp(\"/taxi/sendUserMessage.do\", mapper.writeValueAsString( userMessage ), 1);\t\n\t\t\t\t\t\tbForceScrollDown = true;\n\t\t\t\t\t}\n\t\t\t\t\tcatch( Exception ex )\n\t\t\t\t\t{\n\t\t\t\t\t\tcatchException(this, ex);\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n protected void saveMessageToDatabase(String conversationKey, String message) {\n String messageKey = messagesRef.push().getKey();\n HashMap<String, Object> messageInfo = buildMessageInfo(message);\n messagesRef.child(messageKey).updateChildren(messageInfo);\n\n FirebaseDatabase.getInstance().getReference().child(\"Groups\").\n child(getConversationKey()).child(\"lastMessageTime\").setValue(Calendar.getInstance().getTimeInMillis());\n }", "public void postMessage(Message message){\n messageRepository.addMessage(message);\n }", "@Override\n public void handleTextMessage(WebSocketSession session, TextMessage message) throws IOException{\n Map data = new Gson().fromJson(message.getPayload(),Map.class);\n\n // see what type of message\n final String type = getValueFromMessage(message,\"type\");\n\n switch (type){\n case \"name\":\n // payload from frontend\n String username = getValueFromMessage(message,\"payload\");\n\n log.info(\"receive name: \"+ username);\n\n // build message to json\n TextMessage retJson = setJson(\"name\", \"Hi, \"+username);\n\n session.sendMessage(retJson);\n }\n }", "@Override\n public void onClick(View v) {\n ParseUser currentUser = ParseUser.getCurrentUser();\n String currentUserUsername = currentUser.getUsername();\n\n\n //get the status user has enteretd, conver it to a string\n String newStatus = UsertxtFieldmsg.getText().toString();\n\n //Save the status in parse\n ParseObject statusObject = new ParseObject(\"Messages\");\n statusObject.put(\"Message\",newStatus);\n statusObject.put(\"user\", currentUserUsername);\n statusObject.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if(e == null){\n //succesfully stored the new status in parse\n Toast.makeText(User_SendMessage.this, \"Message Sent!\", Toast.LENGTH_LONG).show();\n\n //take user home\n Intent takeUserHome =new Intent(User_SendMessage.this, UserActivityPage.class);\n startActivity(takeUserHome);\n\n\n }else{\n //there was a problem storn new status, advice user\n AlertDialog.Builder builder = new AlertDialog.Builder(User_SendMessage.this);\n builder.setMessage(e.getMessage());\n builder.setTitle(\"Sorry\");\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n }\n });\n\n }", "public void submitComment(String message) {\n refreshState();\n CommentDTO comment = new CommentDTO(message, currentUser, currentPost);\n ctrl.addComment(comment, currentPost, currentUser);\n refreshState();\n }", "@Override\n public boolean onSubmit(CharSequence input) {\n Message message = new Message(input.toString());\n Message message2 = new Message(\"Hey dear!\");\n Author ab = new Author();\n ab.setId(senderId);\n message.setAuthor(ab);\n\n //adapter.addToStart(message,true);\n adapter.addToStart(message,true);\n adapter.addToStart(message2,false);\n return true;\n }", "@Override\n public void handle(RoutingContext ctx) {\n if (ctx.user() instanceof ExtraUser) {\n ExtraUser user = (ExtraUser)ctx.user();\n MultiMap params = ctx.request().params();\n Date chatDate1 = null;\n Date chatDate2 = null;\n if (params.contains(\"chatDate1\")) {\n chatDate1 = parseDate(params.get(\"chatDate1\"));\n }\n if (params.contains(\"chatDate2\")) {\n chatDate2 = parseDate(params.get(\"chatDate2\"));\n }\n if (params.contains(\"chatTo\")) {\n if (params.contains(\"chatMsg\")) {\n messageStore.addMessage(user.getId(), params.get(\"chatTo\"), params.get(\"chatMsg\"));\n }\n \n StringBuilder sb = new StringBuilder();\n //url=http://webdesign.about.com/\n HttpServerRequest r = ctx.request();\n String url = r.absoluteURI().substring(0, r.absoluteURI().length() - r.uri().length()) + r.path();\n\n sb.append(\"Chat\\n\");\n sb.append(\"from:\").append(user.getId()).append(\"\\n\");\n sb.append(\"to :\").append(params.get(\"chatTo\")).append(\"\\n\");\n \n //<input type=\"datetime-local\" name=\"bdaytime\">\n /*\n<p><form action=\"\">\n From (date and time):\n <input type=\"datetime-local\" name=\"chatDate1\" value=\"\">\n To (date and time):\n <input type=\"datetime-local\" name=\"chatDate2\" value=\"\"> \n <input type=\"submit\" value=\"Refresh\">\n <input type=\"hidden\" name=\"chatTo\" value=\"user\"/>\n</form>\n */\n String refresh = \"<p><form action=\\\"\\\">\\n\" +\n\" From (date and time):\\n\" +\n\" <input type=\\\"datetime-local\\\" name=\\\"chatDate1\\\" value=\\\"\\\">\\n\" +\n\" To (date and time):\\n\" +\n\" <input type=\\\"datetime-local\\\" name=\\\"chatDate2\\\" value=\\\"\\\"> \\n\" +\n\" <input type=\\\"submit\\\" value=\\\"Refresh\\\">\\n\" +\n\" <input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"user\\\"/>\\n\" +\n\"</form>\";\n// sb.append(\"<a href=\\\"\").append(r.absoluteURI()).append(\"\\\">\");\n// sb.append(\"refresh\").append(\"</a>\").append(\"\\n\");\n sb.append(refresh\n .replace(\"value=\\\"user\\\"\", \"value=\\\"\"+params.get(\"chatTo\")+\"\\\"\")\n .replace(\"action=\\\"\\\"\", \"action=\\\"\"+url+\"\\\"\")\n .replace(\"name=\\\"chatDate1\\\" value=\\\"\\\"\", \"name=\\\"chatDate1\\\" value=\\\"\"+getHtmlDateStr(chatDate1)+\"\\\"\")\n .replace(\"name=\\\"chatDate2\\\" value=\\\"\\\"\", \"name=\\\"chatDate2\\\" value=\\\"\"+getHtmlDateStr(chatDate2)+\"\\\"\")\n );\n \n for(Message m : messageStore.getMessages(user.getId(), params.get(\"chatTo\"), chatDate1, chatDate2)) {\n sb.append(dateFormat.format(m.getDate())).append(\">>>\");\n sb.append(StringEscapeUtils.escapeHtml(m.getFrom())).append(\":\");\n sb.append(addUrls(StringEscapeUtils.escapeHtml(m.getMsg()))).append(\"\\n\");\n }\n \n secureSet(ctx.response());\n ctx.response().putHeader(\"content-type\", \"text/html\").end(\n STR_CHAT\n .replace(\"action=\\\"actionName\\\"\", \"action=\\\"\\\"\")\n .replace(\"input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"user\\\"\", \"input type=\\\"hidden\\\" name=\\\"chatTo\\\" value=\\\"\"+params.get(\"chatTo\")+\"\\\"\")\n .replace(\"<messages/>\", sb.toString()) \n );\n \n } else {\n \n StringBuilder sb = new StringBuilder();\n for(String toid : messageStore.getChats(user.getId())) {\n sb.append(\"<a href=\\\"?chatTo=\").append(toid).append(\"\\\">\");\n sb.append(toid).append(\"</a>\").append(\"\\n\");\n }\n \n secureSet(ctx.response());\n ctx.response().putHeader(\"content-type\", \"text/html\").end(\n STR_CHATS\n .replace(\"action=\\\"actionName\\\"\", \"action=\\\"\\\"\")\n .replace(\"<messages/>\", sb.toString())\n );\n }\n } else {\n ctx.fail(HttpResponseStatus.FORBIDDEN.code());\n }\n\n }", "@PUT()\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_FORM_URLENCODED)\n @Path(\"/CreateMessage\")\n public Response createMessage(@FormParam(\"username\") String username,\n @FormParam(\"password\") String password,\n @FormParam(\"gson_message\") String msgJsonString)\n {\n Gson gson = new Gson();\n DTO_Message messageToCreate = gson.fromJson(msgJsonString, DTO_Message.class);\n System.out.println(messageToCreate.getTitle()+\" \"+messageToCreate.getContent()+\" \"+messageToCreate.getToUsername() +\" \"+messageToCreate.getFromId()+\" \"+messageToCreate.isRead());\n\n DB_Manager databaseManager = new DB_Manager();\n DTO_User user = databaseManager.getUserByNameAndPassword(username, password);\n if(user !=null)\n {\n boolean logList = databaseManager.createMessageByUser(messageToCreate, user);\n if(logList)\n {\n return Response.status(200).entity(RESULT_SUCCESS).build();\n }\n }\n return Response.status(403).entity(RESULT_FAILURE).build();\n\n }", "@Override\n public boolean onSubmit(CharSequence input) {\n Author author =new Author();\n author.setId(\"2\");\n author.setName(\"Jubril\");\n Message message=new Message();\n message.setCreatedAt(new Date());\n message.setId(\"1\");\n message.setText(input.toString());\n message.setAuthor(author);\n adapter.addToStart(message, true);\n return true;\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n\n String chat = chat_field.getText().toString();\n\n\n LandingActivity current_activity = (LandingActivity)getActivity();\n if(current_activity != null){\n new Chat(chat, current_user.getUsername(), getActivity());\n }\n //Construct the new Object\n\n }", "@POST\n\t@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML })\n\t@Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })\n\t@Path(\"/{sendingUserName}/{receivingUserName}\")\n\tpublic Response sendChatMessage(@PathParam(\"sendingUserName\") String sendinguserName,\n\t\t\t@PathParam(\"receivingUserName\") String receivinguserName,\n\t\t\tMessageDetail chatmessage) {\n\t\t\n\t\tLog.enter(sendinguserName,receivinguserName,chatmessage);\n\t\tMessageDetail resp = new MessageDetail();\n\t\t\n\t\ttry {\n\t\t\tUserPO sendpo = DAOFactory.getInstance().getUserDAO().findByName(sendinguserName);\n\t\t\tUserPO receivepo = DAOFactory.getInstance().getUserDAO().findByName(receivinguserName);\n\t\t\tif(sendpo == null || receivepo == null){\n\t\t\t\treturn badRequest();\n\t\t\t}\n\n\t\t\tIMessageDetailDAO mdao = DAOFactory.getInstance().getMessageDetailDAO();\n\t\t\tjava.util.Date date= new java.util.Date();\n\t\t\tTimestamp timeStmp = new Timestamp(date.getTime());\n\t\t\t\n\t\t\tMessageDetailPO mpo = new MessageDetailPO();\n\t\t\tmpo.setFrom_userId(sendpo.getUserId());\n\t\t\tmpo.setTo_userId(receivepo.getUserId());\n\t\t\tmpo.setMessage(chatmessage.getMessage());\n\t\t\tmpo.setMessage_timestamp(timeStmp);\n//\t\t\tmpo.setLocation(\"\");\n\t\t\tmdao.save(mpo);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\thandleException(e);\n\t\t} finally {\n\t\t\tLog.exit();\n\t\t}\n\t\t\n\t\treturn created(resp);\n\t}", "private void individualSend(UserLogic t) {\n if(t != UserLogic.this && t != null && ((String)UI.getContacts().getSelectedValue()).equals(t.username)){\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(username)) { //If both users are directly communicating\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText()); //Send message\r\n t.UI.getContacts().setCellRenderer(clearNotification); //Remove notification\r\n }\r\n else{ //If the user are not directly communicating\r\n t.UI.getContacts().setCellRenderer(setNotification); //Set notification\r\n }\r\n if(t.chats.containsKey(username)){ //Store chats in other users database (When database exists)\r\n ArrayList<String> arrayList = t.chats.get(username); //Get data\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>(); //create new database\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n }\r\n //This writes on my screen\r\n if(t == UserLogic.this && t!=null){ //On the current user side\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText()); //Write message to screen\r\n String currentChat = (String) UI.getContacts().getSelectedValue(); //Get selected user\r\n if(chats.containsKey(currentChat)){ //check if database exists\r\n ArrayList<String> arrayList = chats.get(currentChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n }\r\n }", "@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tint id = -1;\n\t\ttry {\n\t\t\tid = Integer.parseInt(request.getParameter(\"id\"));\n\t\t} catch (Exception e) {\n\t\t}\n\n\t\tChatServerConnector.sentMessage(request.getParameter(\"message\"), id);\n\t}", "@RequestMapping(value = \"/sendTweet\")\n public ModelAndView sendTweet(@ModelAttribute(\"tweetData\") Tweet formdata, HttpServletRequest request, HttpServletResponse response) {\n if (checkIfLoggedIn(request, response)) {\n //Create a timestamp\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String timeStamp = sdf.format(new Date());\n //Get ID of the current user from session\n Object currentUser = request.getSession().getAttribute(\"userLoggedIn\");\n //get tweet from form input formdata\n String newTweet = formdata.getTweet();\n //validate that the tweet is no longer than 160 characters, otherwise return errorpage with errormessage\n if (newTweet.length() > 160) {\n String errorMessage = \"The tweet can only be up to 160 characters!\";\n return new ModelAndView(\"errorpage\", \"errorMessage\", errorMessage);\n\n }\n //Create tweet\n tweetJDBCTemplate.createTweet((int) currentUser, newTweet, timeStamp);\n String successMessage = \"You have successfully tweeted!\";\n //List the tweets in the same way as in tweetPage()\n List<Tweet> listTweet = tweetJDBCTemplate.listTweets();\n listTweet.size();\n List<Following> followingIds = tweetJDBCTemplate.getFollowing((int) currentUser);\n List<Tweet> tweets = new ArrayList<Tweet>();\n for (Following followingId : followingIds) {\n for (Tweet tweet : listTweet) {\n if (tweet.getUserId() == followingId.getFollowingId()) {\n tweets.add(tweet);\n }\n }\n }\n for (Tweet tweet : listTweet) {\n if (tweet.getUserId() == (int) currentUser) {\n tweets.add(tweet);\n }\n }\n //Sort the list of tweets by timestamp\n tweets.sort(Comparator.comparing(Tweet::getTimeStamp).reversed());\n ModelAndView modelView = new ModelAndView();\n //List tweets and view tweets page again after tweet has been created\n modelView.addObject(\"successMessage\", successMessage);\n modelView.addObject(\"size\", listTweet.size());\n modelView.addObject(\"listTweet\", tweets);\n modelView.setViewName(\"tweets\");\n return modelView;\n } else {\n //errormessage in case user is not logged in, return login page with login message\n return new ModelAndView(\"login\", \"errorMessage\", \"Please login first!!\");\n }\n }", "public void contact(User seller, String form){\n Contact contact = new Contact(this.user, seller);\n Message message = new Message(contact, form);\n //when other user sees message\n message.setMessageRead();\n }", "public void sendMessage(View view) {\n\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n\n EditText editText = (EditText) findViewById(R.id.editText);\n\n String message = editText.getText().toString();\n\n intent.putExtra(EXTRA_MESSAGE, message);\n\n\n\n startActivity(intent);\n\n }", "@Action(\n value = \"send\",\n results = {\n @Result(name=\"error\", location=\"/messages-add.tiles\", type=\"tiles\"),\n @Result(name=\"input\", location=\"/messages-add.tiles\", type=\"tiles\"),\n @Result(name=\"success\", type = \"redirectAction\", params = {\n \"namespace\", \"/\", \"actionName\", \"home\", \"message\", \"\"\n })\n }\n )\n public String execute() throws Exception{\n\n\n try {\n Message message = ModelFactory.create(Message.class, this.messageBean);\n\n message.setTo( userDAO.get( Long.parseLong(this.messageBean.getDestinator())) );\n message.setFrom( this.authenticatedUser );\n\n messageDAO.save( message );\n\n // Copy attached piece\n // @todo this part works but is deactivated because I don't really now where to put the file for now ...\n String destPath = \"C:/\";\n if( ! this.messageBean.getFileUploadFileName().isEmpty() ){\n// try{\n// File destFile = new File(destPath, this.messageBean.getFileUploadFileName());\n// FileUtils.copyFile( this.messageBean.getFileUpload(), destFile);\n// }catch(IOException e){\n// throw new Exception(e);\n// }\n }\n\n return SUCCESS;\n\n } catch (Exception e) {\n this.addActionError(\"Could not send message: \" + e.getMessage());\n e.printStackTrace();\n return ERROR;\n }\n\n }", "public void actionPerformed(ActionEvent ae) {\n\t\tmyObject = new ChatMessage();\n\t\t//sets name for ChatMessage\n\t\tmyObject.setName(nameField.getText());\n\t\t//gets the text from the chat text area and puts it in the ChatMessage \n\t\tmyObject.setMessage(tf.getText());\n\t\t//Resets the column for typing message again\n\t\ttf.setText(\"\");\n\t\ttry {\n\t\t\tmyOutputStream.reset();\n\t\t\t//writes the object to output stream\n\t\t\tmyOutputStream.writeObject(myObject);\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(ioe.getMessage());\n\t\t}\n\n\t}", "@RequestMapping(value = \"/flood/addComment\", method = RequestMethod.POST)\n public String addCommentPost(@ModelAttribute(\"newComment\") Comment comment,\n HttpServletRequest request,\n Model model) {\n comment.setUserId(1L);\n model.addAttribute(\"newComment\", commentService.addComment(comment));\n return \"floodLine\";\n }", "public void handleIncomingMessage(ChatRoomSession chatRoomSession,\n ChatRoomUser chatRoomUser, ChatMessage chatMessage)\n {\n if (logger.isDebugEnabled())\n logger.debug(\"Incoming multi user chat message received: \"\n + chatMessage.getMessage());\n\n String msgBody = chatMessage.getMessage();\n\n String msgContent;\n if (msgBody.startsWith(defaultHtmlStartTag))\n {\n msgContent =\n msgBody.substring(msgBody.indexOf(defaultHtmlStartTag)\n + defaultHtmlStartTag.length(), msgBody\n .indexOf(defaultHtmlEndTag));\n }\n else\n msgContent = msgBody;\n\n Message newMessage =\n createMessage(\n msgContent.getBytes(),\n HTML_MIME_TYPE,\n OperationSetBasicInstantMessagingIcqImpl\n .DEFAULT_MIME_ENCODING,\n null);\n\n String participantUID = chatRoomUser.getScreenname().getFormatted();\n\n if (participantUID.equals(nickName))\n return;\n\n AdHocChatRoomMessageReceivedEvent msgReceivedEvent =\n new AdHocChatRoomMessageReceivedEvent(\n chatRoom,\n participants.get(participantUID),\n new Date(),\n newMessage,\n AdHocChatRoomMessageReceivedEvent\n .CONVERSATION_MESSAGE_RECEIVED);\n\n fireMessageEvent(msgReceivedEvent);\n }", "@PostMapping(\"/goToSendMessagePage\")\r\n public String goToSendMessagePage(@ModelAttribute(\"post\") PostDTO postDTO, Model model) {\r\n model.addAttribute(\"post\", postDTO);\r\n return MESSAGE_PAGE;\r\n }", "private void handleSubmit(){\n // Check if the fields are the properly inserted (no label displayed and no empty fields)\n if (!invalidBirthdayLabel.isVisible() && !invalidConfirmPasswordLabel.isVisible() &&\n !invalidEmailLabel.isVisible() && !invalidNameLabel.isVisible() && !invalidPasswordLabel.isVisible() &&\n !invalidSurnameLabel.isVisible() && !surnameTF.getText().equals(\"\") && !usernameTF.getText().equals(\"\") &&\n !passwordTF.getText().equals(\"\") && !nameTF.getText().equals(\"\") && !emailTF.getText().equals(\"\") &&\n !confirmPasswordTF.getText().equals(\"\") && !country.getValue().toString().equals(\"\")\n ) {\n InvalidFormEntryLabel resultLabel;\n // Get the Date\n LocalDate localDate = birthdayDP.getValue();\n Instant instant = Instant.from(localDate.atStartOfDay(ZoneId.systemDefault()));\n Date date = Date.from(instant);\n\n User user = new User(\n false,\n surnameTF.getText(),\n nameTF.getText(),\n usernameTF.getText(),\n passwordTF.getText(),\n emailTF.getText(),\n date,\n country.getValue().toString());\n\n // Create a connection to MongoDB and insert the user\n UserManager userManager = UserManagerFactory.buildManager();\n\n resultLabel = new InvalidFormEntryLabel(\"\", 800, 600, false);\n try {\n if(userManager.register(user)) {\n resultLabel.setText(\"Sign up successfully done\");\n resultLabel.setVisible(true);\n resultLabel.setStyle(\"-fx-background-color: green;\");\n\n // ADD IT ALSO IN NEO4J\n UserNetworkManager userNetworkManager = UserNetworkManagerFactory.buildManager();\n userNetworkManager.addUser(user);\n }\n } catch (Exception e) {\n resultLabel.setText(\"Username already exists\");\n resultLabel.setVisible(true);\n }\n\n\n sceneNodes.getChildren().add(resultLabel);\n }\n\n }", "@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString username=req.getParameter(\"username\");\r\n\t\tString message =user.sayHello(username);\r\n\t\treq.getSession().setAttribute(\"message\", message);\r\n\t\treq.getRequestDispatcher(\"/Hello.htm\").forward(req, resp);\r\n\t\t\r\n\t}", "public void addMessage(String message, String chatID) {\n if (threadName.equals(chatID)) {\n Label text = new Label(message);\n text.setWrapText(true);\n StackPane messageBox = new StackPane();\n messageBox.getChildren().addAll(new Rectangle(), text);\n if (message.split(ServerConstants.USERNAME_DELIMITER)[0].equals(accountDisplay.getUsername())) {\n messageBox.getStyleClass().add(\"current-user-message\");\n } else {\n messageBox.getStyleClass().add(\"remote-message\");\n }\n history.add(messageBox, 0, history.getRowCount());\n }\n }", "@Override\n\tprotected ModelAndView handleRequestInternal(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {\n\t\tModelAndView model = new ModelAndView(\"contact\");\n\t\tmodel.addObject(\"command\", getMsg());\n\n\t\treturn model;\n\t}", "protected void onSendMessage(View view){\n et = (EditText)findViewById(R.id.message);\n String message = et.getText().toString();\n Intent intent = new Intent(this, ReceiveMessageActivity.class);\n intent.putExtra(\"message\",message);\n startActivity(intent);\n }", "public void getNewMessage() {\n boolean z;\n if (this.popupMessages.isEmpty()) {\n onFinish();\n finish();\n return;\n }\n if ((this.currentMessageNum != 0 || this.chatActivityEnterView.hasText() || this.startedMoving) && this.currentMessageObject != null) {\n int size = this.popupMessages.size();\n int i = 0;\n while (true) {\n if (i >= size) {\n break;\n }\n MessageObject messageObject = this.popupMessages.get(i);\n if (messageObject.currentAccount == this.currentMessageObject.currentAccount && messageObject.getDialogId() == this.currentMessageObject.getDialogId() && messageObject.getId() == this.currentMessageObject.getId()) {\n this.currentMessageNum = i;\n z = true;\n break;\n }\n i++;\n }\n }\n z = false;\n if (!z) {\n this.currentMessageNum = 0;\n this.currentMessageObject = this.popupMessages.get(0);\n updateInterfaceForCurrentMessage(0);\n } else if (this.startedMoving) {\n if (this.currentMessageNum == this.popupMessages.size() - 1) {\n prepareLayouts(3);\n } else if (this.currentMessageNum == 1) {\n prepareLayouts(4);\n }\n }\n this.countText.setText(String.format(\"%d/%d\", new Object[]{Integer.valueOf(this.currentMessageNum + 1), Integer.valueOf(this.popupMessages.size())}));\n }", "@PostMapping(\"/chat\")\n public ChatBean createChat(@Valid @RequestBody ChatBean chat) {\n return chatBeanRepository.save(chat);\n }", "@Override\r\n public void onClick(View v) {\n myWord=null;\r\n\r\n /**\r\n * 这是一个发送消息的监听器,注意如果文本框中没有内容,那么getText()的返回值可能为\r\n * null,这时调用toString()会有异常!所以这里必须在后面加上一个\"\"隐式转换成String实例\r\n * ,并且不能发送空消息。\r\n */\r\n myWord=(editText.getText()+\"\").toString();\r\n if(myWord.length()==0)\r\n return;\r\n editText.setText(\"\");\r\n addTextToList(myWord, ME);\r\n /**\r\n * 更新数据列表,并且通过setSelection方法使ListView始终滚动在最底端\r\n */\r\n adapter.notifyDataSetChanged();\r\n chatListView.setSelection(chatList.size()-1);\r\n\r\n new Thread() {\r\n\r\n @Override\r\n public void run() {\r\n //String messageStr = editText.getText().toString();\r\n //handler.sendEmptyMessage(2);\r\n\r\n///////////////////////////////////////////////////////////////////////////////////////\r\n//发送聊天消息\r\n Map<String, String> paprams = new HashMap<String, String>();\r\n paprams.put(\"operation\", \"send\");\r\n //用户自己的id\r\n paprams.put(\"fromID\", ffd_MainActivity.id);\r\n paprams.put(\"toID\",toID);\r\n paprams.put(\"time\", \"1111111\");\r\n paprams.put(\"content\", myWord);\r\n\r\n String result = new HttpUtil().post(CommonUrl.Chat, paprams);\r\n\r\n///////////////////////////////////////////////////////////////////////////////////////\r\n\r\n //Message msg = new Message();\r\n //msg.what = 1;\r\n //msg.obj = \"fromID:\" + user.getUserID() + \"\\ttoID\" + toId + \"\\ttime:\" + \"2016-3-13\" + \"\\tcontent:\" + messageStr;\r\n }\r\n\r\n }.start();\r\n\r\n }", "@Override\n public void sendMessage() {\n Intent intent = new Intent(this, GoToMessage.class);\n intent.putExtras(getIntent().getExtras());\n Bundle args = new Bundle();\n args.putString(\"nickname\", mNickname);\n //args.putSerializable(\"convoitem\", item);\n args.putString(\"topic\", mContact.getTopic());\n args.putInt(\"chatid\", mContact.getChatID());\n intent.putExtras(args);\n startActivity(intent);\n }", "public void receive()\n {\n //Client receives a message: it finds out which type of message is and so it behaves differently\n //CHAT message: prints the message in the area\n //CONNECT message: client can't receive a connect message from the server once it's connected properly\n //DISCONNECT message: client can't receive a disconnect message from the server\n //USER_LIST message: it shows the list of connected users\n try\n {\n String json = inputStream.readLine();\n\n switch (gson.fromJson(json, Message.class).getType())\n {\n case Message.CHAT:\n ChatMessage cmsg = gson.fromJson(json, ChatMessage.class);\n\n if(cmsg.getReceiverClient() == null)\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO ALL): \" + cmsg.getText() + \"\\n\");\n else\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO YOU): \" + cmsg.getText() + \"\\n\");\n break;\n case Message.CONNECT:\n //Send login nickname and wait for permission to join\n //if message code is 1, nickname is a duplicate and must be changed, then login again\n //(send call is inside button event)\n ConnectMessage comsg = gson.fromJson(json, ConnectMessage.class);\n\n if(comsg.getCode() == 1)\n {\n //Show error\n ChatGUI.getInstance().getLoginErrorLabel().setVisible(true);\n }\n else\n {\n //Save nickname\n nickname = ChatGUI.getInstance().getLoginField().getText();\n\n //Hide this panel and show main panel\n ChatGUI.getInstance().getLoginPanel().setVisible(false);\n ChatGUI.getInstance().getMainPanel().setVisible(true);\n }\n break;\n case Message.USER_LIST:\n UserListMessage umsg2 = gson.fromJson(json, UserListMessage.class);\n fillUserList(umsg2);\n break;\n }\n } \n catch (JsonSyntaxException | IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public String sendMessage(){\n\t\tMessageHandler handler = new MessageHandler();\n\t\tSystem.out.println(this.senderName +\" \"+this.recieverName+ \" \" + this.subject +\" \"+this.message);\n\t\t\n\t\tif((handler.addNewMessage(this.senderName, this.recieverName, this.subject,this.message))){\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tcontext.addMessage(null,new FacesMessage(FacesMessage.SEVERITY_INFO, \"Message:Sent\",\"Sent\"));\n\t\t\tcontext.getExternalContext().getFlash().setKeepMessages(true);\n\t\t\treturn mainXhtml;\n\t\t}else{\n\t\t\t FacesContext.getCurrentInstance().addMessage(null,new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Message:Failed to send\",\"Failed to Send\"));\n\t\t\tSystem.out.println(\"Message not sent\");\n\t\t\treturn null;\n\t\t}\n\t\n\t}", "public void actionPerformed(ActionEvent e) {\n\n if (inputField.getText().trim().length() == 0) {\n return;\n }\n try {\n\n String input = inputField.getText();\n \n inputField.setText(\"\");\n clientMessage = new Message(getName(), Message.ALL, input, Message.DATA);\n clientMessage.setID(manager.getNextMessageID());\n //JOptionPane.showMessageDialog(null, input);\n //JOptionPane.showMessageDialog(null, clientMessage.getContent());\n sendMessage(clientMessage);\n\n } catch (IOException err) {\n System.err.println(err.getMessage());\n err.printStackTrace();\n }\n }", "public void processMessage(Chat chat, Message message) {\n\t\t\t\tif(message.getSubject().toString().equalsIgnoreCase(\"Registration Successful!\")){\n \t System.out.println(\"disconnected \"+username);\n\n\t\t\t\t connection.disconnect();\n\t\t\t\t time=System.currentTimeMillis()-time;\n\t\t\t\t totalTime += time;\n\t\t\t\t totalCount++;\n//\t\t\t\t connection.disconnect();\n\t\t\t\t System.out.println(\"TotalTime: \" + totalTime + \"\\nTotalCount: \" + totalCount + \"\\nAverage: \" + ((totalTime*1.0)/totalCount));\n\t\t\t\t \n//\t\t\t\t System.out.println(\"time taken \"+username+\" \"+time);\n\t\t \t}\n\t\t\t\t }", "@Override\n public void onClick(View v) {\n if(validateInputInfo()){\n\n //Get text input\n String firstName = newContactFirstName.getText().toString();\n String lastName = newContactLastName.getText().toString();\n String email = newContactEmailAddress.getText().toString();\n String phone = newContactPhoneNumber.getText().toString();\n\n //Create contact object\n final Contact addMe = new Contact(firstName, lastName, email, phone);\n\n //Get unique ID in database to store Contact object\n String id = myDatabase.push().getKey();\n\n //Add to database\n myDatabase.child(id).setValue(addMe).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n //If successful display message and return to home page\n if(task.isSuccessful()){\n Toast.makeText(getBaseContext(), \"New contact \" + addMe.getDisplayName() + \" created!\", Toast.LENGTH_LONG).show();\n\n //Go to home page\n finish();\n }\n else {\n Toast.makeText(getBaseContext(), \"Unable to add \" + addMe.getDisplayName() + \" contact\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n }", "@Override\r\n public void handleMessage(Message inputMessage) {\n actualMainActivityInstance.putDataOnPage((String)inputMessage.obj);\r\n }", "private void proceed() {\n finish();\n Intent onReturnView = new Intent(ChatMessage.this, MainActivity.class);\n startActivity(onReturnView);\n }", "private Message save(Message message) {\n\n try {\n\n statement.execute(\"insert into messages (sender_id, receiver_id, transmitted_time, text)\" +\n \"values ('\" + message.getSender_id() + \"', '\" + message.getReceiver_id()\n + \"', current_timestamp() , '\" + message.getText() + \"');\");\n ResultSet resultSet = statement.executeQuery(\n \"select * from messages \" +\n \"where messages.index = \" +\n \"(select max(messages.index) from messages);\"\n );\n\n if (resultSet.next()) {\n message.setIndex(resultSet.getLong(\"index\"));\n message.setTransmitted_time(resultSet.getTimestamp(\"transmitted_time\"));\n }\n\n message.setReadOrNot(false);\n return message;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n\n return null;\n\n }", "private void addMessage(final ChatMessage chatMessage)\n\t{\n\t\tfinal SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd MMMM HH:mm:ss\", Locale.US);\n\t\tfinal Date date = chatMessage.getSentDate();\n\t\tprint(\"\\n\" + dateFormat.format(date) + \", \" + chatMessage.getAuthor() + \":\");\n\t\tprint(\"\\n\" + chatMessage.getContent() + \"\\n\");\n\t}", "private void submitForm(){\n String toast_message;\n\n int time = getValueOfField(R.id.at_editTextNumberSigned_timeValue);\n int easyNumber = getValueOfField(R.id.at_editTextNumberSigned_levelEasyValue);\n int mediumNumber = getValueOfField(R.id.at_editTextNumberSigned_levelMiddleValue);\n int highNumber = getValueOfField(R.id.at_editTextNumberSigned_levelHighValue);\n int hardcoreNumber = getValueOfField(R.id.at_editTextNumberSigned_levelExpertValue);\n\n // if time is between 0 and 1440 min\n if (time > 0){\n if(time < 24*60){\n // if numbers are positives\n if (easyNumber >= 0 && mediumNumber >= 0 && highNumber >= 0 && hardcoreNumber >= 0){\n\n // save data\n int id = this.controller.getLastIdTraining() + 1;\n\n ArrayList<Level> listLevel = new ArrayList<>();\n listLevel.add(new Level(\"EASY\", easyNumber));\n listLevel.add(new Level(\"MEDIUM\", mediumNumber));\n listLevel.add(new Level(\"HIGHT\", highNumber));\n listLevel.add(new Level(\"HARDCORE\", hardcoreNumber));\n\n Training training = new Training(id, inputCalendar.getTime(), time, listLevel);\n\n this.controller.AddTraining(training);\n\n // init values of Form\n initForm(null);\n\n // redirection to stats page\n Navigation.findNavController(getActivity(),\n R.id.nav_host_fragment).navigate(R.id.navigation_list_training);\n\n toast_message = \"L'entrainement a bien été ajouté !\";\n }else toast_message = \"Erreur:\\nToutes les valeurs de voies ne sont pas positive !\";\n }else toast_message = \"La durée ne doit pas exceder 1440 min.\";\n }else toast_message = \"La durée doit être supérieur à 0 min.\\n\";\n\n // Send alert\n Toast.makeText(getContext(), toast_message, Toast.LENGTH_LONG).show();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_message, container, false);\n\n submitButton = (Button) view.findViewById(R.id.submit_message_button);\n cancelButton = (Button) view.findViewById(R.id.cancel_button);\n messageInput = (EditText) view.findViewById(R.id.message_field);\n lowUrgencyRadio = (RadioButton) view.findViewById(R.id.low_urgency_radio);\n highUrgencyRadio = (RadioButton) view.findViewById(R.id.high_urgency_radio);\n\n submitButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n User user = Common.getUserFromPreferences(getActivity());\n\n if(user == null)\n return;\n\n int urgency = highUrgencyRadio.isChecked() ? Common.URGENCY_HIGH : Common.URGENCY_LOW;\n int toUserId = Integer.parseInt(tabletId);\n Log.i(TAG, \"toUserId= \" + toUserId + \"\\n\" + \"user: \" + user.getName());\n\n Common.addMessage(user.getId(), toUserId, null, urgency, messageInput.getText().toString().trim());\n fragmentCallback.createToast(\"Message was sent. See you later...\");\n fragmentCallback.closeActivity();\n }\n });\n\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // close activity\n getActivity().finish();\n }\n });\n\n return view;\n }", "@SubscribeEvent\n public void onMessageReceived(GuildMessageReceivedEvent event) {\n if (event.getAuthor().isBot() || event.getMember() == null) return;\n // Logic\n GuildUserModel guildUser = taules.dataManager.getGuildUserModel(event.getGuild().getIdLong(), event.getMember());\n DB.save(new MessageLogModel(guildUser.getId()));\n }", "public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n //EditText editText = (EditText) findViewById(R.id.edit_message);\n //String message = editText.getText().toString();\n //intent.putExtra(EXTRA_MESSAGE, message);\n\n startActivity(intent);\n }", "@Override\r\n\t\t\tpublic void Message(TranObject msg) {\n\t\t\t\tif(msg.getObjStr()!=null){\r\n\t\t\t\t\tString objStr=msg.getObjStr();\r\n\t\t\t\t\tUser addUser=gson.fromJson(objStr,new TypeToken<User>(){}.getType());\r\n\t\t\t\t\tboolean hasUser=false;\r\n\t\t\t\t\tfor(Category cate:user.getCategorys()){\r\n\t\t\t\t\t\tfor(User u:cate.getMembers()){\r\n\t\t\t\t\t\t\tif(u.getId()==addUser.getId()){\r\n\t\t\t\t\t\t\t\thasUser=true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(hasUser){\r\n\t\t\t\t\t\tDisplay.getDefault().syncExec(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\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"you already has this friend\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tDisplay.getDefault().syncExec(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\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\t\tl.add(addUser);\r\n\t\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tDisplay.getDefault().syncExec(new Runnable() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tList<User> l=new ArrayList<User>();\r\n\t\t\t\t\t\t\ttv.setInput(l);\r\n\t\t\t\t\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"wain\", \"Without this user \");\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\r\n\t\t\t}", "public void sendMessage(View view) {\n Intent intent = new Intent(this, DisplayMessageActivity.class);\n EditText editText = (EditText) findViewById(R.id.editText);\n String message = editText.getText().toString();\n intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n\n }", "public static synchronized void createMessage(MessageModel message, String parentMessageId) throws MessageException, MongoException, SQLException {\n\t\t// Verify the message parameters\n\t\tboolean valid = true;\n\t\tStringBuilder errorMessage = new StringBuilder();\n\t\t\n\t\tif(message.getMessageText() == null || !Security.isStringNotEmpty(message.getMessageText())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message text : \" + message.getMessageText());\n\t\t}\n\t\tif(message.getMessageBoardName() == null || !Security.isValidBoardName(message.getMessageBoardName())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message board name : \" + message.getMessageBoardName());\n\t\t}\n\t\tif(message.getMessagePosterId() == null || !Security.isValidUserId(message.getMessagePosterId())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message poster id : \" + message.getMessagePosterId());\n\t\t}\n\t\tif(message.getMessageDate() == null) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message date : null\");\n\t\t}\n\t\t\n\t\t// If there is an error, throw an error\n\t\tif(!valid) {\n\t\t\t\n\t\t\tthrow new MessageException(errorMessage.toString());\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Escape the HTML special characters\n\t\t\tmessage.setMessageText(Security.htmlEncode(message.getMessageText()));\n\t\t\tmessage.setMessageBoardName(Security.htmlEncode(message.getMessageBoardName()));\n\t\t\t\n\t\t\t// Get message ID dynamically\n\t\t\tif(parentMessageId != null && !parentMessageId.equals(\"\")) {\n\t\t\t\t\n\t\t\t\t// Get the message parent\n\t\t\t\tMessageFilter parentFilter = new MessageFilter();\n\t\t\t\tparentFilter.addMessageId(parentMessageId);\n\t\t\t\tList<MessageModel> parents = MessageDatabaseManager.getMessage(parentFilter, false, true);\n\t\t\t\tif(parents.size() == 1) {\n\t\t\t\t\t\n\t\t\t\t\tMessageModel parent = parents.get(0);\n\t\t\t\t\tmessage.setMessageId(parent.getNextAnswerId());\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tthrow new MessageException(\"Parent message not found : \" + parentMessageId);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// Get the next root message ID\n\t\t\t\tmessage.setMessageId(MessageDatabaseManager.getNextRootMessageId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Insert the new message\n\t\t\tMessageDatabaseManager.insertMessage(message);\n\t\t\t\n\t\t}\n\t}", "private void saveOrUpdateNewMessageRealm(_Message message) {\r\n\r\n //realm required to submit from separate thread. IF I do operation in ui thread,\r\n //I need .allowQueriesOnUiThread(true), that's no need in my case\r\n executor.execute(() -> {\r\n // use Realm on background thread\r\n _RealmController.insertOrUpdateNewMessage(message);\r\n });\r\n }", "@PutMapping(\"/chat/{id}\")\n public ChatBean addMessage(@PathVariable(value = \"id\") Long chatId, @Valid @RequestBody MessageBean messageDetails) {\n ChatBean chat = chatBeanRepository.findById(chatId).get();\n chat.addMessage(messageDetails.getId());\n ChatBean updatedChat = chatBeanRepository.save(chat);\n return updatedChat;\n }", "@RequestMapping(value = \"/signup\", method = RequestMethod.POST)\n\tpublic String signUpSubmit(@ModelAttribute(\"userForm\") @Valid UserDto userForm, BindingResult bindingResult,\n\t\t\t\t\t\t\t HttpServletRequest request, Model model)\n\t{\n\t\tif (userService.findUserByUsername(userForm.getUsername()) != null)\n\t\t\tbindingResult.rejectValue(\"username\", \"message.usernameDuplicate\");\n\n\t\t/* Check if passwords match */\n\t\tif (!userForm.getPassword().equals(userForm.getPasswordConfirm()))\n\t\t\tbindingResult.rejectValue(\"passwordConfirm\", \"message.passwordConfirmNotMatch\");\n\n\t\t/* Retry Registration if there are any errors */\n\t\tif (bindingResult.hasErrors()) {\n\t\t\tmodel.addAttribute(\"userForm\", userForm);\n\t\t\treturn \"user/signup\";\n\t\t}\n\n\t\t/* Register new user */\n\t\tArrayList<Role> roles = new ArrayList<Role>();\n\t\troles.add(userService.findRoleByName(\"ROLE_USER\"));\n\t\tUser newUser = userService.saveNewUser(userForm, roles);\n\n\t\t/* Publish Event and send confirmation e-mail */\n\t\ttry {\n\t\t\teventPublisher.publishEvent(new OnRegistrationCompleteEvent(newUser, request.getLocale(), userService.getAppUrl(request)));\n\t\t} catch (Exception me) {\n\t\t\tmodel.addAttribute(\"userForm\", userForm);\n\t\t\tmodel.addAttribute(\"errorMessage\", me);\n\t\t\tme.printStackTrace();\n\t\t\treturn \"user/signup\";\n\t\t}\n\n\t\t/* Redirect to success page */\n\t\treturn \"redirect:/signup-confirm\";\n\t}", "public abstract void newChatTitleMessage(Message m);", "public void sendMessageToSpecific() {\n try {\n if (socket == null){\n JOptionPane.showMessageDialog(null, \"SSLSocket is not connected to server. Connect before sending message.\",Env.ChatClientMessageBoxTitle, JOptionPane.ERROR_MESSAGE);\n return;\n }\n String usernameSendTo = JOptionPane.showInputDialog(null, \"Enter username to send message to\");\n String msg = JOptionPane.showInputDialog(null, \"Enter message to send to client with username: \" + usernameSendTo);\n if (usernameSendTo.trim().equals(user.getUsername().trim())){\n JPanel jp = new JPanel();\n jp.setLayout(new BorderLayout());\n JLabel jl = new JLabel(\n \"<html><font color=red><b>Are you sure that you want to send a message to yourself? </font>:\"\n + \"</b><br><br></html>\");\n Font font = new Font(\"Arial\", java.awt.Font.PLAIN, 14);\n jl.setFont(font);\n jp.add(jl, BorderLayout.NORTH);\n if (JOptionPane.showConfirmDialog(null, jp, Env.ChatClientMessageBoxTitle,\n JOptionPane.OK_OPTION, JOptionPane.WARNING_MESSAGE, null) == 0) {\n PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream(), \"UTF-8\"), true);\n writer.println(passUtil.toHexString(\"msgspecific|split|\" + usernameSendTo + \"|split|\" + user.getUsername() + \"|split|\" + msg));\n writer.flush();\n chatClientController.appendToPane(new Date(System.currentTimeMillis()) + \": You (\" + user.getUsername() + \"): To: \" + usernameSendTo + \": \" + msg, \"BLUE\", null);\n } else {\n System.out.println(\"Input cancelled\");\n }\n } else {\n PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream(), \"UTF-8\"), true);\n writer.println(passUtil.toHexString(\"msgspecific|split|\" + usernameSendTo + \"|split|\" + user.getUsername() + \"|split|\" + msg));\n writer.flush();\n chatClientController.appendToPane(new Date(System.currentTimeMillis()) + \": You (\" + user.getUsername() + \"): To: \" + usernameSendTo + \": \" + msg, \"BLUE\", null);\n }\n } catch (Exception ex){\n ex.printStackTrace();\n if (ex.toString().toLowerCase().contains(\"socket output is already shutdown\")){\n disconnectFromServer(false);\n }\n JOptionPane.showMessageDialog(null, \"Error sending message: \" + ex.toString(),Env.ChatClientMessageBoxTitle, JOptionPane.ERROR_MESSAGE);\n }\n }", "public void save() {\n if (message == null || currentView == null) {\n return;\n }\n\n if (isEditable) {\n if (currentView.hasChanged()) {\n currentView.save();\n }\n }\n }", "private void Send(final Message m) {\n String tag_string_req = \"req_chat_send\";\n\n StringRequest strReq = new StringRequest(Request.Method.POST,\n AppConfig.URL_Chat_Send, new Response.Listener<String>() {\n\n @Override\n public void onResponse(String response) {\n Log.d(\"MyTAG\", \"send Response: \" + response.toString());\n\n try {\n JSONObject jObject = new JSONObject(response);\n\n System.out.println(jObject.toString());\n boolean error = jObject.getBoolean(\"error\");\n // Check for error node in json\n if (!error) {\n\n editText.setText(\"\");\n Messages.add(m);\n LA.notifyDataSetChanged();\n myList.setSelection(LA.getCount() - 1);\n\n } else {\n // Error in login. Get the error message\n String errorMsg = jObject.getString(\"error_msg\");\n Toast.makeText(getApplicationContext(),\n errorMsg+\": response\", Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n // JSON error\n e.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Json error: \" + e.getMessage()+\"\", Toast.LENGTH_LONG).show();\n }\n\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // Log.e(TAG, \"Login Error: \" + error.getMessage());\n Toast.makeText(getApplicationContext(),\n error.getMessage()+\"\", Toast.LENGTH_LONG).show();\n error.printStackTrace();\n\n }\n }) {\n\n @Override\n protected Map<String, String> getParams() {\n // Posting parameters to login url\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"chat_id\", m.getChat_id()+\"\");\n params.put(\"sender_id\", m.getSender_id()+\"\");\n params.put(\"content\", m.getContent()+\"\");\n params.put(\"send_time\", m.getTime()+\"\");\n\n return params;\n }\n\n };\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t String username = userSignInput.getText();\n\t\t String password = passSignInput.getText();\n\t\t if (username.contains(\"\\n\")){\n\t\t\tsignMessage.setText(\"Messages: username cannot contain the new line character.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t\treturn;\n\t\t }\n\t\t for (int i = 0; i < username.length(); i++){\n\t\t\tif (username.charAt(i) == 44){\n\t\t\t signMessage.setText(\"Messages: username cannot contain the comma character.\");\n\t\t\t panelSign.add(signMessage);\n\t\t\t return;\n\t\t\t}\n\t\t }\n\t\t if (password.contains(\"\\n\")){\n\t\t\tsignMessage.setText(\"Messages: password cannot contain the new line character.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t\treturn;\n\t\t }\n\t\t for (int i = 0; i < password.length(); i++){\n\t\t\tif (password.charAt(i) == 44){\n\t\t\t signMessage.setText(\"Messages: password cannot contain the comma character.\");\n\t\t\t panelSign.add(signMessage);\n\t\t\t return;\n\t\t\t}\n\t\t }\n\t\t /**if (username.contains(\",\")){\n\t\t signMessage.setText(\"Messages: */\n\t\t CreateAcc create = new CreateAcc(username, password);\n\t\t String results = create.writeFile(\"Example.csv\");\n\n\t\t //Username is acceptable\n\t\t if (results.equals(\"Success\")){\n\t\t\tsignMessage.setText(\"Messages: Success!\");\n\t\t\tpanelSign.add(signMessage);\n\t\t\tdispose();\n\n\t\t\tnew LoginGUI();//temporary\n\t\t\t//new GUI(\"Example.csv\", username);\n\n\t\t\n\n\t\t }\n\n\t\t //No username or password inputted\n\t\t else if (results.equals(\"Empty User\")){\n\t\t\tsignMessage.setText(\"Messages: Input a username.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t }\n\t\t else if (results.equals(\"Empty Pass\")){\n\t\t\tsignMessage.setText(\"Messages: Input a password.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t }\n\n\t\t //Inputted username already in use\n\t\t else if (results.equals(\"User Used\")){\n\t\t\tsignMessage.setText(\"Messages: Sorry, that username is already in use.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t }\n\t\t else{\n\t\t\tsignMessage.setText(\"Messages: Error. Please input a username and password.\");\n\t\t\tpanelSign.add(signMessage);\n\t\t }\n\t\t //cl.show(panelBoth, \"1\");\n\t\t //this.show(panelBoth, \"1\");\n\t\t}", "public void storeMessage(Message message) {\n Entity messageEntity = new Entity(\"Message\", message.getId().toString());\n messageEntity.setProperty(\"user\", message.getUser());\n messageEntity.setProperty(\"text\", message.getText());\n messageEntity.setProperty(\"timestamp\", message.getTimestamp());\n messageEntity.setProperty(\"recipient\", message.getRecipient());\n datastore.put(messageEntity);\n }", "public abstract void newChatMembersMessage(Message m);", "public final void manageMessage(Message message)\n\t{\n\t\tif(message.getText() != null)\n\t\t{\n\t\t\ttextMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getAudio() != null)\n\t\t{\n\t\t\taudioMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getDocument() != null)\n\t\t{\n\t\t\tdocumentMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getPhoto() != null)\n\t\t{\n\t\t\tphotoMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getSticker() != null)\n\t\t{\n\t\t\tstickerMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVideo() != null)\n\t\t{\n\t\t\tvideoMessage(message);\n\t\t\treturn;\n\t\t}\n\n\t\tif(message.getVideoNote() != null)\n\t\t{\n\t\t\tvideoNoteMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVoice() != null)\n\t\t{\n\t\t\tvoiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t\tif(message.getContact() != null)\n\t\t{\n\t\t\tcontactMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getLocation() != null)\n\t\t{\n\t\t\tlocationMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getVenue() != null)\n\t\t{\n\t\t\tvenueMessage(message);\n\t\t\treturn;\n\t\t}\n\n\t\tif (message.getDice() != null)\n\t\t{\n\t\t\tdiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatMember() != null)\n\t\t{\n\t\t\tnewChatMemberMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatMembers() != null)\n\t\t{\n\t\t\tnewChatMembersMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getLeftChatMember() != null)\n\t\t{\n\t\t\tleftChatMemberMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getPinned_message() != null)\n\t\t{\n\t\t\tpinnedMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatTitle() != null)\n\t\t{\n\t\t\tnewChatTitleMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getNewChatPhoto() != null)\n\t\t{\n\t\t\tnewChatPhotoMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.GetDeleteChatPhoto())\n\t\t{\n\t\t\tgroupChatPhotoDeleteMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.GetGroupChatCreated())\n\t\t{\n\t\t\tgroupChatCreatedMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getGame() != null)\n\t\t{\n\t\t\tgameMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getSuccessfulPayment() != null)\n\t\t{\n\t\t\tsuccessfulPaymentMessage(message);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(message.getInvoice() != null)\n\t\t{\n\t\t\tinvoiceMessage(message);\n\t\t\treturn;\n\t\t}\n\t}" ]
[ "0.663403", "0.62859535", "0.594329", "0.5937159", "0.585083", "0.57704955", "0.5727512", "0.56605196", "0.5657246", "0.5657126", "0.56482494", "0.56326705", "0.5577572", "0.54685074", "0.5438971", "0.54175264", "0.5415255", "0.53966624", "0.5361333", "0.53564936", "0.5353443", "0.53476256", "0.5345167", "0.533469", "0.53317976", "0.5327027", "0.53131205", "0.52873814", "0.52816516", "0.5277422", "0.5262842", "0.52519965", "0.52490175", "0.5243146", "0.5235658", "0.52272165", "0.5218567", "0.52104235", "0.5199535", "0.51877415", "0.51648694", "0.51528597", "0.51373625", "0.51367956", "0.51236874", "0.51186264", "0.51156783", "0.5097486", "0.50923675", "0.50832766", "0.5075831", "0.5073152", "0.5065026", "0.50464207", "0.5044453", "0.50093067", "0.5009205", "0.49942338", "0.49866727", "0.49833173", "0.49820146", "0.49744773", "0.4974041", "0.49652204", "0.49640164", "0.4950585", "0.49468997", "0.4940964", "0.4939189", "0.493162", "0.4930032", "0.49282098", "0.49265403", "0.4925269", "0.49176812", "0.4907211", "0.49006206", "0.48941407", "0.48894563", "0.48892227", "0.4887977", "0.48839867", "0.48783207", "0.48760054", "0.4874739", "0.4866559", "0.48661196", "0.48504233", "0.4838706", "0.48362252", "0.48300254", "0.48243877", "0.4823973", "0.48209298", "0.4818987", "0.4818819", "0.4815775", "0.48136646", "0.4812971", "0.48094732" ]
0.6013318
2
Created by allanshih on 2017/12/29.
public interface IVisionManager { public void enable(); public void disable(); public void setRoi(Size frameSize, Rect rect); // public void startDetecting(); // public void stopDetecting(); public void release(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void 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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo38117a() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private void init() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void nghe() {\n\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 einkaufen() {\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\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}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void initialize() { \n }", "Petunia() {\r\n\t\t}", "private Rekenhulp()\n\t{\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "private void kk12() {\n\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n public void init() {\n }" ]
[ "0.6131078", "0.5998173", "0.5875767", "0.5873397", "0.5873397", "0.5805647", "0.57927287", "0.5777209", "0.57497394", "0.5725355", "0.56790584", "0.5678538", "0.5667485", "0.56646097", "0.5664123", "0.56535035", "0.5651299", "0.56442094", "0.5631121", "0.5629683", "0.5623034", "0.5614815", "0.55871665", "0.55849063", "0.558298", "0.5572458", "0.55636126", "0.5563386", "0.5554148", "0.55529606", "0.5547379", "0.5547379", "0.5547379", "0.5547379", "0.5547379", "0.5526144", "0.5526144", "0.5526144", "0.5526144", "0.5526144", "0.5526144", "0.5521374", "0.55193067", "0.55193067", "0.55122375", "0.5484457", "0.54742455", "0.54742455", "0.54742455", "0.5473084", "0.5470227", "0.5470227", "0.5457034", "0.5457034", "0.5457034", "0.5451809", "0.5445607", "0.5437565", "0.5436001", "0.5436001", "0.5431132", "0.5430896", "0.5430896", "0.5430896", "0.54288334", "0.5428181", "0.54224795", "0.5419386", "0.5406376", "0.54046845", "0.53933144", "0.53933144", "0.53933144", "0.53933144", "0.53933144", "0.53933144", "0.53933144", "0.5388146", "0.5385679", "0.537819", "0.53710765", "0.5369453", "0.5367227", "0.5365307", "0.53618455", "0.53611046", "0.5354721", "0.5344948", "0.53360903", "0.5325716", "0.5325073", "0.53243494", "0.5323211", "0.5310345", "0.5308447", "0.5305594", "0.5305594", "0.5305594", "0.5284232", "0.5276044", "0.52709556" ]
0.0
-1
public void startDetecting(); public void stopDetecting();
public void release();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IVisionManager {\n public void enable();\n public void disable();\n public void setRoi(Size frameSize, Rect rect);\n// public void startDetecting();\n// public void stopDetecting();\n public void release();\n}", "public void startDetect(){\n\n EventHandle[] start = ECAAgent.getEventHandles(startDetectEventName);\n ECAAgent.raiseEndEvent(start,this);\n }", "public void startFaceDetection() {\n /*\n r4 = this;\n r0 = r4.mFaceDetectionStarted;\n if (r0 != 0) goto L_0x0036;\n L_0x0004:\n r0 = r4.mCameraDevice;\n if (r0 == 0) goto L_0x0036;\n L_0x0008:\n r0 = r4.needFaceDetection();\n if (r0 != 0) goto L_0x000f;\n L_0x000e:\n goto L_0x0036;\n L_0x000f:\n r0 = r4.mCameraCapabilities;\n r0 = r0.getMaxNumOfFacesSupported();\n if (r0 <= 0) goto L_0x0035;\n L_0x0017:\n r0 = 1;\n r4.mFaceDetectionStarted = r0;\n r1 = TAG;\n r2 = \"startFaceDetection\";\n com.hmdglobal.app.camera.debug.Log.w(r1, r2);\n r1 = r4.mCameraDevice;\n r2 = r4.mHandler;\n r3 = 0;\n r1.setFaceDetectionCallback(r2, r3);\n r1 = r4.mCameraDevice;\n r1.startFaceDetection();\n r1 = com.hmdglobal.app.camera.util.SessionStatsCollector.instance();\n r1.faceScanActive(r0);\n L_0x0035:\n return;\n L_0x0036:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.VideoModule.startFaceDetection():void\");\n }", "@Override\r\n\t\t\tpublic void recognizerStarted() {\n\r\n\t\t\t}", "public boolean isDetecting()\n\t{\n\t\treturn currentlyDetecting;\n\t}", "@Override\n public void stop() {\n myBinder.stopRecognizing();\n }", "public void onDouyinDetectStart() {\n HwAPPStateInfo curAppInfo = getCurStreamAppInfo();\n if (curAppInfo != null && 100501 == curAppInfo.mScenceId) {\n curAppInfo.mIsVideoStart = true;\n }\n }", "@Override\n public void stop() {\n detector.disable();\n }", "@Override\n public void stop() {\n if(detector != null) detector.disable(); //Make sure to run this on stop!\n }", "public void startFaceDetection() {\n /*\n r6 = this;\n r0 = r6.mFaceDetectionStarted;\n if (r0 != 0) goto L_0x004a;\n L_0x0004:\n r0 = r6.mCameraDevice;\n if (r0 == 0) goto L_0x004a;\n L_0x0008:\n r0 = r6.needFaceDetection();\n if (r0 != 0) goto L_0x000f;\n L_0x000e:\n goto L_0x004a;\n L_0x000f:\n r0 = r6.mCameraCapabilities;\n r0 = r0.getMaxNumOfFacesSupported();\n if (r0 <= 0) goto L_0x0049;\n L_0x0017:\n r0 = 1;\n r6.mFaceDetectionStarted = r0;\n r1 = r6.mCameraDevice;\n r2 = r6.mHandler;\n r3 = r6.mUI;\n r1.setFaceDetectionCallback(r2, r3);\n r1 = r6.mUI;\n r2 = r6.mDisplayOrientation;\n r3 = r6.isCameraFrontFacing();\n r4 = r6.mCameraId;\n r4 = r6.cropRegionForZoom(r4);\n r5 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r1.onStartFaceDetection(r2, r3, r4, r5);\n r1 = TAG;\n r2 = \"startFaceDetection\";\n com.hmdglobal.app.camera.debug.Log.w(r1, r2);\n r1 = r6.mCameraDevice;\n r1.startFaceDetection();\n r1 = com.hmdglobal.app.camera.util.SessionStatsCollector.instance();\n r1.faceScanActive(r0);\n L_0x0049:\n return;\n L_0x004a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.PhotoModule.startFaceDetection():void\");\n }", "void startTracking();", "public void detect(View view) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n mBitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n // Start a background task to detect faces in the image.\n new MainActivity.DetectionTask().execute(inputStream);\n\n // Prevent button click during detecting.\n setAllButtonsEnabledStatus(false);\n }", "void onCaptureStart();", "public interface VoiceActivityDetectorListener {\n void onVoiceActivityDetected();\n void onNoVoiceActivityDetected();\n}", "public interface IFaceDetectListner {\n\n void DetectFaceSuccess(double score, String msg);\n\n void DetectFaceFailed(double core, String msg);\n\n}", "public interface Probe {\n void start();\n\n void stop();\n}", "public void startVoiceRecognition() {\n startVoiceRecognition(null);\n }", "public interface FaceTrackingListener {\n void onFaceLeftMove();\n void onFaceRightMove();\n void onFaceUpMove();\n void onFaceDownMove();\n void onGoodSmile();\n void onEyeCloseError();\n void onMouthOpenError();\n void onMultipleFaceError();\n\n}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult detect = mFacePlus.detect(fileSrc);\n//\t\t\t\t\tResult detect = mFacePlus.detectByPicUrl(\"http://a4.att.hudong.com/86/42/300000876508131216423466864_950.jpg\");\n\t\t\t\tif(detect.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + detect.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tDetectReturn data = (DetectReturn) detect.data;\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\tFace face = data.faceList.get(i);\n\t\t\t\t\tfaceid = face.getId();\n\t\t\t\t\tLog.e(TAG,faceid);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void run() {\n cameraDetector.setDetectJoy(true);\n cameraDetector.setDetectAnger(true);\n cameraDetector.setDetectSadness(true);\n cameraDetector.setDetectSurprise(true);\n cameraDetector.setDetectFear(true);\n cameraDetector.setDetectDisgust(true);\n }", "private void startRecognition() {\n mStatusTextView.setVisibility(View.VISIBLE);\n mStatusTextView.setText(R.string.status_scan_credentials);\n mStatusProgressBar.setVisibility(View.GONE);\n mRescanButton.setVisibility(View.GONE);\n\n mScannerView.setAnimated(true);\n hideMatchView();\n\n mTimeClockBar.setVisibility(View.VISIBLE);\n mTimeClockBar.setProgress(0);\n\n // Start a timeout for the recognition\n startRecognitionTimeout();\n\n mAllPasswords.clear();\n mSSIDMatchCounts.clear();\n mProcessor.setActive(true);\n }", "public void startListening();", "private native int releaseFaceDetection();", "void track();", "void onListeningStarted();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "void start();", "public interface YJVORecognizeListener\n{\n\n public abstract void onRecognizeResult(int i, YJVORecognizeResult yjvorecognizeresult);\n\n public abstract void onRecognizeState(YJVO_STATE yjvo_state);\n\n public abstract void onRecordingStart();\n\n public abstract void onVolumeChanged(short word0);\n}", "public void Start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void start();", "public void stopFaceDetection() {\n /*\n r3 = this;\n r0 = r3.mFaceDetectionStarted;\n if (r0 == 0) goto L_0x002e;\n L_0x0004:\n r0 = r3.mCameraDevice;\n if (r0 != 0) goto L_0x0009;\n L_0x0008:\n goto L_0x002e;\n L_0x0009:\n r0 = r3.mCameraCapabilities;\n r0 = r0.getMaxNumOfFacesSupported();\n if (r0 <= 0) goto L_0x002d;\n L_0x0011:\n r0 = 0;\n r3.mFaceDetectionStarted = r0;\n r1 = r3.mCameraDevice;\n r2 = 0;\n r1.setFaceDetectionCallback(r2, r2);\n r1 = TAG;\n r2 = \"stopFaceDetection\";\n com.hmdglobal.app.camera.debug.Log.w(r1, r2);\n r1 = r3.mCameraDevice;\n r1.stopFaceDetection();\n r1 = com.hmdglobal.app.camera.util.SessionStatsCollector.instance();\n r1.faceScanActive(r0);\n L_0x002d:\n return;\n L_0x002e:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.VideoModule.stopFaceDetection():void\");\n }", "void start ();", "private void runTextRecognition() {\n FirebaseVisionImage image = FirebaseVisionImage.fromBitmap(mSelectedImage);\n FirebaseVisionTextRecognizer recognizer = FirebaseVision.getInstance()\n .getOnDeviceTextRecognizer();\n //mTextButton.setEnabled(false);\n recognizer.processImage(image)\n .addOnSuccessListener(\n new OnSuccessListener<FirebaseVisionText>() {\n @Override\n public void onSuccess(FirebaseVisionText texts) {\n //mTextButton.setEnabled(true);\n processTextRecognitionResult(texts);\n }\n })\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n // Task failed with an exception\n //mTextButton.setEnabled(true);\n e.printStackTrace();\n }\n });\n }", "public void stopFaceDetection() {\n /*\n r3 = this;\n r0 = r3.mFaceDetectionStarted;\n if (r0 == 0) goto L_0x0038;\n L_0x0004:\n r0 = r3.mCameraDevice;\n if (r0 != 0) goto L_0x0009;\n L_0x0008:\n goto L_0x0038;\n L_0x0009:\n r0 = r3.mCameraCapabilities;\n r0 = r0.getMaxNumOfFacesSupported();\n if (r0 <= 0) goto L_0x0037;\n L_0x0011:\n r0 = 0;\n r3.mFaceDetectionStarted = r0;\n r1 = r3.mCameraDevice;\n r2 = 0;\n r1.setFaceDetectionCallback(r2, r2);\n r1 = TAG;\n r2 = \"stopFaceDetection\";\n com.hmdglobal.app.camera.debug.Log.w(r1, r2);\n r1 = r3.mCameraDevice;\n r1.stopFaceDetection();\n r1 = r3.mUI;\n r1.pauseFaceDetection();\n r1 = r3.mUI;\n r1.clearFaces();\n r1 = com.hmdglobal.app.camera.util.SessionStatsCollector.instance();\n r1.faceScanActive(r0);\n L_0x0037:\n return;\n L_0x0038:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.hmdglobal.app.camera.PhotoModule.stopFaceDetection():void\");\n }", "@Override\n protected void onStop() {\n \tstopActivityRecognition(); // Stops activity recognition only if in any case it wasn't stopped before\n super.onStop();\n }", "public interface IClassifierService {\n\n List<String> detectImage(byte[] pixels) throws IOException;\n}", "private void recognize() {\n //Setup our Reco transaction options.\n Transaction.Options options = new Transaction.Options();\n options.setDetection(resourceIDToDetectionType(R.id.long_endpoint));\n options.setLanguage(new Language(\"eng-USA\"));\n options.setEarcons(startEarcon, stopEarcon, errorEarcon, null);\n\n //Add properties to appServerData for use with custom service. Leave empty for use with NLU.\n JSONObject appServerData = new JSONObject();\n //Start listening\n recoTransaction = speechSession.recognizeWithService(\"M10253_A3221\", appServerData, options, recoListener);\n }", "public interface IRecognitionPlugin {\n /**\n * Base class for output data received from recognition plug-in.\n */\n public class RecognitionOutput {\n }\n\n /**\n * Base class for input data supplied to recognition plug-in.\n */\n public class RecognitionInput {\n private MediaFormat mediaFormat;\n private Frame frame;\n\n /**\n * Sets media format of the content.\n *\n * @param mediaFormat\n */\n public void setMediaFormat(MediaFormat mediaFormat) {\n this.mediaFormat = mediaFormat;\n }\n\n /**\n * Gets media format of the content.\n *\n * @return Media format.\n */\n public MediaFormat getMediaFormat() {\n return mediaFormat;\n }\n\n /**\n * Sets a frame.\n *\n * @param frame\n */\n public void setFrame(Frame frame) {\n this.frame = frame;\n }\n\n /**\n * Gets a frame.\n *\n * @return Frame.\n */\n public Frame getFrame() {\n return frame;\n }\n }\n\n /**\n * Interface for signaling upon content recognition status.\n */\n public interface RecognitionEvent {\n /**\n * Called to notify that content recognition is done.\n */\n public void onContentRecognized(IRecognitionPlugin plugin, RecognitionOutput output);\n }\n\n /**\n * Starts recognition plug-in.\n */\n public void start();\n\n /**\n * Stops recognition plug-in.\n */\n public void stop();\n\n /**\n * Performs content recognition.\n *\n * @param input Data for content recognition.\n * @return Content recognition output.\n */\n public RecognitionOutput recognize(RecognitionInput input);\n}", "private void startDetectFaceInfo() {\n mProgressDialog.show();\n mFaceExecutor.submit(() -> {\n // first begin the face morphing\n FaceImage faceImage = FaceUtils.getFaceFromPath(\n mSelectPath, mImageSize.x, mImageSize.y);\n // each time detect the image, we should send it to the global value\n mFaceImages.set(mCurrentIndex, faceImage);\n // modify the progressDialog\n runOnUiThread(() -> {\n mProgressDialog.dismiss();\n if (faceImage == null) {\n mImageViews.get(mCurrentIndex).setImageResource(R.drawable.ic_head);\n // snakeBarShow can replace Toast\n snakeBarShow(getString(R.string.no_face_detected));\n }\n });\n });\n }", "@Override\n public void onDetectionStateChanged(int state) {\n\n\n Log.d(\"onDetectionStateChanged\", \"state = \" + state);\n if (state == DETECTED) {\n robot.constraintBeWith();\n Log.d(this.getClass().getName(), \"onDetectionState = DETECTED\");\n\n //remove this listener as we do not want it triggering again and interrupting itself, note that we will have to listen for the end of the above speech so we can re-add this listener\n robot.removeOnDetectionStateChangedListener(this);\n robot.addTtsListener(new InteractionSpeechListener(this, robot, stateMachine));\n } else {\n robot.stopMovement();\n }\n }", "@Override\n public void start() {\n //start eye tracking if it is not running already\n startEyeTracking();\n\n super.start();\n\n //start light sensor\n mLightIntensityManager.startLightMonitoring();\n }", "public interface ActivityRecognitionListener {\n void updateDetectedActivitiesList(ArrayList<DetectedActivity> updatedActivities);\n}", "public void onVideoStarted () {}", "void onEnoughLightAvailable() {\n //start eye tracking if it is not running already\n startEyeTracking();\n }", "public boolean start();", "@Override\n\tpublic void videoStart() {\n\t\t\n\t}", "public void startGearCam() {\n }", "private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);", "public void start() {\n\r\n }", "private void detect(Bitmap bitmap) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n setAllButtonsEnabledStatus(false);\n\n // Start a background task to detect faces in the image.\n new DetectionTask().execute(inputStream);\n }", "public interface FaceFinder {\n\n public CvFace[] detectFace(Bitmap bitmap);\n\n}", "protected abstract void startListener();", "public void run() {\n System.out.println(\"main recognition loop started\");\n while (true) {\n try { \n // ask the recognizer to recognize text in the recording\n if(recognizer.getState()==Recognizer.State.READY) {\n Result result = recognizer.recognize(); \n // got a result\n if (result != null) {\n resultText = result.getBestFinalResultNoFiller();\n if(resultText.length()>0) {\n // System.out.println(\"[\"+result.getStartFrame()+\",\"+result.getEndFrame()+\"]\");\n// System.out.println(result.getTimedBestResult(false, true));\n makeEvent();\n }\n }\n }\n }\n catch (Exception e) { \n System.out.println(\"exception Occured \"); \n e.printStackTrace(); \n System.exit(1);\n }\n }\n }", "public interface StopDetector extends USMEvent {\n\n\t/********\n\t * Called periodically to check if the service is up.\n\t * \n\t * @return true if the service is stopped, false if it is functioning correctly.\n\t * @throws USMException in case of an error while executing the detector. An exception will not cause the service to\n\t * be considered stopped.\n\t */\n\tboolean isServiceStopped()\n\t\t\tthrows USMException;\n\n}", "private void detect(Bitmap bitmap) {\n // Put the image into an input stream for detection.\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, output);\n ByteArrayInputStream inputStream = new ByteArrayInputStream(output.toByteArray());\n\n // Start a background task to detect faces in the image.\n new DetectionTask().execute(inputStream);\n }", "void onStarted();", "private void performOCR(){\n }", "public boolean needFaceDetection() {\n return true;\n }", "@Override\n public void done() {\n recognizer.stopRecognition();\n\n }", "private void handleDetectedActivities(ActivityRecognitionResult result) {\n boolean serviceRunning;\n DetectedActivity detectedActivity = result.getMostProbableActivity();\n int typeOfActivity = detectedActivity.getType();\n\n Log.d(TAG, \"handleDetectedActivities\");\n Intent intent = new Intent(this, WearableService.class);\n // for (DetectedActivity activity : probableActivities) {\n switch (detectedActivity.getType()) {\n case DetectedActivity.WALKING: {\n\n Log.e(TAG, \"Walking: \" + detectedActivity.getConfidence());\n if (detectedActivity.getConfidence() >= 75) {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Service already running\");\n } else {\n startService(intent);\n Log.d(TAG, \"Wear service Started\");\n }\n } else {\n stopService(intent);\n break;\n }\n }\n case DetectedActivity.STILL: {\n Log.d(TAG, \"Still: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.UNKNOWN: {\n Log.e(TAG, \"Unknown: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.IN_VEHICLE: {\n Log.e(TAG, \"In Vehicle: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.ON_BICYCLE: {\n Log.e(TAG, \"On Bike: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.RUNNING: {\n Log.e(TAG, \"Running: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.TILTING: {\n Log.e(TAG, \"Tilting: \" + detectedActivity.getConfidence());\n serviceRunning = isMyServiceRunning(WearableService.class);\n\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n case DetectedActivity.ON_FOOT: {\n Log.e(TAG, \"On Foot: \" + detectedActivity.getConfidence());\n DetectedActivity moreSpecific = getMoreSpecific(result.getProbableActivities());\n if (moreSpecific != null) {\n detectedActivity = moreSpecific;\n }\n if (detectedActivity.getType() == DetectedActivity.WALKING) {\n Log.d(TAG, \"On foot and walking\");\n if (detectedActivity.getConfidence() >= 75) {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.i(TAG, \"Service already running!\");\n } else {\n startService(intent);\n Log.d(TAG, \"Wear service Started.\");\n }\n } else {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.d(TAG, \"Stopping service.\");\n stopService(intent);\n }\n break;\n }\n } else if (detectedActivity.getType() == DetectedActivity.RUNNING) {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.i(TAG, \"Stopping service.\");\n } else {\n serviceRunning = isMyServiceRunning(WearableService.class);\n if (serviceRunning) {\n Log.i(TAG, \"Stopping service.\");\n }\n }\n }\n }\n default: {\n break;\n }\n }\n }", "private void startEyeTracking() {\n if (!mFaceAnalyser.isTrackingRunning()) {\n mFaceAnalyser.startFaceTracker();\n mUserAwarenessListener.onEyeTrackingStarted(); //notify caller\n }\n }", "public List<Result> recognize(IplImage image);", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult recognize = mFacePlus.recognize(groupid_long, fileSrc);\n\t\t\t\tLog.e(TAG,fileSrc);\n//\t\t\t\t\tRecognizeReturn result = (RecognizeReturn) recognize.data;\n\t\t\t\tif(recognize.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + recognize.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tRecognizeReturn data = (RecognizeReturn) recognize.data;\n\t\t\t\t//一张图片里有几张脸\n\t\t\t\tint size = data.faceList.size();\n\t\t\t\tif(size==0){\n\t\t\t\t\tLog.e(TAG,\"图片没能识别出脸\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,\"识别出\"+size+\"张脸\");\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\t//第i张脸在group中的置信度 ,第0个置信度最高\n\t\t\t\t\tList<Person> personList = data.faceList.get(i).getCandidatePersonList();\n\t\t\t\t\tPerson person = personList.get(0);\n\t\t\t\t\tLog.e(TAG,\"该图片第\"+i+\"张脸最有可能是\"+person.getName());\n\t\t\t\t}\n\t\t\t\tLog.e(TAG,data.toString());\n\t\t\t}", "public boolean needFaceDetection() {\n return false;\n }", "void robotStop();", "Track(){\n\t}", "public void startTracking()\n {\n if(!pixyThread.isAlive())\n {\n pixyThread = new Thread(this);\n pixyThread.start();\n leds.setMode(LEDController.Mode.ON);\n }\n }", "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "public void startListening()\n {\n if (!listening) {\n sensorManager.requestTriggerSensor(listener, motion);\n listening = true;\n }\n }", "public void startFrontCam() {\n }", "@Override\n public void onVideoStarted() {\n }", "public void detect(AudioBuffer ab)\n\t{\n\t\tdetect(ab.toArray());\n\t}", "public interface AidTouchListener {\n public void start();\n}", "public void start() {}", "public void start() {}", "public EventHandle createStartDetect(){\n\n startDetectEventName = name+\"_startDetectEventName\";\n\n startDetectEvent = ECAAgent.getDefaultECAAgent().createPrimitiveEvent(\n startDetectEventName, // Event name\n \"MAKEFITS.Track\", // class Name\n EventModifier.END, // Event Modifier\n \"void startDetect()\", // Method signature\n this); // Instance (track1, track2,...,or trackN)\n return (PrimitiveEventHandle) startDetectEvent;\n }", "private native int applyFaceDetection2(byte[] data,int len,int width,int height);" ]
[ "0.71266544", "0.6823953", "0.656696", "0.6558426", "0.63686126", "0.63465905", "0.62887394", "0.62855375", "0.6253167", "0.6221117", "0.6187567", "0.6177274", "0.61269724", "0.6107449", "0.6087969", "0.60747653", "0.6052368", "0.6043242", "0.6035137", "0.60043883", "0.59896106", "0.5985957", "0.5973977", "0.5937142", "0.59196484", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5910743", "0.5904677", "0.5890664", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58533484", "0.58517927", "0.58400655", "0.58287615", "0.58240575", "0.5820708", "0.58134544", "0.5768427", "0.5766743", "0.57605004", "0.57478845", "0.57418495", "0.57359886", "0.57294744", "0.571806", "0.5702159", "0.56938624", "0.5688999", "0.56849647", "0.5676468", "0.5665695", "0.5653146", "0.5624531", "0.562341", "0.5603361", "0.56018513", "0.5599829", "0.5588005", "0.5584367", "0.55830103", "0.5573103", "0.5570007", "0.5566496", "0.55619025", "0.55574214", "0.55548376", "0.55394816", "0.55218726", "0.55144846", "0.55081356", "0.5497772", "0.5489818", "0.5478646", "0.5475026", "0.54742056", "0.54742056", "0.5472395", "0.54559606" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws FileNotFoundException { String modelFilePath = "java//opennlpmodels//en-sent.bin"; InputStream modelIn = new FileInputStream(modelFilePath); try { SentenceModel model = new SentenceModel(modelIn); SentenceDetectorME sentenceDetector = new SentenceDetectorME(model); String sentences[] = sentenceDetector.sentDetect(" First sentence. Second B.S. U.S. sentence. "); for (String sent : sentences ) { System.out.println(sent); } } catch (IOException e) { e.printStackTrace(); } finally { if (modelIn != null) { try { modelIn.close(); } catch (IOException e) { } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Constructor of the object.
public createMessageServlet() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Curso() {\r\n }", "private Instantiation(){}", "public CyanSus() {\n\n }", "public RngObject() {\n\t\t\n\t}", "public PSRelation()\n {\n }", "public Orbiter() {\n }", "private SingleObject()\r\n {\r\n }", "public Chauffeur() {\r\n\t}", "public Libro() {\r\n }", "public CSSTidier() {\n\t}", "public Cohete() {\n\n\t}", "public Chick() {\n\t}", "public Tbdtokhaihq3() {\n super();\n }", "public Coche() {\n super();\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public Odontologo() {\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public Aanbieder() {\r\n\t\t}", "public _355() {\n\n }", "public ObjectFactory() {\n\t}", "public ObjectFactory() {\n super(grammarInfo);\n }", "protected abstract void construct();", "public Carrinho() {\n\t\tsuper();\n\t}", "public Lanceur() {\n\t}", "public Phl() {\n }", "public CMN() {\n\t}", "public ObjectFactory() {\r\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Pitonyak_09_02() {\r\n }", "private TMCourse() {\n\t}", "public Magazzino() {\r\n }", "public Pasien() {\r\n }", "public Achterbahn() {\n }", "public Mitarbeit() {\r\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\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 Trening() {\n }", "private Composite() {\n }", "public Anschrift() {\r\n }", "public Connection() {\n\t\t\n\t}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "defaultConstructor(){}", "public Corso() {\n\n }", "public Data() {\n }", "public Data() {\n }", "public Book() {\n\t\t// Default constructor\n\t}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "public Soil()\n\t{\n\n\t}", "public Parser()\n {\n //nothing to do\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Demo() {\n\t\t\n\t}", "public Carrera(){\n }", "public Job() {\n\t\t\t\n\t\t}", "@Override\n public void construct() throws IOException {\n \n }", "public Job() {\r\n\t\tSystem.out.println(\"Constructor\");\r\n\t}", "public TTau() {}", "public mapper3c() { super(); }", "public void init() {\n \n }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }", "public ObjectFactory() {\r\n }" ]
[ "0.8545245", "0.8318255", "0.7235094", "0.72344553", "0.72106063", "0.7163062", "0.7130313", "0.7119919", "0.7096355", "0.708748", "0.7087077", "0.7070355", "0.70538706", "0.7045346", "0.7041125", "0.7032445", "0.69954264", "0.6971841", "0.6971115", "0.69478035", "0.69435304", "0.6935312", "0.69313794", "0.69301325", "0.69168675", "0.6913973", "0.6908752", "0.69066423", "0.6897518", "0.6896279", "0.6893796", "0.68866163", "0.6880355", "0.687992", "0.685973", "0.6854846", "0.6853069", "0.68464327", "0.6841715", "0.68378955", "0.6836606", "0.6829739", "0.6809944", "0.6808576", "0.6803354", "0.6799262", "0.67906785", "0.6788684", "0.6788684", "0.67883396", "0.6785325", "0.6782543", "0.67767715", "0.6774546", "0.6771469", "0.6770689", "0.6769204", "0.676152", "0.67552155", "0.6753098", "0.67485833", "0.67458445", "0.67413044", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326", "0.67397326" ]
0.0
-1
Destruction of the servlet.
public void destroy() { super.destroy(); // Just puts "destroy" string in log // Put your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n\t\tsuper.destroy(); \n\t\tSystem.out.println(\"=====destory servlet=========\");\n\t}", "public final void destroy()\n {\n log.info(\"PerformanceData Servlet: Done shutting down!\");\n }", "@Override\r\n\tpublic void destroy() {\n\t\tSystem.out.println(\"second servlet destory\");\r\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy();\n\t\tSystem.out.println(\"Destory LoginServlet\");\n\t}", "@Override\n\tpublic void destroy() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.destroy();\n\t\tSystem.out.println(\"Servlet Destroy Call\");\n\t}", "public void stop() {\n\t\t// To be garbage collected if adapter remains active\n\t\tservletOut = null;\n\t}", "@Override\n\tpublic void destroy() {\n\t\tlogService=null;\n\t\tnoInterceptUrlRegxList=null;\n\n\t}", "@Override\n\tfinal public void destroy() {\n\t\tjspDestroy();\n\t}", "public void destroy() {\n\t\ttermMap = null;\n\t\tdoc = null;\n\t}", "public static void destroy() {\n\t}", "public void destroy() {\n \t\n }", "public void onDestroy() {\n requestTracker.clearRequests();\n }", "@Override\n public void close() {\n for (Servlet registeredServlet : registeredServlets) {\n paxWeb.unregisterServlet(registeredServlet);\n }\n for (Filter filter : registeredFilters) {\n paxWeb.unregisterFilter(filter);\n }\n for (EventListener eventListener : registeredEventListeners) {\n paxWeb.unregisterEventListener(eventListener);\n }\n for (String alias : registeredResources) {\n paxWeb.unregister(alias);\n }\n }", "public void destroy() {\r\n\r\n\t}", "public void destroy() {\n\t\texcludeItem = null;\r\n\t\tloginPage=null;\r\n\t\tloaginAction=null;\r\n\t\tauthority = null;\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\n\t\t\r\n\t}", "public void destroy() {\r\n }", "public void unregisterAll()\n {\n final Set<javax.servlet.Servlet> servlets = new HashSet<>(this.localServlets);\n for (final javax.servlet.Servlet servlet : servlets)\n {\n unregisterServlet(servlet);\n }\n }", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public void destroy() {\n\t\t\n\t}", "public static void destroy() {\n handler = null;\n initialized = false;\n }", "public void destroy() {}", "public void destroy() {}", "public void destroy()\r\n\t{\r\n\t}", "public void destroy()\r\n\t{\n\t\t\r\n\t}", "public void destroy()\r\n {\r\n }", "@Override\n public void destroy() {\n // destroy any persistent resources\n // such as thread pools or persistent connections\n }", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n\n\t}", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\n }", "public void destroy() {\r\n\t\tsuper.destroy();\r\n\t\tBirtEngine.destroyBirtEngine();\r\n\t}", "public void destroy()\n\t{\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//取消某个网络请求\n\t\tNMApplication.getRequestQueue().cancelAll(VOLLEY_POST);\n\t}", "public final void destroy() {\n requestExit();\n }", "public void destroy()\n\t{\n\t\tM_log.info(\"destroy()\");\n\t}", "public void destroy() {\n this.bfc.cleanUp();\n }", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void destroy();", "public void contextDestroyed(ServletContextEvent servletcontextevent) \n\t {\n\t\t \n\t }", "public final void destroy()\n {\n processDestroy();\n super.destroy();\n }", "public void destroy() {\r\n final String METHOD_NAME = \"destroy\";\r\n LOGGER.info(\"Entering \" + METHOD_NAME);\r\n\r\n this.filterConfig = null;\r\n\r\n LOGGER.info(\"Exiting \" + METHOD_NAME);\r\n }", "public void stop () {\n if (server != null)\n server.shutDown ();\n server = null;\n }", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy() {\n\r\n\t}", "public void destroy()\r\n {\n }", "public static void destruct() {\n\t\tinstance = null;\n\t}", "public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}", "void destruct()\n\t{\n\t\tlistenerList = null;\n\t}", "public void destroy() {\n }", "@PreDestroy\n\tpublic void destroy() {\n\t\tthis.executorService.shutdown();\n\t}", "public void testDestroyAccuracy() throws Exception {\r\n // Initial the vairables.\r\n servlet.init(config);\r\n assertEquals(\"init fails.\", \"UserId\",\r\n TestHelper.getVariable(AjaxSupportServlet.class, \"userIdAttributeName\", servlet));\r\n\r\n Map handlers = (Map) TestHelper.getVariable(AjaxSupportServlet.class, \"handlers\", servlet);\r\n assertEquals(\"destroy fails\", 5, handlers.size());\r\n\r\n // destroy the variables.\r\n servlet.destroy();\r\n\r\n assertNull(\"destroy fails.\",\r\n TestHelper.getVariable(AjaxSupportServlet.class, \"userIdAttributeName\", servlet));\r\n\r\n Map handlers1 = (Map) TestHelper.getVariable(AjaxSupportServlet.class, \"handlers\", servlet);\r\n assertTrue(\"init fails.\", handlers1.isEmpty());\r\n }", "public void destroy() {\n\t\tsuper.destroy(); \n\t\t// Put your code here\n\t}", "void destroy() {\n INSTANCE = null;\n }", "public void destroyOsgi();", "@PreDestroy\n public void destroy() {\n TempObjectCache tempObjectCache = TempObjectCache.getInstance();\n tempObjectCache.cleanUp();\n\n // release all persist caches & persist cache redis client\n PersistObjectCache persistObjectCache = PersistObjectCache.getInstance();\n persistObjectCache.cleanUp();\n\n // destroy redis client pool\n RedisTool.destroy();\n\n // Shutdown UniRest\n try {\n Unirest.shutdown();\n } catch (IOException ignore) {\n }\n }", "public void destroy() {\r\n // applet is going away...\r\n }" ]
[ "0.83578825", "0.8069377", "0.790252", "0.7501479", "0.7444537", "0.69988054", "0.69518197", "0.67852455", "0.6647013", "0.6630151", "0.6534698", "0.6459728", "0.64192235", "0.638708", "0.637066", "0.63560957", "0.63560957", "0.63560957", "0.63560957", "0.63456196", "0.63364375", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.63356256", "0.6332333", "0.6332333", "0.6332333", "0.6332333", "0.6332333", "0.6332333", "0.6325438", "0.63235605", "0.63235605", "0.6320775", "0.6315137", "0.62900835", "0.62880194", "0.62814194", "0.62814194", "0.62814194", "0.62814194", "0.62814194", "0.62814194", "0.6278834", "0.6278834", "0.6278834", "0.6278834", "0.6278834", "0.6278834", "0.6278834", "0.6278834", "0.6278834", "0.6278834", "0.6278834", "0.62749827", "0.62446964", "0.62413985", "0.6234386", "0.62309533", "0.6227696", "0.62257063", "0.62257063", "0.62257063", "0.62257063", "0.62257063", "0.62257063", "0.62257063", "0.62257063", "0.6222954", "0.6221878", "0.62156385", "0.6205771", "0.6200733", "0.6200733", "0.6200733", "0.6200733", "0.6200733", "0.61976427", "0.6192917", "0.6188906", "0.61550605", "0.61510843", "0.61405814", "0.6137574", "0.6122491", "0.61052936", "0.60951537", "0.60935515", "0.6089269" ]
0.0
-1