Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module : java.base - Package : java.util
Version documentée : Java SE 17

Classe « Calendar »

Informations générales

Héritage

java.lang.Object
    java.util.Calendar

Interfaces implémentées

java.io.Serializable
java.lang.Cloneable
java.lang.Comparable<java.util.Calendar>

Définition

public abstract class Calendar extends java.lang.Object
implements java.io.Serializable,
java.lang.Cloneable,
java.lang.Comparable<java.util.Calendar>

Description

A venir.

Liste des attributs

Tous les attributs Attributs d'instance Attributs statiques Attributs dépréciés
QualificateursTypeNomDescription
public static int ALL_STYLES
public static int AM
public static int AM_PM
public static int APRIL
public static int AUGUST
public static int DATE
public static int DAY_OF_MONTH
public static int DAY_OF_WEEK
public static int DAY_OF_WEEK_IN_MONTH
public static int DAY_OF_YEAR
public static int DECEMBER
public static int DST_OFFSET
public static int ERA
public static int FEBRUARY
public static int FIELD_COUNT
public static int FRIDAY
public static int HOUR
public static int HOUR_OF_DAY
public static int JANUARY
public static int JULY
public static int JUNE
public static int LONG
public static int LONG_FORMAT
public static int LONG_STANDALONE
public static int MARCH
public static int MAY
public static int MILLISECOND
public static int MINUTE
public static int MONDAY
public static int MONTH
public static int NARROW_FORMAT
public static int NARROW_STANDALONE
public static int NOVEMBER
public static int OCTOBER
public static int PM
public static int SATURDAY
public static int SECOND
public static int SEPTEMBER
public static int SHORT
public static int SHORT_FORMAT
public static int SHORT_STANDALONE
public static int SUNDAY
public static int THURSDAY
public static int TUESDAY
public static int UNDECIMBER
public static int WEDNESDAY
public static int WEEK_OF_MONTH
public static int WEEK_OF_YEAR
public static int YEAR
public static int ZONE_OFFSET
protected boolean areFieldsSet
protected int[] fields
protected boolean[] isSet
protected boolean isTimeSet
protected long time

Liste des constructeurs

Constructeurs Constructeurs dépréciés
ConstructeurDescription
Calendar()
Calendar( TimeZone zone, Locale aLocale )

Liste des propriétés (getters/setters)

Propriétés Propriétés dépréciées
QualificateursTypeNomR/W
public static Set availableCalendarTypes R/-
public static synchronized Locale[] availableLocales R/-
public String calendarType R/-
public int firstDayOfWeek R/W
public static Calendar instance R/-
public boolean lenient R/W
public int minimalDaysInFirstWeek R/W
public Date time R/W
public long timeInMillis R/W
public TimeZone timeZone R/W
public boolean weekDateSupported R/-
public int weekYear R/-
public int weeksInWeekYear R/-

Propriétés héritées de la classe java.lang.Object

class

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes concrètes Méthodes abstraites Méthodes dépréciées
QualificateursType de retourPrototype de la méthodeDescription
public abstract void add( int field, int amount )
public boolean after( Object when )
public boolean before( Object when )
public void clear()
public void clear( int field )
public Object clone()
public int compareTo( Calendar anotherCalendar )
protected void complete()
protected abstract void computeFields()
protected abstract void computeTime()
public boolean equals( Object obj )
public int get( int field )
public int getActualMaximum( int field )
public int getActualMinimum( int field )
public static Set<java.lang.String> getAvailableCalendarTypes()
public static synchronized Locale[] getAvailableLocales()
public String getCalendarType()
public String getDisplayName( int field, int style, Locale locale )
public Map<java.lang.String, java.lang.Integer> getDisplayNames( int field, int style, Locale locale )
public int getFirstDayOfWeek()
public abstract int getGreatestMinimum( int field )
public static Calendar getInstance()
public static Calendar getInstance( Locale aLocale )
public static Calendar getInstance( TimeZone zone, Locale aLocale )
public static Calendar getInstance( TimeZone zone )
public abstract int getLeastMaximum( int field )
public abstract int getMaximum( int field )
public int getMinimalDaysInFirstWeek()
public abstract int getMinimum( int field )
public Date getTime()
public long getTimeInMillis()
public TimeZone getTimeZone()
public int getWeeksInWeekYear()
public int getWeekYear()
public int hashCode()
protected int internalGet( int field )
public boolean isLenient()
public boolean isSet( int field )
public boolean isWeekDateSupported()
public abstract void roll( int field, boolean up )
public void roll( int field, int amount )
public void set( int year, int month, int date, int hourOfDay, int minute )
public void set( int year, int month, int date, int hourOfDay, int minute, int second )
public void set( int year, int month, int date )
public void set( int field, int value )
public void setFirstDayOfWeek( int value )
public void setLenient( boolean lenient )
public void setMinimalDaysInFirstWeek( int value )
public void setTime( Date date )
public void setTimeInMillis( long millis )
public void setTimeZone( TimeZone value )
public void setWeekDate( int weekYear, int weekOfYear, int dayOfWeek )
public Instant toInstant()
public String toString()

Méthodes héritées de la classe java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait