类java.beans.Transient源码实例Demo

下面列出了怎么用java.beans.Transient的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: jdk8u-dev-jdk   文件: JList.java
/**
 * Returns an array of all of the selected indices, in increasing
 * order.
 *
 * @return all of the selected indices, in increasing order,
 *         or an empty array if nothing is selected
 * @see #removeSelectionInterval
 * @see #addListSelectionListener
 */
@Transient
public int[] getSelectedIndices() {
    ListSelectionModel sm = getSelectionModel();
    int iMin = sm.getMinSelectionIndex();
    int iMax = sm.getMaxSelectionIndex();

    if ((iMin < 0) || (iMax < 0)) {
        return new int[0];
    }

    int[] rvTmp = new int[1+ (iMax - iMin)];
    int n = 0;
    for(int i = iMin; i <= iMax; i++) {
        if (sm.isSelectedIndex(i)) {
            rvTmp[n++] = i;
        }
    }
    int[] rv = new int[n];
    System.arraycopy(rvTmp, 0, rv, 0, n);
    return rv;
}
 
源代码2 项目: aws-athena-query-federation   文件: Marker.java
/**
 * Retrieves the value held in this Marker.
 *
 * @return The value.
 */
@Transient
public Object getValue()
{
    if (nullValue) {
        throw new IllegalStateException("No value to get");
    }
    return value;
}
 
源代码3 项目: openjdk-8   文件: ScrollPane.java
/**
 * Returns the current x,y position within the child which is displayed
 * at the 0,0 location of the scrolled panel's view port.
 * This is a convenience method which interfaces with the adjustable
 * objects which represent the state of the scrollbars.
 * @return the coordinate position for the current scroll position
 * @throws NullPointerException if the scrollpane does not contain
 *     a child
 */
@Transient
public Point getScrollPosition() {
    synchronized (getTreeLock()) {
        if (getComponentCount()==0) {
            throw new NullPointerException("child is null");
        }
        return new Point(hAdjustable.getValue(), vAdjustable.getValue());
    }
}
 
源代码4 项目: jdk-1.7-annotated   文件: ScrollPane.java
/**
 * Returns the current x,y position within the child which is displayed
 * at the 0,0 location of the scrolled panel's view port.
 * This is a convenience method which interfaces with the adjustable
 * objects which represent the state of the scrollbars.
 * @return the coordinate position for the current scroll position
 * @throws NullPointerException if the scrollpane does not contain
 *     a child
 */
@Transient
public Point getScrollPosition() {
    synchronized (getTreeLock()) {
        if (getComponentCount()==0) {
            throw new NullPointerException("child is null");
        }
        return new Point(hAdjustable.getValue(), vAdjustable.getValue());
    }
}
 
源代码5 项目: hottub   文件: Test4935607.java
@Override
@Transient
public void setProperty(Object object) {
}
 
源代码6 项目: openjdk-8   文件: Test4935607.java
@Override
@Transient
public void setProperty(Object object) {
}
 
源代码7 项目: openjdk-jdk8u-backup   文件: Test4935607.java
@Override
@Transient(false)
public void setProperty(Object object) {
}
 
源代码8 项目: jdk8u_jdk   文件: Test4935607.java
@Override
@Transient(false)
public void setProperty(Object object) {
}
 
源代码9 项目: jdk8u-jdk   文件: Test4935607.java
@Override
@Transient
public void addEventSetListener(EventSetListener listener) {
}
 
源代码10 项目: TencentKona-8   文件: DefaultListSelectionModel.java
/** {@inheritDoc} */
@Transient
public int getAnchorSelectionIndex() {
    return anchorIndex;
}
 
源代码11 项目: aws-athena-query-federation   文件: Marker.java
@Transient
public boolean isLowerUnbounded()
{
    return nullValue && bound == Bound.ABOVE;
}
 
源代码12 项目: openjdk-8   文件: Test4935607.java
@Transient(false)
public void addEventSetListener(EventSetListener listener) {
}
 
源代码13 项目: jdk8u60   文件: Test4935607.java
@Override
@Transient
public void setProperty(Object object) {
}
 
源代码14 项目: TencentKona-8   文件: Test4935607.java
@Override
@Transient(false)
public Object getProperty() {
    return this;
}
 
源代码15 项目: hottub   文件: Test4935607.java
@Override
@Transient(false)
public void removeEventSetListener(EventSetListener listener) {
}
 
源代码16 项目: jdk8u-jdk   文件: Test4935607.java
@Override
@Transient
public void setProperty(Object object) {
}
 
源代码17 项目: hottub   文件: Test4935607.java
@Override
@Transient
public Object getProperty() {
    return this;
}
 
源代码18 项目: joyqueue   文件: CoordinatorGroupMember.java
@Transient
public  boolean isExpired() {
    return (latestHeartbeat + sessionTimeout) < SystemClock.now();
}
 
源代码19 项目: openjdk-jdk8u   文件: Test4935607.java
@Override
@Transient(false)
public void removeEventSetListener(EventSetListener listener) {
}
 
源代码20 项目: hottub   文件: Test4935607.java
@Transient
public Object getProperty() {
    return this;
}
 
源代码21 项目: openjdk-jdk8u-backup   文件: Test4935607.java
@Transient(false)
public void removeEventSetListener(EventSetListener listener) {
}
 
源代码22 项目: aws-athena-query-federation   文件: Split.java
@Transient
public static Builder newBuilder(SpillLocation spillLocation, EncryptionKey encryptionKey)
{
    return new Builder().withSpillLocation(spillLocation).withEncryptionKey(encryptionKey);
}
 
源代码23 项目: jdk8u_jdk   文件: Test4935607.java
@Override
@Transient
public void removeEventSetListener(EventSetListener listener) {
}
 
源代码24 项目: openjdk-jdk9   文件: Test4935607.java
@Transient
public void addEventSetListener(EventSetListener listener) {
}
 
源代码25 项目: openjdk-jdk8u   文件: Test4935607.java
@Override
@Transient
public void removeEventSetListener(EventSetListener listener) {
}
 
源代码26 项目: openjdk-jdk8u   文件: Test4935607.java
@Override
@Transient(false)
public Object getProperty() {
    return this;
}
 
源代码27 项目: openjdk-jdk9   文件: Test4935607.java
@Override
@Transient
public void addEventSetListener(EventSetListener listener) {
}
 
源代码28 项目: openjdk-jdk8u-backup   文件: Test4935607.java
@Transient
public void setProperty(Object object) {
}
 
源代码29 项目: hottub   文件: Test4935607.java
@Override
@Transient
public void setProperty(Object object) {
}
 
源代码30 项目: jdk8u-jdk   文件: Test4935607.java
@Override
@Transient(false)
public Object getProperty() {
    return this;
}
 
 类所在包
 类方法
 同包方法