
com.mindoo.domino.jna.internal.structs.NotesTimeDatePairStruct Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of domino-jna Show documentation
Show all versions of domino-jna Show documentation
Java project to access the HCL Domino C API using Java Native Access (JNA)
package com.mindoo.domino.jna.internal.structs;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;
import com.mindoo.domino.jna.internal.structs.BaseStructure;
import com.mindoo.domino.jna.internal.structs.NotesTimeDateStruct;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
/**
* JNA class for the TIMEDATE_PAIR type
*
* @author Karsten Lehmann
*/
public class NotesTimeDatePairStruct extends BaseStructure {
/** C type : TIMEDATE */
public NotesTimeDateStruct Lower;
/** C type : TIMEDATE */
public NotesTimeDateStruct Upper;
/**
* @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block
*/
public NotesTimeDatePairStruct() {
super();
}
public static NotesTimeDatePairStruct newInstance() {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesTimeDatePairStruct run() {
return new NotesTimeDatePairStruct();
}
});
}
@Override
protected List getFieldOrder() {
return Arrays.asList("Lower", "Upper");
}
/**
* @param Lower C type : TIMEDATE
* @param Upper C type : TIMEDATE
* @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block
*/
public NotesTimeDatePairStruct(NotesTimeDateStruct Lower, NotesTimeDateStruct Upper) {
super();
this.Lower = Lower;
this.Upper = Upper;
}
public static NotesTimeDatePairStruct newInstance(final NotesTimeDateStruct Lower, final NotesTimeDateStruct Upper) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesTimeDatePairStruct run() {
return new NotesTimeDatePairStruct(Lower, Upper);
}
});
}
/**
* @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block
*
* @param peer pointer
*/
public NotesTimeDatePairStruct(Pointer peer) {
super(peer);
}
public static NotesTimeDatePairStruct newInstance(final Pointer p) {
return AccessController.doPrivileged(new PrivilegedAction() {
@Override
public NotesTimeDatePairStruct run() {
return new NotesTimeDatePairStruct(p);
}
});
}
public static class ByReference extends NotesTimeDatePairStruct implements Structure.ByReference {
};
public static class ByValue extends NotesTimeDatePairStruct implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy