Codota Logo
Holiday.getDescriptionPropertiesKey
Code IndexAdd Codota to your IDE (free)

How to use
getDescriptionPropertiesKey
method
in
de.jollyday.config.Holiday

Best Java code snippets using de.jollyday.config.Holiday.getDescriptionPropertiesKey (Showing top 9 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: stanfordnlp/CoreNLP

public Map<String, JollyHoliday> getAllHolidaysMap(Set<de.jollyday.config.Holiday> allHolidays) {
 Map<String, JollyHoliday> map = Generics.newHashMap();
 for (de.jollyday.config.Holiday h : allHolidays) {
  String descKey = h.getDescriptionPropertiesKey();
  if (descKey != null) {
   descKey = descKey.replaceAll(".*\\.","");
   JollyHoliday jh = new JollyHoliday(descKey, holidayManager, h);
   map.put(jh.label, jh);
  }
 }
 return map;
}
origin: stanfordnlp/CoreNLP

public CollectionValuedMap<String, JollyHoliday> getAllHolidaysCVMap(Set<de.jollyday.config.Holiday> allHolidays) {
 CollectionValuedMap<String, JollyHoliday> map = new CollectionValuedMap<>();
 for (de.jollyday.config.Holiday h:allHolidays) {
  String descKey = h.getDescriptionPropertiesKey();
  if (descKey != null) {
   descKey = descKey.replaceAll(".*\\.","");
   JollyHoliday jh = new JollyHoliday(descKey, holidayManager, h);
   map.add(jh.label, jh);
  }
 }
 return map;
}
origin: stanfordnlp/CoreNLP

private SUTime.Time resolveWithYear(int year) {
 // TODO: If we knew location of article, can use that information to resolve holidays better
 Set<de.jollyday.Holiday> holidays = holidayManager.getHolidays(year);
 // Try to find this holiday
 for (de.jollyday.Holiday h : holidays) {
  if (h.getPropertiesKey().equals(base.getDescriptionPropertiesKey())) {
   return new SUTime.PartialTime(this, new Partial(h.getDate()));
  }
 }
 return null;
}
origin: edu.stanford.nlp/stanford-corenlp

public Map<String, JollyHoliday> getAllHolidaysMap(Set<de.jollyday.config.Holiday> allHolidays) {
 Map<String, JollyHoliday> map = Generics.newHashMap();
 for (de.jollyday.config.Holiday h : allHolidays) {
  String descKey = h.getDescriptionPropertiesKey();
  if (descKey != null) {
   descKey = descKey.replaceAll(".*\\.","");
   JollyHoliday jh = new JollyHoliday(descKey, holidayManager, h);
   map.put(jh.label, jh);
  }
 }
 return map;
}
origin: com.guokr/stan-cn-com

public Map<String, JollyHoliday> getAllHolidaysMap(Set<de.jollyday.config.Holiday> allHolidays)
{
 Map<String, JollyHoliday> map = Generics.newHashMap();
 for (de.jollyday.config.Holiday h:allHolidays) {
  String descKey = h.getDescriptionPropertiesKey();
  if (descKey != null) {
   descKey = descKey.replaceAll(".*\\.","");
   JollyHoliday jh = new JollyHoliday(descKey, holidayManager, h);
   map.put(jh.label, jh);
  }
 }
 return map;
}
origin: edu.stanford.nlp/stanford-corenlp

public CollectionValuedMap<String, JollyHoliday> getAllHolidaysCVMap(Set<de.jollyday.config.Holiday> allHolidays) {
 CollectionValuedMap<String, JollyHoliday> map = new CollectionValuedMap<>();
 for (de.jollyday.config.Holiday h:allHolidays) {
  String descKey = h.getDescriptionPropertiesKey();
  if (descKey != null) {
   descKey = descKey.replaceAll(".*\\.","");
   JollyHoliday jh = new JollyHoliday(descKey, holidayManager, h);
   map.add(jh.label, jh);
  }
 }
 return map;
}
origin: com.guokr/stan-cn-com

public CollectionValuedMap<String, JollyHoliday> getAllHolidaysCVMap(Set<de.jollyday.config.Holiday> allHolidays)
{
 CollectionValuedMap<String, JollyHoliday> map = new CollectionValuedMap<String, JollyHoliday>();
 for (de.jollyday.config.Holiday h:allHolidays) {
  String descKey = h.getDescriptionPropertiesKey();
  if (descKey != null) {
   descKey = descKey.replaceAll(".*\\.","");
   JollyHoliday jh = new JollyHoliday(descKey, holidayManager, h);
   map.add(jh.label, jh);
  }
 }
 return map;
}
origin: edu.stanford.nlp/stanford-corenlp

private SUTime.Time resolveWithYear(int year) {
 // TODO: If we knew location of article, can use that information to resolve holidays better
 Set<de.jollyday.Holiday> holidays = holidayManager.getHolidays(year);
 // Try to find this holiday
 for (de.jollyday.Holiday h : holidays) {
  if (h.getPropertiesKey().equals(base.getDescriptionPropertiesKey())) {
   return new SUTime.PartialTime(this, new Partial(h.getDate()));
  }
 }
 return null;
}
origin: com.guokr/stan-cn-com

@Override
public SUTime.Time resolve(SUTime.Time t, int flags) {
 Partial p = (t != null)? t.getJodaTimePartial():null;
 if (p != null) {
  if (JodaTimeUtils.hasField(p, DateTimeFieldType.year())) {
   int year = p.get(DateTimeFieldType.year());
   // TODO: If we knew location of article, can use that information to resolve holidays better
   Set<de.jollyday.Holiday> holidays = holidayManager.getHolidays(year);
   // Try to find this holiday
   for (de.jollyday.Holiday h:holidays) {
    if (h.getPropertiesKey().equals(base.getDescriptionPropertiesKey())) {
     return new SUTime.PartialTime(this, new Partial(h.getDate()));
    }
   }
  }
 }
 return this;
}
de.jollyday.configHolidaygetDescriptionPropertiesKey

Javadoc

Ruft den Wert der descriptionPropertiesKey-Eigenschaft ab.

Popular methods of Holiday

  • getEvery
    Ruft den Wert der every-Eigenschaft ab.
  • getValidFrom
    Ruft den Wert der validFrom-Eigenschaft ab.
  • getValidTo
    Ruft den Wert der validTo-Eigenschaft ab.

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Collectors (java.util.stream)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now