# Print output for @column tags ?> FreezePeriod - Android SDK | Android Developers

Most visited

Recently visited

FreezePeriod

public class FreezePeriod
extends Object

java.lang.Object
   ↳ android.app.admin.FreezePeriod


A class that represents one freeze period which repeats annually. A freeze period has two java.time values that define the start and end dates of the period, both inclusive. If the end date is earlier than the start date, the period is considered wrapped around the year-end. As far as freeze period is concerned, leap year is disregarded and February 29th should be treated as if it were February 28th: so a freeze starting or ending on February 28th is identical to a freeze starting or ending on February 29th. When calulating the length of a freeze or the distance bewteen two freee periods, February 29th is also ignored.

See also:

Summary

Public constructors

FreezePeriod(MonthDay start, MonthDay end)

Creates a freeze period by its start and end dates.

Public methods

MonthDay getEnd()

Returns the end date (inclusive) of this freeze period.

MonthDay getStart()

Returns the start date (inclusive) of this freeze period.

String toString()

Returns a string representation of the object.

Inherited methods

Public constructors

FreezePeriod

public FreezePeriod (MonthDay start, 
                MonthDay end)

Creates a freeze period by its start and end dates. If the end date is earlier than the start date, the freeze period is considered wrapping year-end.

Parameters
start MonthDay

end MonthDay

Public methods

getEnd

public MonthDay getEnd ()

Returns the end date (inclusive) of this freeze period.

Returns
MonthDay

getStart

public MonthDay getStart ()

Returns the start date (inclusive) of this freeze period.

Returns
MonthDay

toString

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
String a string representation of the object.