Package org.robovm.apple.foundation
Class NSDateInterval
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSDateInterval
-
- All Implemented Interfaces:
NSCoding
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class NSDateInterval extends NSObject implements NSSecureCoding
- Since:
- Available in iOS 10.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSDateInterval.NSDateIntervalPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSDateInterval()
NSDateInterval(NSCoder coder)
NSDateInterval(NSDate startDate, double duration)
NSDateInterval(NSDate startDate, NSDate endDate)
protected
NSDateInterval(NSObject.Handle h, long handle)
protected
NSDateInterval(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NSComparisonResult
compare(NSDateInterval dateInterval)
boolean
containsDate(NSDate date)
void
encode(NSCoder coder)
boolean
equalsTo(NSDateInterval dateInterval)
double
getDuration()
NSDate
getEndDate()
NSDateInterval
getIntersection(NSDateInterval dateInterval)
NSDate
getStartDate()
protected long
init(NSCoder coder)
protected long
init(NSDate startDate, double duration)
protected long
init(NSDate startDate, NSDate endDate)
boolean
intersects(NSDateInterval dateInterval)
static boolean
supportsSecureCoding()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSDateInterval
public NSDateInterval()
-
NSDateInterval
protected NSDateInterval(NSObject.Handle h, long handle)
-
NSDateInterval
protected NSDateInterval(NSObject.SkipInit skipInit)
-
NSDateInterval
public NSDateInterval(NSCoder coder)
-
NSDateInterval
public NSDateInterval(NSDate startDate, double duration)
-
-
Method Detail
-
getStartDate
public NSDate getStartDate()
-
getEndDate
public NSDate getEndDate()
-
getDuration
public double getDuration()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
init
protected long init(NSCoder coder)
-
init
protected long init(NSDate startDate, double duration)
-
compare
public NSComparisonResult compare(NSDateInterval dateInterval)
-
equalsTo
public boolean equalsTo(NSDateInterval dateInterval)
-
intersects
public boolean intersects(NSDateInterval dateInterval)
-
getIntersection
public NSDateInterval getIntersection(NSDateInterval dateInterval)
-
containsDate
public boolean containsDate(NSDate date)
-
-