rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
Point p = findPointForIndex(currentScrollLocation); | p = findPointForIndex(currentScrollLocation); | public void layoutContainer(Container pane) { super.layoutContainer(pane); int tabCount = tabPane.getTabCount(); if (tabCount == 0) return; int tabPlacement = tabPane.getTabPlacement(); incrButton.hide(); decrButton.hide(); if (tabPlacement == SwingConstants.TOP || tab... |
viewport.setViewPosition(findPointForIndex(currentScrollLocation)); | viewport.setViewPosition(p); viewport.repaint(); | public void layoutContainer(Container pane) { super.layoutContainer(pane); int tabCount = tabPane.getTabCount(); if (tabCount == 0) return; int tabPlacement = tabPane.getTabPlacement(); incrButton.hide(); decrButton.hide(); if (tabPlacement == SwingConstants.TOP || tab... |
viewport.setLayout(null); | public LayoutManager createLayoutManager() { if (tabPane.getTabLayoutPolicy() == JTabbedPane.WRAP_TAB_LAYOUT) return new TabbedPaneLayout(); else { incrButton = createIncreaseButton(); decrButton = createDecreaseButton(); viewport = new ScrollingViewport(); panel = new ScrollingPanel(); viewport.setV... | |
if (tabPlacement == SwingConstants.BOTTOM) { | protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].x; int endgap = rects[selectedI... | |
if (tabPlacement == SwingConstants.LEFT) { | protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].y; int... | |
if (tabPlacement == SwingConstants.RIGHT) { | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); int startgap = rects[selectedIndex].y; int endgap = rects[selectedInde... | |
if (tabPlacement == SwingConstants.TOP) { | protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) { Color saved = g.getColor(); g.setColor(lightHighlight); int startgap = rects[selectedIndex].x; int en... | |
if (first == tabCount) | if (isScroll) first = currentScrollLocation; else if (first == tabCount) | protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab... |
if (j != selectedIndex) | if (j != selectedIndex || isScroll) | protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab... |
currRun = getNextTabRun(currRun); | currRun = getPreviousTabRun(currRun); | protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab... |
if (! isScroll) | protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex) { Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); // Please note: the ordering of the painting is important. // we WANT to paint the outermost run first and then work our way in. int tabCount = tabPane.getTab... | |
bg = tabPane.getBackground(); | bg = Color.GRAY; | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) { Color saved = g.getColor(); if (isSelected) g.setColor(Color.LIGHT_GRAY); else { Color bg = tabPane.... |
public AbstractUndoableEdit() { } | public AbstractUndoableEdit() { alive = hasBeenDone = true; } | public AbstractUndoableEdit() { } // AbstractUndoableEdit() |
public CannotRedoException() { super(); } | public CannotRedoException() { } | public CannotRedoException() { super(); } // CannotRedoException() |
public CannotUndoException() { super(); } | public CannotUndoException() { } | public CannotUndoException() { super(); } // CannotUndoException() |
public ClassCircularityError() { super(); } | public ClassCircularityError() { } | public ClassCircularityError() { super(); } |
revalidate(); repaint(); } | } | public void updateUI() { setUI((ToolBarUI) UIManager.getUI(this)); revalidate(); repaint(); } // updateUI() |
protected void checkClosed() | protected final void checkClosed() | protected void checkClosed() throws IOException { if (closed) throw new IOException("stream closed"); } |
public abstract void write(byte[] data, int offset, int len) throws IOException; | public void write(byte[] data) throws IOException, NotImplementedException { write(data, 0, data.length); } | public abstract void write(byte[] data, int offset, int len) throws IOException; |
throws IOException | throws IOException, NotImplementedException | protected final void flushBits() throws IOException { // FIXME: Implement me. throw new Error("not implemented"); } |
throw new BAD_OPERATION("Binding iterator expected"); | BAD_OPERATION bad = new BAD_OPERATION("Binding iterator expected"); bad.initCause(ex); throw bad; | public static BindingIterator extract(Any a) { try { return ((BindingIteratorHolder) a.extract_Streamable()).value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Binding iterator expected"); } } |
public _BindingIteratorStub(Delegate delegate) | public _BindingIteratorStub() | public _BindingIteratorStub(Delegate delegate) { super(); _set_delegate(delegate); } |
_set_delegate(delegate); | public _BindingIteratorStub(Delegate delegate) { super(); _set_delegate(delegate); } | |
public JNodeGenericPeer(AbstractJNodeToolkit toolkit, Object awtObject) { | public JNodeGenericPeer(JNodeToolkit toolkit, Object awtObject) { | public JNodeGenericPeer(AbstractJNodeToolkit toolkit, Object awtObject) { this.toolkit = toolkit; this.awtObject = awtObject; toolkit.incRefCount(); } |
public final AbstractJNodeToolkit getToolkitImpl() { | public final JNodeToolkit getToolkitImpl() { | public final AbstractJNodeToolkit getToolkitImpl() { return toolkit; } |
String msg = PluginResourceBundle.getLocalizedMessage(TEST_KEY); | String msg = PluginUtils.getLocalizedMessage(getClass(), RELATIVE_BUNDLE_NAME, TEST_KEY); | protected void doGetLocalizedMessage(Locale locale, String suffix) { changeLocale(locale); String msg = PluginResourceBundle.getLocalizedMessage(TEST_KEY); assertEquals(TEST_VALUE+suffix, msg); } |
DataOutputStream dout = new DataOutputStream(out); | abstractDataOutputStream dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); | public void write(java.io.OutputStream out) { try { DataOutputStream dout = new DataOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write(dout); dout.write(flags); dout.write(message_type); dout.writeInt(m... |
version.write(dout); | version.write((OutputStream) dout); | public void write(java.io.OutputStream out) { try { DataOutputStream dout = new DataOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write(dout); dout.write(flags); dout.write(message_type); dout.writeInt(m... |
throw new MARSHAL(ex.toString()); | MARSHAL t = new MARSHAL(); t.initCause(ex); throw t; | public void write(java.io.OutputStream out) { try { DataOutputStream dout = new DataOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number. version.write(dout); dout.write(flags); dout.write(message_type); dout.writeInt(m... |
flags.put(name, new Boolean(value)); | flags.put(name, Boolean.valueOf(value)); | public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { try { // force "early" detection of errors where possible // (flags can't necessarily be set before parsing) new JaxpParser().getXMLReader().setFe... |
public void setAccessible(boolean flag) | public static void setAccessible(AccessibleObject[] array, boolean flag) | public void setAccessible(boolean flag) { checkPermission(); secureSetAccessible(flag); } |
super(q, p, g); this.x = x; | this(Registry.RAW_ENCODING_ID, q, p, g, x); | public GnuDHPrivateKey(BigInteger q, BigInteger p, BigInteger g, BigInteger x) { super(q, p, g); this.x = x; } |
public byte[] getEncoded() | public byte[] getEncoded(int format) | public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); } |
return getEncoded(IKeyPairCodec.RAW_FORMAT); | byte[] result; switch (format) { case IKeyPairCodec.RAW_FORMAT: result = new DHKeyPairRawCodec().encodePrivateKey(this); break; case IKeyPairCodec.PKCS8_FORMAT: result = new DHKeyPairPKCS8Codec().encodePrivateKey(this); break; default: throw new IllegalArgumentException("Unsupported encoding format: " + format); } retu... | public byte[] getEncoded() { return getEncoded(IKeyPairCodec.RAW_FORMAT); } |
IKeyPairCodec codec = new DHKeyPairRawCodec(); return (GnuDHPrivateKey) codec.decodePrivateKey(k); | return (GnuDHPrivateKey) new DHKeyPairRawCodec().decodePrivateKey(k); | public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... |
else | catch (IllegalArgumentException ignored) | public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... |
throw new IllegalArgumentException("magic"); | public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | |
return (GnuDHPrivateKey) new DHKeyPairPKCS8Codec().decodePrivateKey(k); | public static GnuDHPrivateKey valueOf(byte[] k) { // check magic... // we should parse here enough bytes to know which codec to use, and // direct the byte array to the appropriate codec. since we only have one // codec, we could have immediately tried it; nevertheless since testing // one byte is ch... | |
protected GnuDHKey(BigInteger q, BigInteger p, BigInteger g) | protected GnuDHKey(int defaultFormat, BigInteger q, BigInteger p, BigInteger g) | protected GnuDHKey(BigInteger q, BigInteger p, BigInteger g) { super(); this.q = q; this.p = p; this.g = g; } |
this.defaultFormat = defaultFormat <= 0 ? Registry.RAW_ENCODING_ID : defaultFormat; | protected GnuDHKey(BigInteger q, BigInteger p, BigInteger g) { super(); this.q = q; this.p = p; this.g = g; } | |
this.name = "BootThread"; | protected VmThread(VmIsolatedStatics isolatedStatics, int slotSize) { this.threadState = RUNNING; this.stackSize = DEFAULT_STACK_SLOTS * slotSize; this.id = (1 << ObjectFlags.THREAD_ID_SHIFT); this.name = "BootThread"; MonitorManager.testThreadId(this.id); this.isolatedStat... | |
proc.disableReschedule(true, null); | proc.disableReschedule(true); | private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true, null); this.threadState = STOPPED; ... |
proc.suspend(true, null); | proc.suspend(true); | private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true, null); this.threadState = STOPPED; ... |
proc.enableReschedule(true, null); | proc.enableReschedule(true); | private final void doStop() { final VmProcessor proc = VmMagic.currentProcessor(); final VmThread current = proc.getCurrentThread(); proc.getScheduler().unregisterThread(this); // Go into low level stuff proc.disableReschedule(true, null); this.threadState = STOPPED; ... |
proc.disableReschedule(false, null); | proc.disableReschedule(false); | public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;... |
proc.enableReschedule(false, null); | proc.enableReschedule(false); | public static Object[] getStackTrace(VmThread current) { if (current.inException) { Unsafe.debug("Exception in getStackTrace"); VmProcessor.current().getArchitecture().getStackReader() .debugStackTrace(); Unsafe.die("getStackTrace"); return null;... |
proc.disableReschedule(true, null); final VmThreadProxy p = this.proxy; if (p != null) { p.unproxy(); } | proc.disableReschedule(true); | public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i... |
switch (this.threadState) { | switch (threadState) { | public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i... |
this.threadState = RUNNING; proc.getScheduler().addToReadyQueue(this, false); break; | case WAITING_ENTER: | public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i... |
case WAITING_NOTIFY_TIMEOUT: this.threadState = RUNNING; this.waitForMonitor.addToEnterQueue(this); | case WAITING_NOTIFY_TIMEOUT: { wakeUpByScheduler(); proc.getScheduler().addToReadyQueue(this, false, "thread.interrupt"); } | public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i... |
proc.enableReschedule(true, null); | proc.enableReschedule(true); | public final void interrupt() { // Set interrupted state this.interrupted = true; // Add to scheduler queue final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); // Unqueue proxy (if any) final VmThreadProxy p = this.proxy; i... |
proc.getScheduler().addToReadyQueue(this, false); | proc.getScheduler().addToReadyQueue(this, false, "thread.resume"); | public final void resume() { checkAccess(); if (threadState != SUSPENDED) { throw new IllegalThreadStateException("Not suspended"); } else { final VmProcessor proc = VmProcessor.current(); threadState = RUNNING; // FIXME make multi cpu safe ... |
final VmThreadProxy p = new VmThreadProxy(this, VmSystem .currentKernelMillis() + millis); sleepImpl(p); | final long wakeupTime = VmSystem.currentKernelMillis() + millis; final VmProcessor proc = VmProcessor.current(); proc.disableReschedule(true); this.wakeupTime = wakeupTime; this.threadState = ASLEEP; proc.getScheduler().addToSleepQueue(this); proc.suspend(true); | public final void sleep(long millis, int nanos) throws InterruptedException { if (currentThread() != this) { return; } if (threadState != RUNNING) { return; } // Test interrupted status if (this.interrupted) { this.interrupted = false; ... |
scheduler.addToReadyQueue(this, false); | scheduler.addToReadyQueue(this, false, "thread.start"); | public final void start() { switch (threadState) { case CREATED: { // Screen.debug("thread.start"); final VmScheduler scheduler = VmMagic.currentProcessor() .getScheduler(); stack = VmSystem.allocStack(stackSize); Unsafe.initThread(this, s... |
proc.getScheduler().addToReadyQueue(this, false); | proc.getScheduler().addToReadyQueue(this, false, "thread.unsecureResume"); | final void unsecureResume() { final VmProcessor proc = VmMagic.currentProcessor(); if (threadState == SUSPENDED) { threadState = RUNNING; // FIXME make multi cpu safe proc.getScheduler().addToReadyQueue(this, false); } } |
proc.disableReschedule(true, null); | proc.disableReschedule(true); | final void unsecureSuspend() { if (threadState != RUNNING) { throw new IllegalThreadStateException("Not running"); } else { final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); this.threadState = SUSPENDED; proc... |
proc.suspend(true, null); | proc.suspend(true); | final void unsecureSuspend() { if (threadState != RUNNING) { throw new IllegalThreadStateException("Not running"); } else { final VmProcessor proc = VmMagic.currentProcessor(); proc.disableReschedule(true, null); this.threadState = SUSPENDED; proc... |
if (!queueEntry.isInUse()) { throw new Error("Yielding thread must have an inuse queueEntry"); } if (sleepQueueEntry.isInUse()) { throw new Error( "Yielding thread cannot have an inuse sleepQueueEntry"); } | final void verifyState() throws UninterruptiblePragma { switch (threadState) { case CREATED: break; case ASLEEP: break; case DESTROYED: break; case RUNNING: break; case STOPPED: break; case SUSPENDED: ... | |
VmProcessor.current().yield(); | VmProcessor.current().yield(false); | public static void yield() { VmProcessor.current().yield(); } |
allThreadsQueue.add(thread); | allThreadsQueue.add(thread, "Vm"); | final void registerThread(VmThread thread) { if (Vm.isWritingImage()) { allThreadsQueue.add(thread); } else { allThreadsLock.lock(); try { allThreadsQueue.add(thread); } finally { allThreadsLock.unlock(); } } ... |
invalidate(); | public void updateUI() { setUI((OptionPaneUI) UIManager.getUI(this)); invalidate(); } | |
public JInternalFrame(String title) | public JInternalFrame() | public JInternalFrame(String title) { this(title, false, false, false, false); } |
this(title, false, false, false, false); | this(null, false, false, false, false); | public JInternalFrame(String title) { this(title, false, false, false, false); } |
doLayout(); | setSize(getPreferredSize()); | public void pack() { try { if (isIcon()) setIcon(false); else if (isMaximum()) setMaximum(false); } catch (PropertyVetoException e) { // Do nothing if they don't want to be restored first. } doLayout(); } |
throws NotImplementedException | public VariableHeightLayoutCache() { // TODO } | |
throws NotImplementedException | public Rectangle getBounds(TreePath value0, Rectangle value1) { return null; // TODO } | |
throws NotImplementedException | public boolean getExpandedState(TreePath value0) { return false; // TODO } | |
throws NotImplementedException | public TreePath getPathClosestTo(int value0, int value1) { return null; // TODO } | |
throws NotImplementedException | public TreePath getPathForRow(int value0) { return null; // TODO } | |
throws NotImplementedException | public int getPreferredHeight() { return 0; // TODO } | |
throws NotImplementedException | public int getPreferredWidth(Rectangle value0) { return 0; // TODO } | |
throws NotImplementedException | public int getRowCount() { return 0; // TODO } | |
throws NotImplementedException | public int getRowForPath(TreePath value0) { return 0; // TODO } | |
throws NotImplementedException | public int getVisibleChildCount(TreePath value0) { return 0; // TODO } | |
throws NotImplementedException | public Enumeration getVisiblePathsFrom(TreePath value0) { return null; // TODO } | |
throws NotImplementedException | public void invalidatePathBounds(TreePath value0) { // TODO } | |
throws NotImplementedException | public void invalidateSizes() { // TODO } | |
throws NotImplementedException | public boolean isExpanded(TreePath value0) { return false; // TODO } | |
throws NotImplementedException | public void setExpandedState(TreePath value0, boolean value1) { // TODO } | |
throws NotImplementedException | public void setModel(TreeModel value0) { // TODO } | |
throws NotImplementedException | public void setNodeDimensions(NodeDimensions value0) { // TODO } | |
throws NotImplementedException | public void setRootVisible(boolean value0) { // TODO } | |
throws NotImplementedException | public void treeNodesChanged(TreeModelEvent value0) { // TODO } | |
throws NotImplementedException | public void treeNodesInserted(TreeModelEvent value0) { // TODO } | |
throws NotImplementedException | public void treeNodesRemoved(TreeModelEvent value0) { // TODO } | |
throws NotImplementedException | public void treeStructureChanged(TreeModelEvent value0) { // TODO } | |
return new EtchedBorder(); | Border b = UIManager.getBorder("ToolBar.nonrolloverBorder"); if (b == null) { b = new CompoundBorder( new ButtonBorder(UIManager.getColor("Button.shadow"), UIManager.getColor("Button.darkShadow"), UIManager.getColor("Button.light"), UIManager.getColor("Button.highlight")), BasicBorders.getMarginBorder()); | protected Border createNonRolloverBorder() { return new EtchedBorder(); } |
return b; } | protected Border createNonRolloverBorder() { return new EtchedBorder(); } | |
byte[] name = entry.getName().getBytes(); | byte[] name; try { name = entry.getName().getBytes("UTF-8"); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } | public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); wri... |
String strComment = entry.getComment(); byte[] comment = strComment != null ? strComment.getBytes() : new byte[0]; | String str = entry.getComment(); byte[] comment; try { comment = str != null ? str.getBytes("UTF-8") : new byte[0]; } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } | public void finish() throws IOException { if (entries == null) return; if (curEntry != null) closeEntry(); int numEntries = 0; int sizeEntries = 0; Enumeration e = entries.elements(); while (e.hasMoreElements()) { ZipEntry entry = (ZipEntry) e.nextElement(); int method = entry.getMethod(); wri... |
byte[] name = entry.getName().getBytes(); | byte[] name; try { name = entry.getName().getBytes("UTF-8"); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } | public void putNextEntry(ZipEntry entry) throws IOException { if (entries == null) throw new ZipException("ZipOutputStream was finished"); int method = entry.getMethod(); int flags = 0; if (method == -1) method = defaultMethod; if (method == STORED) { if (entry.getCompressedSize() >= 0) { if (en... |
commentBytes = comment.getBytes(); | try { commentBytes = comment.getBytes("UTF-8"); } catch (UnsupportedEncodingException uee) { throw new AssertionError(uee); } | public void setComment(String comment) { byte[] commentBytes; commentBytes = comment.getBytes(); if (commentBytes.length > 0xffff) throw new IllegalArgumentException("Comment too long."); zipComment = commentBytes; } |
parseExtra (); | public long getTime() { if ((known & KNOWN_TIME) == 0) return -1; // The extra bytes might contain the time (posix/unix extension) parseExtra (); int sec = 2 * (dostime & 0x1f); int min = (dostime >> 5) & 0x3f; int hrs = (dostime >> 11) & 0x1f; int day = (dostime >> 16) & 0x1f; int mon = ((dostime >> 2... | |
return cal.getTime().getTime(); | return cal.getTimeInMillis(); | public long getTime() { if ((known & KNOWN_TIME) == 0) return -1; // The extra bytes might contain the time (posix/unix extension) parseExtra (); int sec = 2 * (dostime & 0x1f); int min = (dostime >> 5) & 0x3f; int hrs = (dostime >> 11) & 0x1f; int day = (dostime >> 16) & 0x1f; int mon = ((dostime >> 2... |
cal.setTime(new Date(time)); | cal.setTimeInMillis(time); | public void setTime(long time) { Calendar cal = getCalendar(); synchronized (cal) { cal.setTime(new Date(time)); dostime = (cal.get(Calendar.YEAR) - 1980 & 0x7f) << 25 | (cal.get(Calendar.MONTH) + 1) << 21 | (cal.get(Calendar.DAY_OF_MONTH)) << 16 | (cal.get(Calendar.HOUR_OF_DAY)) << 11 | (cal.get(Ca... |
.append("defaultFormat=").append(defaultFormat).append(",").append(ls) | public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder().append(ls) .append("p=0x").append(p.toString(16)).append(",").append(ls) .append("q=0x").append(q.toString(16)).append(",").append(ls) .append... | |
public final Class getCategory() | public Class getCategory() | public final Class getCategory() { return JobStateReason.class; } |
public final String getName() | public String getName() | public final String getName() { return "job-state-reason"; } |
void mark() throws IOException; | void mark(); | void mark() throws IOException; |
T element(); | E element(); | T element(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.